Repair a Damaged PDF
Recover a damaged PDF
To repair a PDF, drop in the damaged file and click Repair PDF. The tool rebuilds its internal index and writes out a clean structure, and you download the fixed copy. It handles common structural corruption, but it can't recreate data that's missing or badly damaged. Everything happens in your browser.
- Files processed on your device
- No server-imposed size limit
- 100% free
How to repair a damaged PDF
- 1Drop in the PDF that won't open or displays wrong. It's read inside your browser, with no upload.
- 2Click “Repair PDF”: the file's structure is analyzed, rebuilt and written out again.
- 3Download the repaired copy (sizes before and after are shown) and open it in your usual reader.
How repair works
A PDF contains an index, the cross-reference table, that records where every object in the file lives: pages, fonts, images. When that table is missing, wrong or out of step with the file, readers give up, even though the content itself may be perfectly fine.
The tool first runs PdfCraft, an engine written in Rust and compiled to WebAssembly. It scans the file to find each object by its header, rebuilds the index, then writes a clean file without the unused leftovers. If PdfCraft rejects the file, a second attempt is made with pdf-lib in its most forgiving mode.
Problems it can fix
Repair targets structural corruption, by far the most common kind:
- an interrupted download that left a truncated file;
- a cross-reference table that's missing, destroyed or pointing at the wrong offsets;
- a missing trailer at the end of the file;
- line endings mangled by an FTP transfer in text mode;
- a file whose history of incremental saves was written badly.
What it can't do
No tool can bring back data that isn't there anymore. If a download stopped halfway, the pages in the missing part are gone; the tool recovers whatever is still present. A file that's badly damaged, overwritten or encrypted by ransomware can't be saved, and you'll get a clear message saying so.
Repair doesn't remove passwords either; for that, use Unlock PDF with the document's password. When repair fails, your best bet is a fresh copy from the source: download the file again, or ask the sender to resend it.
After the repair
Open the repaired file and page through all of it to check nothing is missing. Keep the damaged original until you're sure. Once the document is healthy you can compress it, extract the pages you need or merge it with other files. Most tools reject a PDF with a broken structure, which is why repairing comes first. If some pages are still missing, check whether an older copy of the file exists in your email, cloud storage or backups.
Signs a PDF is damaged
The usual symptoms: a reader saying “There was an error opening this document” or that the file is damaged, a PDF that opens in your browser but not in Acrobat, blank or missing pages, or a file much smaller than expected after a download.
A 0-byte file contains nothing at all, so no repair is possible and only a fresh copy will help. Before repairing, also try opening the file in a different reader: if only one program fails, the file may be fine and the reader is the problem. Updating that reader, or simply opening the file in your browser, is sometimes all it takes.
Repair without uploading
A document that won't open is usually one that matters: an invoice, a contract, a statement. Here it's never uploaded. PdfCraft and pdf-lib both run inside your browser, and nothing is stored or logged on a server. The compact repair engine is fetched from this site the first time you use the tool, so even that step never involves anyone else's server.
Technical specifications
- Processing
- 100% local, in your browser
- Technology
- PdfCraft (WebAssembly) · pdf-lib
- File size
- No server-imposed size limit: your device's memory is the only limit
- Privacy
- File never uploaded or stored: suited to GDPR and professional secrecy
- Price
- Free, no sign-up, no watermark
Frequently asked questions
Can every corrupted PDF be repaired?
No. The tool fixes common structural problems (a broken index, a missing trailer, a truncated download) but can't recreate missing or badly damaged data. You'll see a clear message if it fails.
Is my file uploaded?
No. Repair happens in your browser; the file is never uploaded, stored or logged on a server.
My PDF only half downloaded. Can I get it back?
Partly: the tool recovers the pages still in the file, but anything in the missing part is lost. Download the file again if you can.
Does repair remove the password?
No. To remove protection, use the Unlock tool with the document's password.
Is the repaired file different from the original?
The recovered content is the same, but the structure is rewritten cleanly, which often changes the file size. Sizes before and after are shown.
What if repair fails?
Get a fresh copy from the source: download it again, look for it in your email or backups, or ask the sender to resend it.

