Skip to content
PDFToolz

Repair PDF

Rebuild a damaged PDF that won't open, and linearize it for fast web viewing.

Select a PDF file

or drop it anywhere on this page, or paste

Opens in your browser. Nothing is uploaded.

Repair PDF, free and private

Repair a PDF that will not open, says the file is damaged, or loads with missing pages. Most of the time the content is still there and only the file's index is broken. That index, the cross-reference table, tells a reader where each part of the file lives.

Repair PDF rebuilds that index with qpdf, an open-source PDF toolkit, running in your browser as WebAssembly. It is free and the file is never uploaded, which matters when the broken file is a contract you cannot easily replace.

How to repair a damaged PDF

  1. 1

    Add the damaged PDF

    Press Select PDF files or drop the file onto the page. The tool repairs one file at a time.

  2. 2

    Press Repair PDF

    There are no settings. qpdf reads what it can, rebuilds the cross-reference table if it is broken, and writes a clean new file.

  3. 3

    Download the repaired file

    Press Download PDF. The file ends in -repaired.pdf. The result screen shows the old and new size, lists the damage that was fixed and confirms fast web view is on.

  4. 4

    Check that it opens

    Open the repaired file in your usual reader and page through it. Keep the original until you are sure nothing is missing.

Why use PDFToolz for this

Built for broken files

qpdf is designed to read damaged PDFs and recover their structure. Warnings during recovery are normal and do not stop the rebuild.

Fast web view

The output is linearized, so a browser can show page 1 before the whole file has downloaded. Useful for PDFs you host on a website.

Nothing leaves your device

The repair runs as WebAssembly in your browser. The file is not sent to a server.

No account

There is no sign-up, watermark or limit on how many files you repair.

How the PDF repair works

qpdf reads the file object by object. If the cross-reference table is missing or wrong, it scans the file to find the objects itself. Then it writes a new PDF with a correct index. Objects nothing points to are dropped and small objects are packed into compressed streams, so the repaired file is often a little smaller.

Page content does not change. Text, images, fonts, bookmarks and form fields that could be read are written back as they were. Nothing is redrawn or converted.

When repair helps and when it cannot

Repair works when the content is still in the file but the structure around it is wrong. It cannot bring back data that is not there.

  • Likely to help: file is damaged and could not be repaired errors, files saved by buggy software, PDFs merged by tools that left a broken index, and files that open in one reader but not another.
  • Partly helps: cut-off downloads. Pages stored before the cut can often be saved. Anything after it is gone, so download the file again if you can.
  • Cannot help: a file that is not really a PDF, such as an error page saved with a .pdf name or a zero-byte file.
  • Protected files: a file that only blocks printing or copying can be repaired as it is. A file that needs a password to open must go through Unlock PDF first.

What to check after repairing

A file that opens is not always complete. Compare the page count with what you expected and look at the last pages, where a cut-off shows up. Check that images and fonts look right and that form fields still hold their values.

If problems remain, try the original in another PDF reader, since some are more forgiving, or ask the sender for a new copy. Once the file opens reliably, you can shrink it with Compress PDF.

Frequently asked questions

Last reviewed . See how we build and test our tools, or report an error.

Related tools and guides