Explore What GroupDocs.Redaction for .NET Can Do

Erase Metadata from XLSX Files Using .NET

Protect sensitive details in your XLSX files with C#. Easy redaction for personal and work documents.

Clear Metadata in Xlsx Files

With GroupDocs.Redaction, your .NET apps can quickly remove hidden data.

  1. Set up a Redactor and open your Xlsx file.
  2. Define which metadata you want to erase.
  3. Apply the redaction rules.
  4. Save the final file.
// Clean up hidden metadata in XLSX

// Open file with Redactor
using (Redactor redactor  = new Redactor("input.xslx"))
{
    // Set up which metadata to remove
    var redaction = new EraseMetadataRedaction(MetadataFilters.All);
    
    // Apply redaction and save
    redactor.Apply(redaction);
    redactor.Save();
}
dotnet add package GroupDocs.Redaction
click to copy
copied
More examples Documentation

Protect Sensitive Info in Documents

Use GroupDocs.Redaction for .NET to erase or hide content in many file formats. Keep files private and ready to share.

All-in-One Redaction Features

Replace or Remove Text

Protect personal data by finding and removing sensitive text.

Hide Image Sections

Use overlays to block image areas with private visuals.

Remove Metadata

Clean out hidden metadata fields that may hold personal or business details.

How to Remove Metadata

This sample code removes metadata properties in a XLSX document.

C#

//  Open the document
using (Redactor redactor  = new Redactor("source.xslx"))
{
    // Target the Author metadata
    MetadataSearchRedaction redactionAuthor = 
        new MetadataSearchRedaction(@"[A-Za-z0-9 ]+", "GroupDocs Company")
    {
        Filter = MetadataFilters.Author
    };

    // Target the Title metadata
    MetadataSearchRedaction redactionTitle = 
        new MetadataSearchRedaction(@"[A-Za-z0-9 ]+", "GroupDocs.Redaction Usage")
    {
        Filter = MetadataFilters.Title
    };

    // Run the redaction process
    var redactions = new MetadataSearchRedaction[] { redactionAuthor, redactionTitle };
    redactor.Apply(redactions);

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

Learn About GroupDocs.Redaction for .NET

GroupDocs.Redaction gives C# developers tools to clean content in XLSX documents. Mask or delete text, images, and metadata with ease.
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 Metadata in XLSX Using .NET

.NET makes it easy to clear metadata from XLSX files. Keep your files clean and secure.

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