LocalPDFlab

Private document cleanup

Sanitize a PDF before sharing

Inspect and remove hidden, attached, or active PDF data. Choose structure-preserving cleanup or rebuild only the visible pages, all inside your browser.

Privacy scan includedLocal browser processingNo account or watermark

Drop a PDF here, or click to choose one

Inspect and remove hidden or active document data privately in your browser.

Files stay on your device

Enter PDF password

Enter the password to open.

Quick start

How to sanitize a PDF

  1. 1

    Choose a PDF

    Select one PDF from your device. If it is password protected, enter the password when prompted.

  2. 2

    Review the privacy scan

    Check the detected metadata, attachments, scripts, comments, links, form fields, signatures, and layers. Select a finding to see what was found, such as the author's name or each comment and its page.

  3. 3

    Choose what to remove

    Use Full cleanup or Annotations only, adjust the Standard cleanup settings, or choose Maximum privacy to rebuild visible pages as images.

  4. 4

    Sanitize and download

    Create a new PDF in your browser, check what was removed and what was kept, compare the cleaned copy with the original in the preview, and download it.

What can be hidden inside a PDF

A PDF can contain much more than the page you see. Document properties can identify an author, company, editing application, or creation history. Attachments can place complete files inside the document. Comments, optional layers, saved form values, page thumbnails, scripts, and automatic actions can also remain after the visible page looks finished.

The privacy scan reports common categories before cleanup so you can make an informed choice. A zero count means the browser did not detect that category through the supported PDF interfaces. It is not a security certification and it cannot account for every proprietary or damaged PDF structure.

Choose the right sanitization level

Recommended

Standard cleanup

Rewrites the PDF, removes common hidden and active data, and preserves searchable text, vectors, images, and internal page links when possible. You can decide whether to remove comments, website links, accessibility structure, and interactive form behavior.

Strongest cleanup

Maximum privacy

Renders page content without annotations, then creates a new image-only PDF. Hidden layers and underlying objects are not copied. The tradeoff is loss of searchable text, links, forms, bookmarks, accessibility tags, and compact vector content.

What the Standard cleanup controls do

SettingEffect
MetadataRemoves document information dictionaries, XMP metadata, editing details, and embedded page thumbnails, and gives the copy a new document ID.
Embedded filesRemoves document attachments, associated files, and file attachment annotations.
Hidden layersDeletes the content of layers that are switched off, such as draft notes or alternative versions in drawings and design files, and merges the visible layers into the page so nothing can be switched back on. The page looks the same.
CommentsRemoves notes, highlights, stamps, drawings, popups, watermark annotations, unapplied redaction marks, and supported multimedia annotations.
Form flatteningDraws each field as it looks into the page and removes field interactivity. Fields the PDF hides are removed without being drawn, so their values do not appear on the page.
External linksRemoves website and email link annotations while retaining internal navigation when possible.
Structure tagsRemoves accessibility and logical reading structure. Leave this off unless your workflow specifically requires removal.

Remove annotations from a PDF

Review rounds leave PDFs full of sticky notes, highlights, strikeouts, freehand drawings, shapes, and approval stamps. Before you send a final copy to a client, a court, or a publisher, choose Annotations only under Quick setup. It deletes those annotations and their pop-up notes in one step and leaves everything else as it was: the page text stays searchable, links keep working, form fields stay fillable, and document properties and attachments are kept.

Annotations are separate objects on top of the page, so removing them does not change the underlying text or images. Markup that was flattened into the page content, for example by printing to PDF, is no longer an annotation and cannot be removed this way. To keep the look of the comments but stop them from being edited, use Flatten PDF instead. To add new notes or highlights later, use Edit PDF.

Sanitization is not redaction

Sanitization targets nonvisible, attached, or active information. It does not identify Social Security numbers, medical information, financial details, or confidential wording on the page. Covering content with a white rectangle is also not secure redaction because the underlying text may remain recoverable.

For a release copy, first use Redact PDF to permanently remove visible sensitive areas. Then sanitize the redacted file to remove selected metadata, attachments, comments, and active features. Review the final copy before distributing it.

Watch for redaction marks that were never applied. Some editors let you mark areas for redaction and apply them later; until then, the marked text is still in the file, and anyone can remove the marks. The privacy scan lists such marks under Comments and warns about them, because removing comments deletes the marks and leaves the text under them.

Hidden layers, hidden text, and cropped content

Some content is part of the page itself but not shown. The privacy scan finds three kinds, and each is handled differently.

  • Hidden layers. Drawings, maps, and files from design programs often keep draft notes, measurements, or alternative versions in layers that are switched off. Remove hidden layers deletes what is in them and merges the rest into the page, so the copy looks the same and nothing can be switched back on. Select Layers in the scan to see each layer's name and whether it is shown.
  • Hidden text. Text drawn invisibly, in white, or outside the visible page is still in the file and can be searched and copied. Most often it is the searchable text layer of a scanned page, which is expected; sometimes it is text someone meant to hide. The scan lists the pages. Only Maximum privacy removes it, because it rebuilds the pages from what is shown.
  • Cropped content. Cropping a page hides its edges but keeps them in the file. Text placed there is reported as hidden text. Maximum privacy keeps only the visible area.

