Skip to content
Devtoolry

Repair PDF

Repair a corrupted PDF online: rebuild a broken structure, recover pages from cut-off downloads, or rescue pages that will not open. Fixed in your browser.

Runs in your browser · Nothing uploadedFree · No sign-up

Something not working, or missing a feature? Send feedback

About the Repair PDF

Repair PDF fixes files that refuse to open or show blank pages: downloads that stopped part-way, attachments damaged by an email gateway, and PDFs whose internal index (the cross-reference table) is broken. It rebuilds the file's structure while keeping text, links and image quality, and when that is not enough it rescues every page that can still be drawn.

PDFs are processed in your browser (pdf-lib, PDF.js and, for passwords, QPDF compiled to WebAssembly), so contracts, invoices and scans never leave your device.

How to use the Repair PDF

  1. Choose the damaged PDF.
  2. Press Repair PDF.
  3. Read what was found and fixed, then download the repaired file.

Where it works well

  • PDFs with a broken or missing index ("xref") that readers refuse
  • Interrupted downloads and truncated email attachments
  • Files with garbage before the %PDF header

Where it struggles

  • Files where the page contents themselves are corrupted (parts of a page may stay blank)
  • Files that are not PDFs at all, for example a web page saved with a .pdf name

Works well with the Repair PDF

Frequently asked questions

Is my file uploaded?

No. Everything happens in your browser on your device; nothing is sent to a server. You can check this in your browser's developer tools: the Network tab shows no request carrying the file.

What kinds of damage can it fix?

A missing or wrong cross-reference table, a lost trailer, junk bytes before the start of the file, objects that cannot be read, a broken page list, and files cut off in the middle of a download. Pages that were never downloaded cannot be brought back.

Why are some pages pictures now?

When the structure is too damaged to keep, the pages that can still be drawn are saved as images at 150 dpi, with their text in an invisible layer so you can still search and copy it. Links and form fields on those pages are lost.

It says my PDF looks healthy, but it does not open. Why?

The structure is fine, so the problem is likely the reader (try another browser or app) or encryption. The clean copy Repair writes often opens where the original did not.

Can it open a password-protected PDF?

Not without the password. Remove it first with Unlock PDF, then repair the unlocked copy.