Repair a corrupted PDF that will not open
Diagnose what is actually broken — a damaged cross-reference table, a truncated file, a junk header — rebuild the document, and see how many pages were recovered.
Sign In Required
Create a free account or sign in to use Repair PDF and access more features.
No credit card required for free tier
What is Repair PDF?
Recover PDFs that will not open. "This file is damaged and could not be repaired" is one message covering a dozen unrelated faults, and most repair tools respond to all of them the same way. OpusPDF diagnoses first: it looks for the %PDF header and reports if junk precedes it, checks whether the cross-reference table is intact or points past the end of the file, looks for the end-of-file marker, probes for encryption at the byte level (which works even when the file structure is unreadable), and counts how many pages can actually be opened. Only then does it rebuild, running progressively stronger recovery engines until one produces a readable document — and it tells you which one worked and how many pages came back, so you can check nothing is missing rather than take a green tick on trust.
How to repair pdf
Upload the damaged PDF
Drop in the file your reader refuses to open. This tool deliberately accepts files that the rest of OpusPDF would reject — a broken header is exactly the symptom it exists to handle. Your original is never modified.
Read the diagnosis
You get a verdict before any work happens: not a PDF, encrypted, healthy, or damaged — plus the specific findings, such as a garbage prefix before the header, a truncated cross-reference table, a missing end-of-file marker, or zero readable pages.
Repair and download
If the file is repairable, the recovery ladder rebuilds it and reports which method succeeded and the recovered page count. If it is not, you are told that plainly instead of being handed a broken output.
When to use Repair PDF
- A download or file transfer was interrupted and the PDF now shows "file is damaged"
- A PDF from an old scanner, fax gateway, or legacy system will not open in any reader
- A file recovered from a failing drive or a corrupted backup
- A PDF that arrived with HTML or mail-server junk prepended to it
- A file that opens in one reader but not another, suggesting a structural rather than content fault
- An attachment that was mangled by an email gateway that rewrote it as text
- A document that opens but shows the wrong page count or refuses to print
Why OpusPDF
Honest diagnosis before any repair
A password-protected file is identified as encrypted and you are pointed at Unlock PDF, rather than being told "repair failed". A file that is not a PDF at all is named as such. Knowing which problem you have is most of solving it.
Three recovery engines, escalating
A lenient parser rebuild first — fastest and most faithful, since it keeps the original objects. Then an object-graph reconstruction that recovers files whose cross-reference table is unusable. Last, a full page-by-page re-render, which is the most destructive and therefore the last resort.
Results you can verify
The output names the method that worked and the number of pages recovered. A truncated file that comes back with 8 of 40 pages is reported as 8 pages, not as a success — so you find out now rather than when someone else opens it.
Frequently asked questions
- Can every damaged PDF be repaired?
- No. If the underlying page data is genuinely gone — a file truncated to a fraction of its original size, for instance — there is nothing left to rebuild. OpusPDF says so instead of returning a broken result, which is more useful than a file that opens to blank pages.
- Will repair recover all of my pages?
- It recovers every page whose data survives in the file. An interrupted download typically keeps its leading pages and loses the trailing ones. The result panel reports the exact recovered page count so you can compare it against what you expected.
- My PDF asks for a password. Is that damage?
- No — that is encryption working as intended, not corruption. Repair detects it at the byte level and says so rather than failing obscurely. Use Unlock PDF with the correct password.
- Does repairing change my document?
- The repaired file is a rebuild of the recoverable content. The two lighter methods preserve the original objects, so text, fonts and structure survive. The heaviest method re-renders pages, which can drop structural extras such as form fields, tagging or the text layer, though the visible content is preserved. The reported method tells you which you got.
- What does "garbage prefix" mean in the diagnosis?
- The %PDF header was found, but not at the start of the file — something was prepended, usually an HTTP error page, an email header block, or a shell prompt captured by a broken download script. This is one of the most recoverable faults: the PDF underneath is often entirely intact.
- Should I repair a file before converting or compressing it?
- Yes. Conversion, OCR and compression all need to parse the document, so they will fail on a file with a broken cross-reference table. Repair first, confirm the page count, then run the tool you actually wanted.
Related tools and resources
Related reading
How to Split a PDF Into Multiple Files
Three reliable ways to split a PDF: by page range, by fixed page count, or by detected bookmarks. Includes a guide to picking the right one for the job.
7 min readHow to Remove a Password From a PDF You Own
How to remove the open password from a PDF you have the right to access, and why a user password and an owner password are not the same problem at all.
8 min readHow to OCR a Scanned PDF (Make It Searchable)
Make a scanned PDF searchable. Keep the page image and add a text layer you can select and copy, or export the words as text or Word.
9 min read