Files tool

Repair a Damaged PDF File

Choose a PDF that will not open to try making a rebuilt copy on your device.

Runs in your browser. No upload.

This makes a best-effort rebuilt copy and checks that a PDF reader can parse it. It cannot restore missing or destroyed page data, and some files cannot be repaired.

The repair runs on this device. Nothing is uploaded. The local engine is downloaded only when you start. For large files, use a computer. The maximum input is 200 MB to help protect browser memory. Keep your original.

Choose a PDF to start.

About this tool

Repair a Damaged PDF File made simple.

The local QPDF engine rewrites the PDF structure and runs a basic check on the new copy. It may help when cross-reference data is damaged, but it cannot restore missing or destroyed page content, and some files cannot be repaired. The input limit is 200 MB to help protect browser memory. Your original is not changed or uploaded. Open and inspect the repaired file before relying on it; a basic structure check is not a guarantee that every page is correct.

Guide

Using Repair a Damaged PDF File

This page takes a PDF that your viewer refuses to open and tries to write a fresh copy of it. It uses qpdf, a free program that rewrites the internal structure of a PDF file, and it runs inside your browser after a one-time download of the engine. Your original is left alone and nothing is uploaded. Many damaged files stay damaged, so treat the result as an attempt that may or may not work. It cannot bring back pages or data that are already gone.

How to use it

  1. Press the file picker and choose the PDF that will not open. Keep a copy of the original somewhere safe first.
  2. Press Try to repair PDF. The first run downloads the local qpdf engine, so you need an internet connection at that moment.
  3. Wait while the page says it is rebuilding the file. You can press Cancel to stop, and then no new file is saved.
  4. If a rebuilt copy appears, press Download PDF. It is saved with the ending -repaired.pdf added to the old name.
  5. Open the new file and read through it page by page. If it fails, press Clear and try a different copy of the file, if you have one.

Worked examples

A PDF whose page index is broken

You enter
File
report.pdf (viewer says the file is corrupt)
You get
Possible result
report-repaired.pdf
Note
only if the rebuild works and the check passes

The tool asks qpdf to read the file and write a new one. qpdf has a recovery step that tries to rebuild the cross-reference table, the part of a PDF that says where each object sits. This helps only with some kinds of damage.

Not run through the tool. Treat it as an illustration.

A file cut off during download

You enter
File
invoice.pdf (half the expected size)
You get
Possible result
A repaired copy that may be missing the lost pages, or an error message

If the end of a file never arrived, the missing content cannot be rebuilt by any tool. A copy may still open with fewer pages, or the tool may report that it could not rebuild the file.

Not run through the tool. Treat it as an illustration.

A file that is not really a PDF

You enter
File
notes.pdf (actually a renamed text file)
You get
Message
The selected file does not look like a PDF.

The code looks for the text %PDF- near the start of the file. If it is not found, the file is refused before any repair is tried.

Not run through the tool. Treat it as an illustration.

A file larger than the limit

You enter
File
scan.pdf, 250 MB
You get
Message
Choose a PDF of 200 MB or less to help protect browser memory.

Files over 200 MB are stopped at the door. Try a smaller copy, or use a desktop tool on a computer with more memory.

Not run through the tool. Treat it as an illustration.

When it helps

  • Try to open a PDF that a download or email program damaged on the way, before asking the sender for a new copy.
  • Check whether a file that one viewer rejects can be rewritten into a form another viewer reads.
  • Rewrite an old PDF whose index table is broken so that it loads in a modern reader.
  • Make a cleaned copy to keep next to the original while you look for a backup.
  • Try a quick local fix when you cannot send a private document to an online service.

Limits to keep in mind

  • It cannot restore missing or destroyed page content, and some files cannot be repaired at all. No result is promised.
  • Input is limited to 200 MB, and the file must start with a valid PDF header.
  • It has no password box, so a PDF that needs a password to open is not something this tool can handle.
  • A passed structure check is basic. It does not prove that every page, picture or font looks right, so open the repaired file and read it.
  • The first run downloads the qpdf engine, so it needs a connection once. Large files work best on a computer.

Tips

  • Never overwrite the only copy you have. Work on a duplicate and keep the original untouched.
  • If you can, get a fresh copy from the sender or the source. That often works better than any repair.
  • After a repair, scroll through every page, and check pictures, form fields and links.
  • If the tool fails, try again with another copy of the file. A damaged copy and a clean copy can behave very differently.

Sources

Common questions

About Repair a Damaged PDF File.

Will this tool fix my corrupted PDF?

It might, but nobody can promise it. It rewrites the structure of the file with qpdf and then checks that the new copy can be read. If the page data itself is damaged or missing, the result may be incomplete or the tool may fail.

Is my PDF uploaded anywhere?

No. The repair runs in your browser with a local engine, and your file stays on your device. The engine itself is downloaded when you start, so the page needs a connection then, but your document is not sent out.

What kind of damage can it help with?

qpdf can try to rebuild a broken cross-reference table, which is the index that tells a viewer where each part of the file sits. That is a common kind of damage after a bad download or save. Other kinds of damage may not be fixable.

Why did I get an error message?

The error means the file could not be rebuilt, or the rebuilt copy did not pass a basic check. The file may be too badly damaged, may not be a PDF, or may be over 200 MB. Try another copy if you have one.

Does it change my original file?

No. It reads your file and builds a separate new one, saved with -repaired.pdf at the end of the name. Your original stays exactly as it was, but you should still keep your own backup.

Can it open a password-protected PDF?

No. This tool has no field for a password and is not meant to get around one. If your file needs a password, use a tool made for unlocking with a password you already know.

What does the basic structure check mean?

After rebuilding, the tool asks qpdf to check the new file. Passing means the structure could be read. It does not mean each page shows the right words and pictures, so always open the file and look.

How big a file can I repair?

Up to 200 MB. The limit protects your browser's memory. Large files also take longer and may fail on phones, so a computer is the better choice for big PDFs.

Why is the repaired file a different size?

qpdf writes the whole file again, and it may arrange the data differently. The new file can be a little smaller or larger. A different size alone does not say whether the repair worked.

Can this tool repair every corrupted PDF?

No. It can rewrite some damaged PDF structures, but cannot restore missing page content or guarantee that every page is correct. Always review the repaired copy.

Is my PDF uploaded for repair?

No. The local QPDF engine processes the file in your browser. The current input limit is 200 MB, and practical limits depend on device memory.