Help center

How to Compress a PDF and Keep the Text Selectable

Use the keep-text mode to preserve existing text and links, and see what changes when a PDF needs stronger compression.

Choose Keep text · cleanup only in the PDF compressor when someone needs to search, copy, or select text in the finished file. It rewrites the PDF’s structure and leaves the existing page content, including text and links, in place. Use it when those features matter more than a large size reduction.

Check your PDF first

Try selecting a sentence in the original. If your PDF is a scan with no existing text layer, cleanup cannot make the text selectable. You’ll need OCR for that. See why PDF text won’t select.

Keep text when you compress

  1. Open the PDF compressor and choose your PDF.
  2. Under Compression, leave Keep text · cleanup only selected.
  3. Select Compress PDF and compare the original and output sizes.
  4. Download the copy. Open it in a PDF viewer, search for a word you know is on the page, select a sentence, and test any links you need to keep.

How the two modes compare

We tested both modes on the same one-page PDF with a large photo, selectable text, and a link.

  • Keep text · cleanup only displayed 3.9 MB → 3.9 MB at the tool’s rounding precision. The mode keeps the existing text and link intact.
  • Fit an upload limit with a 2 MB target displayed 3.9 MB → 239 KB. It stored the page as an image, so the text was no longer selectable and the link was no longer active.

Cleanup savings are often modest on image-heavy or already optimized PDFs. A size target may keep the original or a cleaned-up copy when it already fits. For larger savings it can turn pages into images. Check the result message to see which kind of copy you’re downloading.

When you need a smaller file and selectable text

Return to the document you exported from, shrink oversized images there, and export a fresh PDF. If the file is for an upload form, confirm the portal’s size limit first and keep a copy of the original. Follow the 2 MB upload guide if the recipient can accept a flattened copy.

Open the PDF compressor

Related help

Editing signed, password-protected, or form PDFs

Why these three kinds of file behave differently, and what your options are.

How to Compress a PDF to 2 MB for an Upload Form

Use Fun PDF Editor’s 2 MB preset, check whether your file meets the limit, and keep the copy readable before you upload it.

What to do when edited text runs past the page edge

Why longer text overflows, and four ways to fix it without breaking the layout.

Open the editorAll help articlesFull editing guide