ToollyX
no sign-up Β· instant Β· free

PDF Flattener

Permanently merge form fields, checkboxes, signatures, and annotations into static PDF page content. Once flattened, filled values cannot be edited, cleared, or re-submitted β€” ideal for sharing completed forms, archiving records, and meeting requirements that specify a flat PDF. Everything runs in your browser β€” nothing is uploaded.

INPUTPDF with forms
OUTPUTFlat PDF
ENGINEpdf-lib
SCANAuto on upload
UPLOADNone
728 Γ— 90 β€” Leaderboard Ad
πŸ“‹
Drop your PDF here or click to browse
Merges form fields & annotations into static page content Β· Nothing uploaded to server
Text FieldsCheckboxesRadio ButtonsDropdownsSignaturesNo Upload
728 Γ— 90 β€” Leaderboard Ad

How to Flatten a PDF

1Upload your PDF by dragging it onto the drop zone or clicking "Choose PDF File". The file loads into browser memory only. Immediately after upload, the tool auto-scans the PDF and shows you exactly how many form fields and annotations it contains β€” so you know what will be flattened before you commit.
2Choose your flatten mode. "Form fields only" converts all AcroForm elements (text fields, checkboxes, radio buttons, dropdowns, signatures) into static graphics while leaving any annotations (highlights, sticky notes) in place. "Form fields + annotations" also removes all remaining annotation objects, giving you a completely clean, interaction-free document.
3Review the irreversibility warning and make sure you have a copy of the original. Flattening cannot be undone β€” once merged, the interactive elements cannot be recovered from the output file.
4Click "Flatten PDF" and wait for processing to complete. The result panel shows how many fields were merged, how many annotations were stripped, and the before/after file sizes. Click "Download Flattened PDF" to save it β€” nothing downloads automatically.

Features

Auto-scan on upload
Instantly counts form fields, annotations, pages, and file size before you flatten. No surprises about what will change.
Full AcroForm support
Handles all standard PDF form field types: text inputs, checkboxes, radio groups, dropdowns, combo boxes, list boxes, and signature fields.
Two flatten modes
Choose "Form fields only" to preserve annotation markup, or "Form fields + annotations" to strip highlights, sticky notes, and stamps as well.
Result statistics
After flattening, shows fields merged, annotations stripped, and before/after file size β€” so you can verify the operation completed as expected.
Download on demand
Flattening completes first, then a Download button appears. Nothing saves automatically β€” you control when the file is saved to disk.
No upload, no account
pdf-lib runs entirely in your browser. Sensitive form data β€” tax numbers, addresses, signatures β€” never leaves your device.

What Is PDF Flattening?

PDF flattening is the process of converting all interactive elements in a PDF into permanent, static page content. A typical fillable PDF contains two distinct layers: the base page content (text, images, graphics) and a set of overlay objects (AcroForm fields, widget annotations, comments) that sit on top of the page and respond to user interaction. When you flatten the PDF, those overlay objects are rendered into the base layer as ordinary graphics and then removed. The result is a file that looks identical to the filled original but has no interactive structure at all.

The term covers two related but distinct operations. Form field flatteningconverts AcroForm widget annotations β€” text fields, checkboxes, radio buttons, dropdown selections, and digital signature fields β€” into static text and graphics that are part of the page. Annotation flattening does the same for other annotation types like highlights, underlines, sticky notes, stamps, and ink drawings. Both can be done simultaneously, or you can flatten only the form fields while leaving annotations in place for review purposes.

This tool handles both operations entirely in the browser using pdf-lib, a pure-JavaScript PDF library. No file is uploaded, no account is required, and no sensitive form data leaves your device. For forms containing personal information β€” medical records, financial applications, tax documents β€” this matters enormously.

How PDF Flattening Works Technically

A PDF file stores form fields as entries in an AcroForm dictionary. Each field has a widget annotation that defines its position on the page, its visual appearance (the appearance stream), and its current value. When you flatten a PDF, the tool iterates through every widget annotation and, for each one, takes the appearance stream β€” the pre-rendered graphic of how the filled field looks β€” and copies it into the page's content stream as a static graphic element. The widget annotation entry is then removed from the AcroForm dictionary and the page's annotation array.

This tool uses pdf-lib's form.flatten() method, which implements exactly this process for all standard AcroForm field types. After flattening, the PDF's AcroForm entry is empty (or absent), the page annotation arrays contain no widget annotations, and the page content streams contain the rendered field appearances as normal PDF graphics operators. The result is smaller and simpler than the original.

For non-form annotations (highlights, notes, stamps, ink), the tool optionally removes them from each page's annotation array. Unlike form field flattening, this does not convert the annotation appearance into a static graphic β€” it removes the annotation entirely. This is the correct approach for cleaning up a document before final submission or archiving, where review markup should not appear in the final version.

Who Needs to Flatten a PDF?

Anyone submitting a completed form where the submitted values must not be editable. Government portals, law firms, accounting software, and HR systems often require flat PDFs because they store the document as a record. If the PDF still has active form fields, the recipient's software may treat it as an incomplete form rather than a final submission.

Lawyers and notaries sending signed contracts or signed affidavits. A PDF with signature fields still technically "open" looks different to a PDF where the signature has been flattened into the page. Flattening makes it clear the document is final and removes any possibility of the signature field being cleared or re-signed.

