Repair PDF Files That Won't Open: Rebuild a Damaged PDF Online
Repair PDF files online for free: upload a damaged or corrupted PDF and download a rebuilt copy that opens again. Ghostscript reads every page it can still find and writes them into a new, clean PDF.
// how it works
How to Repair a Damaged PDF Online in 4 Steps
- 01Pick your damaged PDF, or drag & drop it here.
- 02Add or remove files if you need to.
- 03Click 'Repair PDF' and wait while the server rebuilds each file.
- 04Download the repaired PDF and check every page.
// why pdf-file
Repair PDF features and limits
- Fast Recovery AttemptGhostscript reads every page it can still find and writes them into a new, clean PDF.
- Free, No Sign-UpRepair PDFs of up to 25 MB each for free. You don't need an account.
- Several Files at OnceAdd several damaged PDFs and repair them all in one go.
- Secure & PrivateFiles get repaired on our server and deleted automatically within two hours.
- Easy for EveryoneNo tech skills needed. The steps are short and clear.
- Works EverywhereIt runs in any browser, on desktop or mobile.
Repair PDF: What Can Be Fixed, What Can't and Our Test
You open a PDF you need and get an error message instead, which is worse when it's the only copy. Many damaged PDFs still hold all their pages, though: what broke is the index that tells a reader where to find them.
PDF-File.com's Repair PDF tool lets Ghostscript read whatever it can from the damaged file and write those pages into a new, clean PDF. If no usable PDF comes out, the tool says so and doesn't hand you another broken file.
Repair Your PDF Online for FreeHow to repair a PDF online
- Click the upload area and pick one or more damaged PDFs of up to 25 MB each, or drag them onto the page.
- Click + to add more files, or remove one you picked by mistake.
- Click Repair PDF and wait while the server rebuilds each file.
- Download the repaired PDF and check every page before you replace your copy.

Hang on to the damaged original until you've checked the repaired copy. If you repair several files at once, they download together in one ZIP file.
How does the PDF repair work?
A PDF ends with a cross-reference table and a trailer that tell a reader where each object sits in the file. When a download breaks off or a save gets interrupted, that index is often the part that goes missing, and many readers just give up.
Ghostscript can rebuild that information by scanning the file itself. Our server then writes the readable pages into a new file with Ghostscript's pdfwrite device, which tries to match the original's look while building a fresh internal structure.
Before you get a download, the server checks that the result opens as a PDF. If it doesn't, you'll see "We couldn't repair this file" where the download button would be.
What happened when we tested Repair PDF
Our test file repairable.pdf (3.0 KB) is a 5-page PDF whose cross-reference table and trailer we cut off on purpose. The tool turned it into repairable_RepairPDF.pdf, 5.6 KB and 5 pages, with no options to choose. Tested in October 2026.
All five pages came back in a file that opens normally again.

Which corrupted PDFs can be repaired, and which can't?
Often repairable
Files with a missing or broken cross-reference table, a damaged trailer or wrong byte offsets usually open again after the rebuild. Partly damaged files can come back with the pages that are still intact.
We damaged one 5-page file six ways and ran each through the tool on 22 October 2026, to see which breaks come back. The junk row comes from a rerun with a fresh 5-page file in November 2026, which added the 10% cut.
| Damage | Result |
|---|---|
| Cross-reference and trailer cut off | All 5 pages, text and links back |
| Wrong startxref offset | All 5 pages back |
| Wrong stream length | All 5 pages back |
| 4 KB overwritten with zeros mid-file | All 5 pages back |
| File cut off at 50% or 90% | Only 1 page, the rest is gone |
| File cut off at 10% | No PDF; the tool says no page could be recovered |
| Junk bytes before the %PDF header | All 5 pages back |
A broken index, a wrong offset or a zeroed block recovers in full. Bytes lost to a half-finished download can't come back, and when no page survives you get a message instead of a blank PDF. Junk a mail gateway put in front of the %PDF header gets skipped, as long as the header starts within the first 1,024 bytes.
Not repairable here
A 0-byte file or one whose data was overwritten has nothing left to read. A file with no %PDF header in its first 1,024 bytes is turned away as invalid, so a file that was never a PDF, like a Publisher .pub, has to be converted instead, as our guide to converting PUB to PDF shows. An XFA form is refused too, because its pages are built by the form itself, and a PDF that needs a password to open has to go through Unlock PDF first.
What changes in a repaired PDF
Since the file gets rewritten, any digital signature in it stops being valid. In our test the links and embedded fonts came through, but a fillable form field was lost. Check forms in the new copy, and keep the original if you need its exact structure.
What causes a PDF to become corrupted?
The usual suspects are a download that stopped early, a crash or power cut while the file was being saved, and copying to a failing USB stick or memory card. Email attachments and sync tools can cut a file short too. If Chrome left you a .crdownload file, our post on rescuing a CRDOWNLOAD file shows how much of a cut-off PDF came back in our tests.
To head it off, use Save As with a new name instead of overwriting, wait for downloads and syncs to finish, and keep a backup. If a PDF opens in one reader and not in another, it's often a damaged index, which this tool can rebuild.
What to do if the repair fails
Look for an earlier copy first: the original download link, the sender's email, a cloud version history or a backup. A fresh copy beats any repair.
If the repaired file opens but some pages are blank or wrong, save the good pages with Extract PDF Pages. Only after the words? Try PDF to Text from our PDF conversion tools on the repaired copy.
Once the file opens again, Compress PDF can shrink it, and PDF to PDF/A turns it into the archiving format if you want to keep it for the long term.
Fix Your Corrupted PDF NowFrequently Asked Questions about Repairing PDFs
Is PDF repair always possible?
No. It works when the pages are still in the file and only the structure around them is broken. Empty, overwritten or password-locked files can't be repaired here.
Will repairing my PDF affect its quality?
The new file gets written with Ghostscript's prepress settings, which aim for the same look as the original. Compare the pages with what you expect, images especially.
Can I repair several PDFs at once?
Yes. Add several files of up to 25 MB each, and the repaired copies download together in a ZIP file.
Does the tool use OCR?
No. It rebuilds the PDF structure and doesn't recognize text in scanned pages.
Are sensitive documents safe to repair online?
Files go up over HTTPS and get deleted from our server automatically within two hours. Only upload files you're allowed to process.
Can the tool repair PDFs with digital signatures?
It can often rebuild the pages, but the rewritten file won't carry a valid signature anymore. If the signature matters, ask the sender for a fresh signed copy.
Loved PDF-File.com? Spread the word!
Help us keep these tools free: Share with your friends!