pdf tool

Flatten a PDF form

Flattening cannot be undone, and almost every tool asks you to press the button blind. This one opens the form as a ledger first: every field, its type, the page it sits on, and the answer it currently holds, with the empty and locked ones called out before you commit.

Runs on your device. Nothing is uploaded.

Loading the tool…

How to use it

  1. 1

    Open the filled form

    Every field is listed with its type, its page, and the answer stored in the file. A summary counts how many are answered, empty or locked.

  2. 2

    Read the warnings

    Required fields left empty, signature fields that will stop validating, tick boxes that may lose their mark, and comments sitting on top of the pages are each called out in words.

  3. 3

    Correct any answer

    Type into the value column to fix a typo or fill a gap. Search and the Empty filter make a long form manageable.

  4. 4

    Bake the answers in and download

    Each field's appearance is drawn into the page and the field itself is removed, so nothing in the download can be typed over.

Your PDF never leaves this page

The file is read into memory by your browser and rewritten there. There is no upload, no queue and no server copy, which you can confirm in the network tab: choose a file and watch nothing happen. That matters more for PDFs than for most things, because filled forms carry names, addresses, bank details and medical answers.

What flattening actually does to the file

An interactive form field is two things: a value stored in the field dictionary, and an appearance stream that says how that value should look. Flattening draws the appearance stream straight into the page's own content, then deletes the field and its widget annotation. The text you see stays exactly where it was, but it is now ordinary page content: no longer a field, no longer exportable as data, and no longer editable by whoever opens the file next.

The fields most likely to go wrong

Tick boxes and radio groups are the weak point. A checkbox stores its look as a small dictionary of states, one per option, and some producers never write the on state at all. Flatten a file like that and the tick simply disappears, which is worse than leaving the form alone. Any tick or radio in your file is counted and flagged for that reason, and the tool tells you afterwards which fields it could not bake in rather than pretending they worked.

Flatten first, sign afterwards

A certificate based signature covers an exact range of bytes in the file. Flattening rewrites those bytes, so a document signed before flattening reports as altered afterwards, even though nothing you can see has changed. The order that works is always the same: fill the form, flatten it, then apply the digital signature to the flattened copy. If the file already carries a signature, that is flagged the moment it opens.

Limits

  • Flattening is not reversible. Keep the original if an answer may need changing later.
  • Tick boxes and radio groups are the field types most likely to lose their mark, because some files carry no drawable appearance for them.
  • A certificate based signature already on the file stops validating once the file is rewritten, whatever you flatten.
  • XFA forms are only partly readable here, because their layout is built by the reader rather than stored in the page.

What it does not do

  • It does not fill the form in for you from a spreadsheet.
  • It does not rasterise the pages, so the text stays selectable.
  • It does not remove a password or any other protection.

Questions people ask

Can I undo flattening?

No. The fields are gone and their values are now part of the page. Keep the original filled file if you may need to change an answer later. If you only wanted the answers rather than a locked file, save them as a CSV under Advanced options and leave the PDF alone.

Why does it say there are no form fields?

Because the document has no interactive form in it. That is normal for a form that was printed, filled in by hand and scanned back, where the answers are part of the image. It also happens with forms exported as flat PDFs by design, which are already in the state you were aiming for.

What is the difference between flattening and locking?

Flattening removes the fields entirely, so there is nothing left to type into. Marking fields read only leaves them in place and asks the reader to respect a flag, which any editor can clear. Flattening is the stronger of the two, though neither is encryption and neither proves who filled the form in.

Why would I bake in comments and stamps?

Because sticky notes, highlights and approval stamps are annotations floating above the page, and a reader can drag or delete them. Turning that option on draws each one into the page content and removes the annotation, which is what you want before filing a marked up document. Comments with no stored appearance are left alone.

Does it work on a government form?

Usually. The exception is a dynamic XFA form, where the layout is computed by Adobe Acrobat when the file opens rather than stored in the page. Those are flagged on load, and the honest answer for one is to open it in Acrobat and print to PDF, which renders the real layout before locking it.

Is my file uploaded?

No. It is read and rewritten by pdf-lib running in this tab, and nothing is sent anywhere. The CSV export is built in the browser too, so the answers in a filled form never travel, which is the whole point of doing this here rather than on a website that queues your file.

Collect these answers properly instead

Take what you made here into forms.

Create a form with OneCraft

Related tools

Background reading: the question page on this.

Built with pdf-lib (MIT).

Sources

Written and checked by the OneCraft team. Last checked .