Accountants and HR professionals archiving completed tax forms, offer letters, or payroll documents. Long-term PDF archives should be flat β€” active form fields can cause rendering issues in PDF archival viewers and may trigger compliance warnings in PDF/A validation tools.

Designers and print professionals who receive PDFs with annotations or form overlays that should not appear in the printed output. Flattening (in "Form fields + annotations" mode) removes all markup layers and produces a clean file ready for the print workflow or compression.

Real-World Use Cases

Submitting a tax form: You fill out a PDF tax return using the PDF Form Filler, but the portal requires you to upload a flat (non-interactive) PDF. You upload the filled form here, see "8 form fields" in the scan, choose "Form fields only", and click Flatten. The downloaded file passes the portal's flat-PDF requirement and retains all your filled values as permanent visible content.

Archiving a signed contract: A contract was signed digitally using a signature field. You need to archive it as a permanent record where the signature cannot be removed or re-signed. Flattening merges the signature graphic into the page β€” anyone viewing the archived file sees the signature as part of the document, not as an editable overlay. Follow up with password protection to prevent any modification to the archived document.

Cleaning up a reviewed document: A colleague has returned a document with 15 sticky note annotations and several text highlights. You want to incorporate the changes and produce a clean final version. Use "Form fields + annotations" mode to strip all annotation layers, then send the clean document for approval.

Flattening vs. Other Ways to Lock a PDF

Flattening vs. permission restrictions. Setting a PDF's permissions to "no editing" (via Protect PDF) still leaves the form fields in the file β€” they are just locked against modification by compliant viewers. Determined users or non-standard tools can ignore permission flags. A flattened PDF has no form fields at all β€” there is nothing to bypass.

Flattening vs. printing to PDF. Printing a PDF to a new PDF using a PDF printer (macOS Preview, Windows Print to PDF, Chrome) also flattens it, but this can degrade quality: vector text may become rasterized, fonts may change, and the file size often increases significantly. pdf-lib's form.flatten() preserves the original vector graphics and font information while removing only the interactive layer.

For maximum security, do both. The recommended workflow for final legal or financial documents: flatten with this tool first (removes all interactivity), then apply AES-256 password protection with Protect PDF. This ensures the document cannot be edited (flat) and cannot be opened without the correct password (encrypted).

728 Γ— 90 β€” Leaderboard Ad

Tips for Flattening PDF Files

  • Always keep the original. Flattening is irreversible. Save a copy of the interactive version before flattening β€” especially for tax forms or contracts you may need to update later.
  • Check the scan results first. If the scan shows 0 form fields and 0 annotations, the PDF is already static and flattening won't change anything. You can safely skip it.
  • Unlock before flattening. If the PDF is password-protected with an open password, remove it with Unlock PDF first. You cannot flatten a PDF you cannot open.
  • Choose "Form fields + annotations" for archive copies. If the document is going into a long-term archive, remove all annotation layers β€” they can cause display issues in archival PDF viewers and PDF/A validators.
  • Compress after flattening if size matters. Use Compress PDF after flattening to reduce the output file size further, especially for multi-page forms.
  • Fill first, flatten second. The correct workflow is: use PDF Form Filler to enter your data, download the filled PDF, then upload it here to flatten.
Verified by ToollyX Team Β· Last updated July 2026

Common Problems and Solutions

The tool says "encrypted PDF" and won't flatten. Your PDF requires a password to open. Use Unlock PDFto remove the open password first, then re-upload the unlocked file here for flattening.

The scan shows 0 fields but the PDF looks interactive. Some PDFs use XFA forms (a different form technology than AcroForm), which pdf-lib does not support. XFA is most commonly found in PDFs created by Adobe LiveCycle. For XFA flattening, you'll need Adobe Acrobat or a server-side tool.

Checkbox values look correct but the tick marks are missing after flattening. This can happen if the checkbox appearance stream uses a font (like Zapf Dingbats) that is not embedded in the PDF. The flatten() method renders the appearance stream as-is. If the font was missing before, the tick was not rendering β€” this is a pre-existing issue, not caused by flattening. Use PDF Form Filler to re-fill the checkbox with visible marks before flattening.

The flattened file is larger than the original. This can happen when the appearance streams are more complex than the original widget definitions, or when the tool re-encodes some content. Run the flattened file through Compress PDF to reduce it.

When Not to Flatten a PDF

Do not flatten a form you or the recipient still needs to fill or edit. Once flattened, no values can be changed short of using a PDF editor to draw new content on top of the page β€” which is cumbersome and not equivalent to using the original form fields.

Do not flatten before an e-signature workflow. Electronic signature platforms like DocuSign, Adobe Sign, and SignNow expect specific form field structures to be present so they can attach signatures to the correct fields. Flatten only after all parties have signed and the signing platform has produced its own output file.

Do not flatten if you need PDF/A compliance. PDF/A validation requires specific metadata structures. Flattening alone does not make a PDF compliant with PDF/A-1b or PDF/A-2a β€” you need a dedicated conversion tool for that. Flattening is compatible with most PDF/A workflows when done as part of a broader conversion pipeline.

Frequently Asked Questions

728 Γ— 90 β€” Leaderboard Ad

Related Tools