Repair PDF
Recover content from damaged or corrupted PDFs. The tool parses your file with relaxed mode, rebuilds missing structure, and writes a clean output you can share. Runs entirely in your browser.
Drop a damaged PDF or click to browse
your file never leaves your browser
How it works
Two recovery passes run inside your browser. First, pdf.js parses with lenient mode and rebuilds missing xref tables from object scans. Second, pdf-lib copies all valid pages into a fresh document and re-serializes it cleanly, dropping malformed objects along the way.
Common cases this handles
- Truncated trailer or missing xref table
- Stale stream lengths after a botched merge
- Encoding mismatches that block other readers
- Damaged metadata or structural objects
- PDFs from old printers or scanners that wrote non-spec output