What GroupDocs.Redaction for .NET includes

Overlay Redaction for EXCEL Files in .NET

Use C# code to hide text and protect data inside your EXCEL files. A clean solution for document safety.

Redact sensitive info in Excel format

GroupDocs.Redaction for .NET is a simple tool for .NET developers to clean up documents before sharing.

  1. Start a Redactor and load your Excel file.
  2. Decide on the redaction settings for your task.
  3. Add a keyword or phrase to redact and choose a color.
  4. Run the tool and save the changes.
// Use overlays to hide text in EXCEL

// Create a Redactor and load your file
using (Redactor redactor  = new Redactor("input.xslx"))
{
    // Pick redaction rules
    // Enter what to hide and choose a color
    var opt = new ReplacementOptions(System.Drawing.Color.Red);
    
    var redaction = new ExactPhraseRedaction("Text to hide", opt);

    // Apply redaction and save the file
    redactor.Apply(redaction);
    redactor.Save();
}
dotnet add package GroupDocs.Redaction
click to copy
copied
More examples Documentation

Key features for data protection

GroupDocs.Redaction for .NET lets you hide or delete data inside your documents without losing layout or meaning.

Built for document safety

Change text content

Swap out or hide selected words across the file.

Redact visuals

Hide photos or areas with simple blocks.

Clear metadata

Get rid of background data like author names or timestamps.

Regex text redaction

Here’s how to use regex to find and hide content in a file

C#

//  Load the document to process
using (Redactor redactor  = new Redactor("source.xslx"))
{
    // Add pattern and overlay settings
    var repl_opt = new ReplacementOptions(System.Drawing.Color.Blue);
    var redaction = new RegexRedaction("\\d{2}\\s*\\d{2}[^\\d]*\\d{6}", repl_opt);

    // Apply the changes
    redactor.Apply(redaction);

    // Save and close the redacted document
    var save_opt = new SaveOptions() { AddSuffix = true, RasterizeToPDF = false };
    var outputPath = redactor.Save(save_opt);
}
dotnet add package GroupDocs.Redaction
click to copy
copied
More examples Documentation

Why Choose GroupDocs.Redaction for .NET

GroupDocs.Redaction for .NET is made for C# developers who want to redact or delete content in EXCEL files. Use it to work with text, metadata, and images.
Learn more
About illustration

Ready to get started?

Download GroupDocs.Redaction for free or get a trial license for full access!

Useful resources

Explore documentation, code samples, and community support to enhance your experience.

Redact EXCEL Files with .NET

Cover sensitive content in EXCEL using square overlays or clear redactions with .NET features.

Temporary license tips

1
Sign up with your work email.
Free mail services are not allowed.
2
Use Get a temporary license button on the second step.
 English