Flattening runs locally in your browser using pdf-lib (vector form flattening) and PDF.js (page rendering). Files are not uploaded. Two modes: Keep forms as real text preserves searchable vector text; Lock in everything on the page rasterizes pages to bake in markup. Digital signatures are not preserved. XFA forms are not supported.

Flatten PDF Online — Lock Forms & Markup in Your Browser

Lock fillable form fields or bake in comments and highlights—two modes, up to 50 MB, entirely in your browser. No upload, no account. Keep a backup; flattening cannot be undone.

Loading tool…

By Muhammad Abdullah Rauf · Founder, EverydayTools.proUpdated 2026-06-03

What does flattening a PDF mean?

Flattening locks interactive content so it cannot be edited. This tool offers two modes: keep fillable forms as real text (vector), or bake in everything on the page including comments and highlights (raster). Processing runs in your browser — no upload.

A **flattened PDF** is one where interactive elements are locked into the page. Fillable form fields become fixed text; comments, highlights, and stamps can be baked in so they print and display consistently.

This tool provides **two modes**:

1. **Keep forms as real text** — uses pdf-lib to flatten AcroForm fields in place. Text stays searchable and selectable. Comments and highlights are **not** removed.

2. **Lock in everything on the page** — renders each page with PDF.js, encodes as JPEG, and rebuilds the PDF with pdf-lib. Comments, highlights, and stamps are baked in. Text is **not** selectable — similar to printing to PDF.

All processing runs locally in your browser. Files are not uploaded to any server. Maximum file size is 50 MB. Flattening is **irreversible** — keep a backup of the original.

Quick answers

Concise answers for common searches — definitions, steps, and comparisons.

What does flattening a PDF mean?

Flattening locks interactive content into the page so it cannot be edited. Fillable form fields become fixed text; comments and highlights can be baked in depending on the mode you choose.

What are the two flatten modes?

Keep forms as real text uses pdf-lib to lock AcroForm fields while keeping text searchable — comments and highlights stay editable. Lock in everything on the page renders each page with PDF.js and rebuilds the PDF as images, baking in all markup — similar to Print to PDF.

How do I flatten a PDF in my browser?

Upload your PDF, review the file check, choose a mode, then click Lock PDF and download the result.

  1. Upload a PDF (up to 50 MB)
  2. Review the file check for forms, comments, and warnings
  3. Choose Keep forms as real text or Lock in everything on the page
  4. Click Lock PDF
  5. Download the flattened file

Is text still selectable after flattening?

In Keep forms as real text mode, yes — only form interactivity is removed. In Lock in everything on the page mode, no — pages are rasterized and text behaves like a scanned or printed PDF.

How is flattening different from Print to PDF?

Keep forms as real text is more precise for fillable forms — it locks field values without rasterizing the page. Lock in everything on the page is similar to Print to PDF: the page becomes an image, so text is not selectable but all visible markup is baked in.

Is my PDF uploaded when I flatten it?

No. Flattening runs entirely in your browser using pdf-lib and PDF.js. Your file is read from memory on your device and never sent to a server.

What are the limits?

Maximum file size is 50 MB. Lock in everything on the page caps at 40 pages on mobile and 80 on desktop. Digital signatures are not preserved. XFA forms are not supported. Flattening is irreversible — keep a backup.

How to use Flatten PDF Online

  1. Upload your PDF

    Drag and drop or click to select a PDF (up to 50 MB). The file stays on your device — nothing is uploaded to a server.

  2. Review the file check

    The tool scans your PDF for fillable forms, comments, highlights, and stamps. It shows counts and recommends a mode. Read any warnings before continuing.

  3. Choose a flatten mode

    Select Keep forms as real text to lock form field values while keeping text searchable (comments stay). Or select Lock in everything on the page to bake in all markup — choose Balanced (recommended) or Smaller file for raster output.

  4. Lock PDF

    Click Lock PDF. Forms mode uses pdf-lib vector flattening. Lock-everything mode renders each page with PDF.js and rebuilds the PDF. Processing time depends on page count and mode.

  5. Download the flattened PDF

    Save the result to your device. Verify form values, comments, or highlights as needed. Keep your original file as a backup — flattening is irreversible.

