Repair a Broken or Garbled PDF

Some PDFs extract as garbled characters, open blank in older readers, or refuse to process in other tools — not because the content is damaged, but because the file uses a compressed storage format (PDF 1.5+ object streams) that those readers cannot handle. Drop the PDF below and it is re-saved without that compression, producing a clean file that opens, extracts, and prints correctly everywhere. The file never leaves your browser.

Drop a PDF here
or click to choose a file · processed on your device · nothing is uploaded

Why some PDFs produce garbled text

PDF 1.5 introduced object streams: a way to bundle many objects into a single compressed chunk. This reduces file size, but it means older readers — and many extraction tools — must decompress an entire chunk before they can read any single object inside it. When they cannot do that decompression, they read raw bytes and produce garbled characters, empty pages, or errors instead of text.

The fix is to re-save the PDF without object streams, which PDF tools call setting compatibility to PDF 1.4. Every object is then stored individually, uncompressed, and every reader can find and decode them directly. File size typically increases slightly, but compatibility becomes universal.

For a full explanation of why PDF text comes out garbled and the other causes behind it, read why PDF text comes out garbled.

How to repair a PDF

  1. Drop the PDF in. Drop the broken PDF onto the box above, or click to browse. The file is read inside your browser — nothing is sent to any server.
  2. Wait for repair. The PDF is loaded, its structure normalised, and the compressed object streams removed. For most files this takes under a second.
  3. Download the fixed file. Click Download repaired PDF to save the result. The repaired file is compatible with PDF 1.4 readers, Acrobat, every text extractor, and all print drivers.
  4. Try extraction again. Once you have the repaired PDF, run it through the PDF text extractor or PDF table extractor — the output should now be clean.

What the repaired PDF contains

What changes is only the internal storage format: object streams and cross-reference streams are expanded out. The visual appearance of the document is identical to the original.

What this tool can and cannot fix

Fixes:

Does not fix:

Why the PDF is never uploaded

The PDF is loaded from your disk by your browser and processed by pdf-lib, a pure-JavaScript PDF library. No network request is made during the repair, and the fixed file is written directly to your downloads folder. No copy exists anywhere else after the tab closes.

PDFs sent for repair often contain exactly the kind of content that should not travel to a stranger’s server — contracts, invoices, medical records, signed agreements. Here there is nothing to trust a third party with, because there is no third party.

Limits

When to use PDF repair

PDF repair compared with other PDF fixes

This tool fixes structural compression issues. Other PDF problems need different tools:

If repair does not fix the garbled text, the cause is a custom font encoding rather than object streams. Read why PDF text comes out garbled for the full decision tree.

Frequently asked questions

Why does my PDF show garbled text when I extract it?

The most common cause is compressed object streams (a PDF 1.5+ feature). Extraction tools that cannot decompress them read raw bytes and output garbled characters. Drop the PDF here to re-save it without those streams — extraction should produce clean text after that.

Will repairing the PDF change how it looks?

No. The visual content — text, images, layout, fonts — is preserved exactly. Only the internal storage format changes: objects are stored individually instead of bundled in compressed streams.

Is the PDF uploaded to a server?

No. The file is processed entirely in your browser by pdf-lib, a JavaScript library. Nothing is sent over the network.

My PDF is password-protected. Can I repair it?

Not directly — encryption prevents loading. Remove the password in Acrobat or a desktop tool first, then repair.

The repair did not fix the garbled text. What else could cause it?

A custom font encoding. Some PDFs use a character map that assigns non-standard meaning to standard codepoints — the text layer itself records the wrong characters. Re-saving cannot fix this; only the original application can output correct text. Read the guide on why PDF text comes out garbled for the full diagnosis.

Will repairing a signed PDF break the signature?

Yes. Re-saving any PDF changes its bytes, which invalidates embedded digital signatures. If the signature matters, keep the original; if only the content matters, repair is fine.

How big a PDF can I repair?

Files up to roughly 150 MB process in-browser without issue. For very large PDFs, split the file first with the PDF page splitter, then repair each part individually.

Can I use this to make a PDF compatible with PDF 1.4?

Yes. Removing object streams is the main thing that differentiates a PDF 1.4-compatible file from a PDF 1.5+ one. After repair, your PDF will open in any reader that supports PDF 1.4, which covers everything from Acrobat 5 onward.

• Specialist file parsing & security engineer • Verified: in our experience, our hands-on testing measured and verified private in-browser execution with zero file uploads • Last reviewed September 2026.