Prizmile PDF
Edit

Repair PDF — Free Online

Repair a damaged PDF in your browser. Healthy files are verified untouched; broken structure is rebuilt and verified — never rasterized, never uploaded.

Private by design — files stay in your browser

Add a PDF file to get started.

Drag & drop a PDF here

one file at a time — it never leaves your browser

100% client-side — no uploads, no servers

How it works

Repair PDF runs three structural checks in your browser and stops at the first one that succeeds. First it parses the file strictly with two independent PDF parsers and compares page counts; if both agree, the file is healthy and the original bytes are returned untouched. If strict parsing fails, it re-saves the document leniently, which rewrites the cross-reference table, trailer, and object graph while leaving content streams alone. If even that fails, it asks the second parser for readable text and painted images and rebuilds a fresh document from them. Every candidate is verified again before it is offered, no page is ever rasterized, and password-protected files are refused rather than cracked.

How to use it

  1. Under 'Drag & drop a PDF here', click 'Choose a PDF' (or drag the file onto the dropzone). One file at a time; extra files are ignored with a warning naming the file that was kept.
  2. The file card shows the name, size, and a best-effort page count — heavily damaged files show 'structure unreadable' but can still be tried.
  3. Review the three-stage list — 'Parse and verify structure', 'Rebuild document structure', 'Rebuild readable content' — and click 'Repair PDF'.
  4. Read the verdict: 'No repair needed', 'PDF repaired', or 'Rebuilt with limitations', plus the sizes, page counts, 'Preserved' list, and 'Limitations' list.
  5. Click 'Download PDF' (healthy) or 'Download Repaired PDF' (repaired or partial), or 'Start over' to clear the workspace. An encrypted file instead shows a notice with an 'Open Unlock PDF' button.

The three repair stages

The stage list is a real record of what ran, not decoration. 'Parse and verify structure' loads the file with both pdf-lib and pdf.js; agreeing page counts mean the PDF is healthy and the bytes come back unchanged. 'Rebuild document structure' re-parses tolerantly and saves a clean cross-reference table, trailer, and object graph; text, images, and page order pass through untouched. 'Rebuild readable content' is the last resort: when no parser can produce a usable document, text lines are re-emitted as editable text at their original positions and painted images as real image objects in a brand-new file.

What the verdict means

'No repair needed' means both parsers read the file and agreed on the page count, so nothing was changed and you keep the original. 'PDF repaired' means the lenient rebuild produced a document that passed the same strict verification. 'Rebuilt with limitations' means only the content path worked: page count and dimensions are kept, but the 'Limitations' list spells out what did not survive, and the result is never presented as a clean repair. If all three stages fail, no file is offered at all — the tool reports the failure instead of inventing a download.

Output and download

A healthy file downloads under its original name via 'Download PDF'. A repaired or partially rebuilt file downloads as <name>-repaired.pdf, derived from the source filename with .pdf removed, via 'Download Repaired PDF'. The download is generated from an in-memory blob, and its temporary URL is released when you replace, remove, or start over, so no copy is kept on a server.

Formats & limitations

  • PDF input only, accepted by application/pdf MIME type or a .pdf filename; other file types are rejected at upload.
  • One PDF at a time. Additional files are ignored with a warning naming the file that was kept.
  • Structural damage is the target: broken cross-reference tables, trailers, and object graphs that make a PDF unreadable. Cosmetic issues such as a missing %%EOF marker often parse normally and are reported healthy, with the bytes untouched.
  • Encrypted PDFs are detected and refused with a link to Unlock PDF. There is no password guessing or recovery here.
  • The content-rebuild path keeps selectable text and painted images, but drops vector drawings, annotations, links, and original fonts. Text is redrawn with a plain font, so appearance can differ from the original.
  • In that path, images smaller than 2 pixels or larger than 30 million pixels are skipped and reported, and some text runs may also be skipped. Nothing is rasterized on any path.
  • No coded file-size or page-count limit was found in the tool; very large or badly damaged files still depend on what the two parsers can read.
  • Files that every stage fails to parse produce no download — an honest failure with stage diagnostics instead of a damaged file.

How results are validated

  • Every candidate is re-opened with strict pdf-lib parsing and an independent pdf.js parse before a verdict is given.
  • Page counts must match between the two parsers and be greater than zero.
  • Healthy files are returned byte-identical; a structural rebuild is only called 'repaired' after it passes that same strict check.
  • The content-rebuild path is always labelled 'partial' and lists exactly which items were preserved and which were lost.

Troubleshooting

'“name” is not a PDF file.'

Choose a PDF. The upload check uses the MIME type or a .pdf filename; other formats are not converted.

The file card says 'structure unreadable'.

This only means the best-effort page count failed. Click 'Repair PDF' anyway — the repair stages can still recover a document.

The result says 'No repair needed'.

Both parsers read the file and agreed on the page count, so nothing was wrong. Download the original under its original name.

'A password is required to open this PDF'.

Repair does not crack passwords. Open Unlock PDF, remove the password you know, then bring the unlocked file back here.

'Rebuilt with limitations' and a long Limitations list.

Only the content path worked. Text and images were rebuilt, but vectors, annotations, links, and original fonts were not; review the list before using the file.

'This PDF could not be repaired.' after all three stages.

No parser could recover a usable structure or readable content. There is no hidden recovery step — try a different copy or an earlier version of the file.

Real-world examples

  • A scanned report whose cross-reference table is broken and viewers refuse to open: the lenient rebuild writes a clean one and the pages and text pass through unchanged.
  • An old archive file that opens in one viewer but not another: two parsers are compared, and a disagreement on page count sends the file to the rebuild path.
  • A file a third party flagged as corrupt but that reads fine: if both parsers agree, it is reported healthy and downloaded byte-for-byte as the original.
  • A badly damaged brochure with text and photos but no valid structure: the content path rebuilds them into a new file and lists exactly what was dropped.
  • A password-protected invoice you want to fix: repair stops immediately and points to Unlock PDF, since no password is guessed here.

Frequently asked questions

What kinds of damage can Repair PDF fix?

It targets structural damage — broken cross-reference tables, trailers, and object graphs that make a PDF unreadable. The lenient rebuild writes those structures again while leaving text, images, and page order untouched. If that fails, a last-resort path rebuilds readable text and images into a new file. Cosmetic problems that both parsers tolerate, such as a missing %%EOF marker, are reported as healthy with the bytes unchanged.

Is the original PDF changed or rewritten?

Only when it needs to be. A healthy file is returned byte-identical under its original name. A structural repair re-saves the document with a clean structure and downloads as <name>-repaired.pdf. The content-rebuild path creates a brand-new PDF from readable text and images; it is always flagged as partial, never as a clean repair.

Can it recover a password-protected PDF?

No. Encrypted files are detected up front and refused with a link to Unlock PDF. This tool never guesses, cracks, or removes passwords, and it does not attempt to recover data hidden behind one.

What might be lost when a file is partially rebuilt?

The content-rebuild path keeps selectable text and painted images at their positions, but it cannot preserve vector drawings, annotations, links, or the original fonts; text is redrawn with a plain font. Very small or very large images and some text runs may be skipped. The result list names exactly what was preserved and what was lost, and no page is rasterized.

Why did I get an error instead of a download?

Either the file is not a PDF, is encrypted, or all three stages failed to recover a verifiable document. In the last case the tool reports the failure and shows which stages ran rather than offering a damaged file. Try another copy or an earlier version of the PDF; there is no further recovery step here.

Related tools

View all →