Who uses Flatten PDF Online?

Common real-world scenarios where this tool saves time.

Submitting completed forms

Lock fillable job applications, government forms, and contracts so field values cannot be edited, while keeping text searchable in forms mode.

Finalizing reviewed documents

Bake in comments, highlights, and stamps before sharing a reviewed PDF with clients or stakeholders who should see markup permanently.

Preparing print-ready files

Use Lock in everything on the page with the Balanced preset so on-screen markup prints exactly as displayed.

Archiving completed paperwork

Create a non-interactive archive copy of filled forms while keeping the original editable version as a backup.

Workflow guides

Step-by-step chains that connect related tools for common tasks.

Lock a fillable job application

You completed a PDF job application with fillable fields and need to submit a non-editable version with searchable text.

  1. Upload the filled PDF.
  2. Review the file check — it should detect AcroForm fields.
  3. Choose Keep forms as real text.
  4. Click Lock PDF and download.
  5. Verify field values are fixed and text is still selectable before submitting.

Bake in review comments before sharing

A colleague added comments and highlights to a PDF and you need them permanently visible when shared.

  1. Upload the annotated PDF.
  2. Review the file check — note comment and highlight counts.
  3. Choose Lock in everything on the page and select Balanced (or Smaller file for a lighter download).
  4. Click Lock PDF and download.
  5. Open the result and confirm comments and highlights appear baked in.

Prepare a contract for printing

A signed-off contract PDF has stamps and highlights that must print exactly as shown on screen.

  1. Upload the contract PDF.
  2. Choose Lock in everything on the page with the Balanced preset.
  3. Lock and download.
  4. Print a test page to confirm stamps and highlights render correctly.

Flatten PDF Online examples

Lock a filled job application (forms mode)

Input

job-application-filled.pdf — 4 pages, 12 AcroForm fields (name, address, experience). Mode: Keep forms as real text.

Output

job-application-filled-flattened.pdf — same 4 pages, fields locked as fixed text, text still searchable and selectable.

Use Keep forms as real text when you need to submit a completed form that cannot be edited but must stay searchable. pdf-lib flattens AcroForm fields in place without rasterizing the page. Comments and highlights are not removed in this mode — only form interactivity is locked.

Bake in review comments before sharing (lock-everything mode)

Input

contract-review.pdf — 18 pages, 8 comments and 3 highlights. Mode: Lock in everything on the page. Preset: Balanced.

Output

contract-review-flattened.pdf — 18 image-based pages with comments, highlights, and stamps baked into each page.

Use Lock in everything on the page when markup must print and display exactly as shown on screen. PDF.js renders each page to JPEG and pdf-lib rebuilds the PDF. Text is no longer selectable — similar to Print to PDF. Choose Balanced for most documents or Smaller file if download size matters.

Flatten a copy of a signed tax form

Input

tax-return-signed.pdf — fillable fields + digital signature. Workflow: keep original; flatten a duplicate with Keep forms as real text.

Output

tax-return-flattened-copy.pdf — field values locked; digital signature invalidated on the copy only.

Flattening modifies PDF structure and invalidates digital signatures. Always keep the original signed file as your official record. Flatten a duplicate when you need locked field values for a secondary submission — expect the signature to be removed or invalidated on the copy.

Lock a markup-only PDF with no fillable fields

Input

design-feedback.pdf — 6 pages, 0 form fields, 14 annotations (comments + highlights). Mode: Lock in everything on the page. Preset: Smaller file.

Output

design-feedback-flattened.pdf — 6 pages with all markup permanently embedded; text not selectable.

When the file check shows zero form fields, Keep forms as real text is unavailable. Lock in everything on the page is the correct choice to bake comments and highlights into the document. Smaller file uses a lower render scale and JPEG quality for a smaller download.

How PDF flattening works in your browser

