PDF Repair
Recover damaged PDFs with broken cross-reference tables or truncated streams locally in your browser.
Settings
Auto, keep metadata
How to Use PDF Repair in 3 Steps
Drop the Damaged PDF
Load the unreadable PDF into the source pane. The tool accepts broken headers and damaged xref tables even when viewers fail.
Select Repair Method
Keep Auto to rebuild vector object streams first and fall back to page rasterization only when streams fail.
Repair and Verify
Click Repair to inspect recovered page counts in the badge, preview page 1, and download the clean PDF.
PDF Repair: Frequently Asked Questions
Is my PDF uploaded anywhere?
No. PDF.js and pdf-lib read and rewrite your document inside your browser tab. Confidential files never leave your device.
What types of PDF corruption can this fix?
It fixes broken or missing xref tables, wrong byte offsets, truncated downloads, stray header or trailer bytes, and malformed annotations.
What damage cannot be recovered?
Encrypted files without passwords and completely zeroed page streams cannot rebuild as vectors. Rasterize mode salvages whatever pages still render.
Does Rebuild structure keep text selectable?
Yes. Structure rebuild copies surviving vector streams directly, and the status badge alerts you if raster fallback was needed.
Why did the repaired PDF file size change?
Rewriting the object index drops orphaned revision data and compresses fresh object streams, often making the repaired file smaller.
Why does the tool say my PDF is encrypted?
Locked PDFs require their open password before editing. Decrypt your file with Unlock PDF first, then load the unlocked copy here.
Explore All Docs Tools
Compress, merge, convert, and manage PDF and text documents locally.