About Repair PDF
You use Repair PDF when a file will not open, shows junk after the end, or reports a broken trailer. The tool runs entirely in your browser, so nothing is uploaded and nothing installs. First it tries to read the file with pdf-lib and writes a clean copy with a new cross-reference table. Pages that cannot be copied are reported. If that fails, it reads each page with pdf.js and saves a visual version as images. It cannot restore data that is missing from a cut-off file. The interface is simple and fast on desktop and modern phones. You keep the repaired file locally when the tool finishes.
How to use it
- 1Select or drop the damaged PDF file from your device
- 2Start repair and wait while the tool scans and rebuilds the file
- 3Review the per-page report if any pages cannot be copied
- 4Download the repaired PDF or the image-based fallback file
Worked example
Input file: invoice.pdf (12.3 MB) with a broken trailer. Result: tool rebuilt the cross-reference table and saved invoice_repaired.pdf (12.3 MB). Any pages that could not be copied were listed in the report.
How it works
Repairs a damaged PDF by reading it with pdf-lib and saving a clean copy with a new cross-reference table, which fixes many files that will not open, have a broken trailer or have junk after the endPages that cannot be copied are reportedIf that fails, a deeper recovery reads each page with pdf.js and saves it as an imageIt cannot restore data that is missing from a cut-off fileWorks in the browser with nothing to installSource: PDF 1.7 / ISO 32000-1 (PDF specification)Mozilla pdf.js project. Last checked 13 November 2026.
What it is good for
- Runs fully in your browser so files do not leave your device
- Fixes broken cross-reference tables and many truncated-file issues
- Provides an image fallback when structure cannot be rebuilt
- Cannot recreate bytes that are missing from a truncated file
- Very large files may hit browser memory limits and fail
Questions people ask
Can Repair PDF fix any corrupted file?
No. The tool can rebuild structure and recover pages present in the file. It cannot recreate data that was never saved or that was cut off from the file.
Will repaired PDFs keep selectable text and links?
If the tool rebuilds the file structure, selectable text, links and form fields usually remain. If it falls back to images, text becomes unselectable because pages are saved as pictures.
Is my document uploaded to a server?
No. Repair PDF runs in your browser. The file remains on your device and is not sent to our servers during repair.
Can I repair a password protected PDF?
You must remove the password or open the file with the password before repair. Encrypted files cannot be repaired without the correct password.
What if repair fails?
Try getting a fresh copy from the sender. You can also try other repair engines like qpdf or Ghostscript, or reconstruct the document from the original sources.
Will digital signatures survive repair?
Most repairs rewrite file structure and will invalidate existing digital signatures. Signatures cannot be preserved unless the repair keeps the exact signed byte ranges.
Help keep every tool free
FreeToolr stays free because people help it grow. Share a tool you like, tell us what to build next, or support us on Ko-fi.