Processing runs entirely on your device. (1) Keep forms as real text — pdf-lib loads the PDF, calls form.flatten() on AcroForm fields, and re-saves. Field values become fixed text; layout and vector graphics stay intact. (2) Lock in everything on the page — PDF.js renders each page to a canvas at Balanced or Smaller file quality; pages are encoded as JPEG and assembled into a new PDF with pdf-lib. This bakes in all visible markup but rasterizes text. A quick file check runs before flattening to detect forms, annotations, and recommend a mode.

Limitations

  • Maximum 50 MB per file for browser stability.
  • Lock-everything mode: up to 40 pages on mobile, 80 on desktop; estimated memory budget ~120 MB.
  • Lock-everything mode makes text non-selectable — similar to Print to PDF.
  • Digital signatures are invalidated or removed by flattening.
  • XFA (XML Forms Architecture) forms are not supported.
  • Flattening is irreversible — keep a backup of the original.
  • Forms mode does not remove comments, highlights, or stamps.

Reference tables

Flatten modes compared

Keep forms as real textLock in everything on the page
Best forFillable forms, searchable outputComments, highlights, stamps
How it workspdf-lib vector flatten (form.flatten)PDF.js render → JPEG → pdf-lib rebuild
Text selectableYesNo (rasterized)
Comments removedNo — remain editableYes — baked into page
File typeVector PDFImage-based PDF
Similar toProfessional form flatteningPrint to PDF

Flatten PDF vs Print to PDF

Keep forms as real textLock everything modePrint to PDF
Form fields lockedYes (vector)Yes (raster)Yes (raster)
Text searchableYesNoNo
Comments baked inNoYesYes
Runs in browserYes — no uploadYes — no uploadDepends on OS
Quality controlLossless vectorBalanced / Smaller file presetsPrinter settings

PDF tools: when to use flatten

TaskUse flatten PDF?Alternative
Lock fillable form valuesYes — Keep forms as real text
Bake in comments and highlightsYes — Lock in everything on the pagePrint to PDF (no in-browser presets)
Reduce file sizeNoCompress PDF
Combine multiple PDFsNoMerge PDF
Remove passwordNoUnlock PDF first, then flatten

Common mistakes to avoid

Using forms mode when you need comments baked in

Keep forms as real text does not remove comments or highlights. Switch to Lock in everything on the page to bake markup into the page.

Expecting searchable text after lock-everything mode

Lock in everything on the page rasterizes pages — text is not selectable. Use Keep forms as real text if you need searchable output.

Flattening the only copy of a signed document

Flattening invalidates digital signatures. Always keep the original signed file and flatten a duplicate if needed.

Not keeping a backup before flattening

Flattening is irreversible. Save a copy of the original PDF before locking.

Using lock-everything mode on a 100-page PDF

Raster mode caps at 40 pages (mobile) or 80 (desktop). Split large PDFs first, or use Keep forms as real text for long form-heavy documents.

Troubleshooting

Lock PDF button is disabled

Likely cause: No file loaded, analysis still running, password-protected PDF, no fillable fields in forms mode, or PDF engine still loading.

Fix: Wait for the file check to finish. For forms-only locking, the PDF must have AcroForm fields. For markup-heavy files with no forms, switch to Lock in everything on the page. Remove password protection before uploading.

Processing fails or shows a page-limit error

Likely cause: File exceeds 50 MB, or Lock in everything on the page exceeds 40 pages on mobile / 80 on desktop.

Fix: Compress or split the PDF first. On a phone, try fewer than 40 pages for lock-everything mode. Use Keep forms as real text if you only need form fields locked on a long document.

Comments still visible and editable after flattening

Likely cause: Keep forms as real text was selected — this mode locks form fields only and does not bake in comments or highlights.

Fix: Switch to Lock in everything on the page, keep a backup of the original, and flatten again to bake markup into the page.

Text is not selectable after flattening

Likely cause: Lock in everything on the page rasterizes each page — output behaves like Print to PDF.

Fix: This is expected for lock-everything mode. Re-flatten from your backup using Keep forms as real text if you need searchable, selectable text (and the PDF has fillable fields).

