How to Fix a Corrupted PDF File (What Actually Works)
Last updated
Almost every PDF that gets called 'corrupted' is something less dramatic: a download that didn't finish, a viewer that refuses to read a slightly off file, or a write that was interrupted before the file was sealed. Real corruption — where the bytes inside the file are truly damaged — is rarer than people think, and when it happens, recovery is partial at best.
The reason this matters is that the fixes for those four causes are completely different. Re-downloading takes seconds; viewer-swapping takes seconds; a re-export round-trip takes a minute; actual byte-level recovery is hours of work and often impossible. Knowing which category your file falls in saves real time.
This guide walks the diagnoses in cheapest-first order, then explains what to do when it's not recoverable. Most files come back to life by step three.
Step by step
- 1
Re-download or re-receive the file
A truncated download looks identical to corruption from the viewer's perspective. Fetch the file again. If the second copy opens, the first was incomplete. Check the byte size against the source if it's listed.
- 2
Try at least two other viewers
Browsers, Preview, mobile readers and desktop apps all handle PDF differently. A file Acrobat refuses sometimes opens fine in Chrome. If even one viewer reads it, the file isn't really broken.
- 3
Open the file in any viewer that works and re-export
Print-to-PDF (macOS, Windows, Linux) or 'Save as PDF' from the working viewer rebuilds the file structure. The new copy often opens in viewers that rejected the original.
- 4
Strip pages individually with PDF to Images
If no viewer renders the whole file but some shows partial content, export each page as PNG via PDF to Images. You can then reassemble a fresh PDF from those PNGs with Image to PDF — losing search and editability but rescuing the content.
- 5
Check the file header in a plain editor
Open the file in TextEdit, Notepad or VS Code. A real PDF starts with %PDF- followed by a version number. If the first bytes are anything else, the file isn't a PDF — it was renamed, mislabeled or replaced.
- 6
Ask the source for a fresh copy
If nothing recovers the file, the source still has the original. Re-export from Word, Google Docs or whatever produced it. This is the only path that returns full quality.
Tips
- Don't keep editing or merging a file that's behaving strangely. You'll embed the breakage into the new file.
- Keep the broken original safe before any repair attempt. Repair tools sometimes overwrite, and the broken file may contain partial content you'd lose.
- Files that fail right after a write interruption (power loss, force-quit during save) are often unsalvageable — the structural index at the end of the file never got written.
- Avoid 'PDF repair' websites that promise miracles. They mostly do the print-to-PDF re-export you can do yourself, and they upload your file.
- Recovered-via-image PDFs lose all real text and searchability. Use that path only for files where the content matters more than the file fidelity.