Digital signatures and signer details

Any change to a signed PDF breaks its digital signatures, so a cleaned copy can never carry a valid signature. The signature data in the file still names the signer and holds their certificate, the signing time, and often a reason and a location. The cleanup removes that data in every mode, while a visible signature stays on the page. If the recipient needs a valid signature, clean the document first and sign the final copy; the Sign PDF tool adds a visible signature in the browser.

How this compares with Acrobat's sanitizing

Adobe Acrobat Pro offers Sanitize Document and Remove Hidden Information. Its list of what it can remove includes metadata, file attachments, comments, form fields, hidden text, hidden layers, bookmarks, an embedded search index, deleted or cropped content, links, actions and scripts, and overlapping objects. This tool covers the same ground in two steps, without a subscription or an upload:

  • Standard cleanup removes metadata, attachments, comments, scripts and actions, hidden layers, signature data, and, if you choose, form fields, website links, and accessibility tags, while the text stays searchable.
  • Maximum privacy rebuilds each page from what is shown, which also leaves out hidden text, cropped content, and objects covered by others.

Whichever you use, open the cleaned copy and check it before you send it. The Cleaned view in the preview and the Removed, Kept, and Still found lists in the result help with that.

A practical sharing checklist

  1. 1. Keep the original. Store the source separately if you need editing history, accessibility, form behavior, or signature verification later.
  2. 2. Finish visible edits and redaction first. Sanitization should normally be one of the final preparation steps.
  3. 3. Review the scan and settings. Do not remove accessibility structure or useful links unless your sharing requirements call for it.
  4. 4. Open the downloaded copy. Check every important page, form value, image, and link in a separate PDF viewer.
  5. 5. Apply protection last. If the recipient needs an opening password, use Password Protect PDF after sanitization.

Frequently asked questions

What does PDF sanitization remove?

Standard cleanup can remove document metadata, embedded files, hidden layers, comments, page thumbnails, JavaScript, unsafe actions, XFA logic, digital signature data, external links, and accessibility structure. It can also flatten form fields. The exact result depends on the settings you choose.

What is the difference between Standard cleanup and Maximum privacy?

Standard cleanup rewrites PDF structure while preserving searchable text and most visible content. Maximum privacy renders each page without annotations and rebuilds a new image-based PDF. This more thoroughly discards hidden page content, but it also removes search, selection, links, forms, bookmarks, and accessibility tags.

How do I remove annotations from a PDF?

Choose your PDF, select Annotations only under Quick setup, and sanitize. Comments, highlights, sticky notes, drawings, shapes, and stamps are deleted, while text, links, form fields, metadata, and attachments stay. The privacy scan shows how many comments were found before you start.

Is sanitizing the same as redacting?

No. Sanitizing removes selected hidden or active document data. It does not find sensitive words or permanently cover visible content. Use the Redact PDF tool to remove visible text or page areas, then sanitize the redacted copy before sharing.

Does it remove hidden layers?

Yes. With Remove hidden layers on, which Full cleanup includes, the content of layers that are switched off is deleted, and the visible layers are merged into the page, so nobody can switch hidden content back on. The page looks the same as before. Maximum privacy also leaves hidden layers out, since it copies only what is shown.

Why does the scan report hidden text on my scanned PDF?

A scanned PDF that you can search has an invisible text layer on top of the page image: that is how search and copy work in scans. The scan reports it so you know the words are in the file, and it labels it as the searchable text of a scan when the page has an image. Standard cleanup keeps it. Maximum privacy removes it, along with search.

What happens to redaction marks that were never applied?

A redaction mark only marks an area; until it is applied, the text and images under it are still in the file. The tool warns you when it finds such marks. Removing comments deletes the marks, not what is under them, so apply them first with Redact PDF and then sanitize the redacted copy.

Does the cleaned copy keep the original's document ID?

No, when Remove metadata is on. A PDF carries an ID that can match copies of the same document, so the cleaned copy gets a new one, derived from its own content.

Does this tool scan for malware?

No. The tool removes common active PDF features and rewrites the file, but it is not antivirus software and cannot certify that a malformed or proprietary PDF is safe. Follow your organization's security procedures for untrusted documents.

Will digital signatures remain valid?

No. Sanitization changes the PDF bytes, so existing digital signatures will no longer validate. The cleanup also removes the signature data, which holds the signer's name, certificate, and signing time; a visible signature stays on the page. Keep the signed original if signature verification matters, and sign the sanitized copy only after cleanup is complete.

Can I sanitize a password-protected PDF?

Yes, if you know the password. The password prompt and document processing run locally in your browser. The downloaded sanitized copy is not encrypted unless you protect it again afterward.

Does the PDF leave my device?

No. Inspection, page rendering, cleanup, and PDF creation take place in your browser. The file is not uploaded to a conversion server.

Why can the sanitized file be larger?

Rewriting object streams can change compression. Maximum privacy stores each page as an image, which can make a compact digital PDF much larger. Choose 150 or 200 DPI when file size matters.

Choose another private, browser-based tool for the next step in your document workflow.