Form fields still editable after flattening

Likely cause: The PDF may use XFA forms instead of AcroForm, flattening did not complete, or the wrong mode was used for markup-only files.

Fix: Export to standard AcroForm from the source app if possible. Check for error messages, clear and re-upload, then try again. XFA forms are not supported.

Output file is much larger than the original

Likely cause: Lock in everything on the page embeds each page as a JPEG image — long documents at the Balanced preset produce larger files than vector originals.

Fix: Try the Smaller file preset, use Keep forms as real text if you only need fields locked, or run Compress PDF on the result if size matters.

Flattening took too long or timed out

Likely cause: Large files (2 MB+) use a background worker for forms mode; very large or complex PDFs can exceed the time limit. Raster mode runs on the main thread and scales with page count.

Fix: Try a smaller file or fewer pages. For forms-only jobs, retry on desktop. For markup baking, split the PDF and flatten sections separately.

Advertisement

Frequently Asked Questions

What are the two flatten modes?

**Keep forms as real text** locks fillable AcroForm field values into the page using pdf-lib. Text stays searchable and selectable. Comments, highlights, and stamps are not removed. **Lock in everything on the page** renders each page with PDF.js, encodes it as JPEG, and rebuilds the PDF. All visible markup — comments, highlights, stamps — is baked in. Text becomes non-selectable, similar to printing to PDF.

Which mode should I use?

Use **Keep forms as real text** when you have fillable forms and want searchable, selectable text. Comments and highlights will remain editable. Use **Lock in everything on the page** when you need comments, highlights, or stamps permanently embedded — for example before sharing a reviewed document or printing. Choose Balanced for most files or Smaller file if download size matters.

Is text still selectable after flattening?

It depends on the mode. **Keep forms as real text** preserves selectable, searchable text — only form interactivity is removed. **Lock in everything on the page** rasterizes each page, so text is no longer selectable — the output behaves like a scanned or printed PDF.

How is flattening different from Print to PDF?

**Keep forms as real text** is more precise than Print to PDF for forms — it locks field values without rasterizing the page. **Lock in everything on the page** is similar to Print to PDF: the page is rendered to an image, so text is not selectable but all visible markup is baked in.

What happens to comments and highlights?

In **Keep forms as real text** mode, comments and highlights are **not** removed — only form fields are flattened. In **Lock in everything on the page** mode, comments, highlights, and stamps are baked into the page image and will print and display consistently.

Are digital signatures preserved?

No. Flattening modifies the PDF structure and invalidates digital signatures. If you need signed documents, flatten a copy and keep the original signed file unchanged.

Does this tool support XFA forms?

No. XFA (XML Forms Architecture) forms are not supported. The tool works with standard AcroForm fillable fields. XFA-heavy PDFs may not flatten correctly — test with a copy first.

Is my PDF uploaded to a server?

No. Flattening runs entirely in your browser using pdf-lib and PDF.js. Your file is read from memory on your device and never sent to any server.

What are the file and page limits?

Maximum file size is 50 MB. In **Lock in everything on the page** mode, page count is capped at 40 on mobile devices and 80 on desktop to protect browser memory. **Keep forms as real text** mode does not have a separate page cap beyond the file size limit.

Can I undo flattening?

No. Flattening permanently locks content into the PDF. Always keep a backup of the original file before flattening.

Privacy, accuracy, and trust

Privacy

Flattening runs entirely in your browser. Your PDF is read from memory on your device and is not uploaded to EverydayTools servers.

How this tool works

Two modes: Keep forms as real text (pdf-lib vector flattening) locks AcroForm fields while preserving searchable text. Lock in everything on the page (PDF.js rasterization) bakes comments, highlights, and stamps into page images. A quick file check recommends a mode before you lock the file.

Flattening is irreversible — always keep a backup of the original. Digital signatures are not preserved. XFA forms are not supported.

Part of PDF Tools

More free tools for the same workflow.

Advertisement

Reviewed on 2026-06-03.