Skip to content
Outilix: all your free online tools, one click away, with Kroma the chameleon

Repair a damaged PDF file

Repair a damaged PDF file
Kroma

To repair a PDF that won't open, drop it in: the tool first rebuilds its structure with qpdf, and if that isn't enough it rewrites the file page by page with Ghostscript. You download a clean PDF and see how many pages came back. If the file was cut off, only the pages that still exist return.

  • ✅ Free
  • 🔒 No sign-up
  • 📱 Works on mobile
  • ⚡ Instant results
Loading the tool…

🔒 This conversion runs on our secure server. Your files are deleted automatically after 1 hour and are never read or kept.

📌 Key facts

  • To repair a PDF, the tool first rebuilds its cross-reference table with qpdf, then rewrites the file with Ghostscript if needed.
  • qpdf keeps the content identical (text, images, bookmarks); Ghostscript may slightly change the layout or drop bookmarks.
  • A PDF that was cut off, for example by an interrupted download, only recovers the pages that still exist.
  • Limits: 20 MB per file and 15 repairs per hour.
  • A password-protected PDF is not damaged, and the tool refuses it.
  • The file is processed in a private temporary folder and deleted as soon as the result is sent.

What makes a PDF unreadable

A PDF contains a table that says where each page sits in the file. When that table is damaged, the reader can't find anything, even if the pages are intact. The most common causes:

  • an interrupted download (the file is cut off partway);
  • a text-mode FTP transfer or an email gateway that altered the bytes;
  • software that crashed while saving;
  • failing storage (USB drive, disk).

The two repair methods

StepToolWhat it does
1qpdfReads the whole file and rebuilds the cross-reference table. Keeps the content identical: text, images, bookmarks.
2 (if needed)GhostscriptReinterprets every page and writes a new PDF. Skips unreadable objects, but may slightly change the layout or drop bookmarks.

The tool tells you which method worked. It can't invent what is gone: if the end of a file is lost, the pages stored there are lost too.

If the repair fails

Try opening the PDF in another reader (browser, Preview, Acrobat): some tolerate more errors. Download the file again from the source if you can. A password-protected PDF isn't "damaged": the tool refuses it, so remove the protection first. Limits: 20 MB and 15 repairs per hour.

How to repair a PDF in 4 steps

  1. First, drop the damaged PDF (20 MB at most) in the box above.
  2. Next, wait while the tool tries qpdf, then Ghostscript if needed.
  3. Then check how many pages came back and which method worked.
  4. Finally, download the PDF and open it to confirm.

To repair a PDF without wasting time, keep the original file nearby. That way you can always go back. The tool never changes your original.

If you need to repair a PDF that is large, be patient, because every page goes through the check. Then compare the number of recovered pages with what you expected. When the numbers match, your file is complete.

Repair a PDF: which symptom, which method

SymptomLikely causeWhat helps
"File is damaged" but normal sizeBroken cross-reference tableqpdf, step 1
File smaller than expectedCut-off downloadDownload again, then repair
Blank image on a pageUnreadable objectGhostscript, step 2
Asks for a passwordProtection, not corruptionRemove the protection first

When you want to repair a PDF that was cut off, download it again if you can. No tool can rebuild a page that never arrived. So when you repair a PDF, expect missing pages only after a cut-off download.

Keep a PDF from breaking again

  • Wait for the download to finish before you open the file.
  • Eject a USB drive properly, because a sudden pull can cut the write short.
  • Do not rename another file type to .pdf, since that never makes a real PDF.
  • Keep a copy of important documents in a second place.

For example, after you had to repair a PDF once, always save your work before you close the software. Then you cut down on bad surprises. Also keep your files on a reliable drive, and keep a cloud copy too. That way you restore a file instead of repairing it.

If the file stays unreadable, try another reader, such as your browser. Some tolerate more errors than others. If no reader opens the file, still try to repair it, because the tool reads a PDF differently than a regular viewer does.

What to do after you repair your PDF

When your PDF opens again, take the chance to clean it up. Each tool below accepts the repaired file. You drop it in, adjust a few options and download the result. Nothing asks for an account. So the whole routine takes a minute or two.

Finally, if a page stays blank, convert it with PDF to JPG to see what remains.

3 real-life examples

1

A download that stopped at 60%

The PDF is 4 MB instead of 7 MB and the reader says "file is damaged". After repair: 12 of 20 pages recovered. The last 8 were never received, so download the document again.

2

A PDF that opens in the browser but not in Acrobat

The cross-reference table is wrong, but the pages are fine. qpdf rebuilds it: all 35 pages come back with their bookmarks.

3

A PDF received by email with blank pages

Ghostscript rewrites every page and ignores unreadable objects. Pages with text become readable again, while a broken image may stay empty.

Frequently asked questions

How do I repair a corrupted PDF for free?
Drop it into the box above. The tool first tries to rebuild its structure, then to rewrite it page by page. You download the repaired PDF if at least one page can be recovered.
Why does my PDF say "file is damaged"?
Most often the file is incomplete (a cut-off download) or its cross-reference table is broken. In the second case repair works well; in the first, only the pages that arrived come back.
Can repair change the content?
With qpdf, no: the content stays identical. With Ghostscript the layout can shift slightly and bookmarks or forms may disappear. The tool tells you which method was used.
Can a password-protected PDF be repaired?
No. A protected PDF isn't damaged: remove the protection with the password first, then try again if the file is still unreadable.
Is my file kept?
No. It is processed in a private temporary folder and deleted as soon as the result is sent. Nothing is read or kept.

How we calculate

Share this page