How to Repair a Corrupted PDF That Won't Open

PHBy the PDF Hub TeamUpdated

"Failed to load PDF document", "the file is damaged and could not be repaired", blank pages, or a viewer that just spins — a corrupted PDF is frustrating, especially when it is the only copy. Many damaged PDFs can be fixed because the page content is still there; only the file's internal index is broken. Here is what causes it, how to try a repair, and when it is not possible.

Why PDFs get corrupted

Incomplete downloads or uploads — the connection dropped and the end of the file is missing. Email or messaging apps that altered the attachment. Saving interrupted by a crash, a full disk or removing a USB drive too early. Buggy software that wrote an invalid internal structure (cross-reference table). The first fix to try is always the simplest: download or request the file again. If that is not possible, repair it.

Repair it online

1. Open Repair PDF. 2. Upload the damaged file. 3. Press Repair and download repaired.pdf. The tool reads the file with Ghostscript and writes a completely new PDF from the content it can interpret. This rebuilds the internal structure that viewers rely on, which fixes many "won't open" errors. The original file is not modified.

What can and cannot be recovered

Usually recoverable: files with a broken cross-reference table, wrong object offsets, or minor syntax errors — the most common reasons a viewer refuses to open a PDF. Partly recoverable: truncated files, where the pages before the cut-off may come back but later pages are lost. Not recoverable: files that are empty (0 KB), overwritten, encrypted with an unknown password, or not PDFs at all (for example an HTML error page saved with a .pdf name). Open such a file in a text editor: a real PDF starts with %PDF-.

Check the repaired file

Open the result and go through every page: count them, check images and the last pages in particular. Interactive elements such as form fields or bookmarks may not survive a rebuild, so if you need them, ask for an undamaged original. Save the repaired file under a new name.

Other things to try

Open it in a different viewer — browsers, Adobe Reader and phone viewers tolerate different errors. Print to PDF from a viewer that does open it; this creates a fresh file. Restore a previous version from Google Drive, OneDrive, Dropbox or Windows File History. If the repaired file opens but is huge, run it through Compress PDF; if the text is not selectable, OCR PDF can add a text layer.

Preventing corruption

Wait for downloads to finish before opening, eject USB drives safely, keep at least one backup of important documents, and prefer cloud links over attachments for large files. For documents you must keep for years, convert a copy to PDF/A, the archival format designed for long-term readability.

Privacy

Uploaded files are processed in a temporary folder and deleted after the request completes. Do not upload documents you are not authorised to share; for those, ask the sender for a new copy.

A quick diagnosis checklist

1. Check the size. 0 KB or a few bytes means the file is empty — no tool can repair it. 2. Check the first bytes. Open the file in a text editor; a PDF starts with %PDF-. If you see HTML or an error message, the download saved the wrong content. 3. Try two viewers. If one opens it, print it to a new PDF from there. 4. Run Repair PDF and check every page of the result. 5. Ask for a new copy if pages are missing — a truncated file has lost the missing part for good. Following these steps in order usually tells you within a few minutes whether the file can be saved.

Try downloading the file again first. If that is impossible, run it through Repair PDF, check every page of the result, and keep the repaired copy under a new name. Empty, overwritten or non-PDF files cannot be repaired by any tool.

Frequently asked questions

Why does my PDF say "failed to load"?

Most often the file is incomplete (interrupted download) or its internal index is damaged. Downloading it again or running Repair PDF fixes many of these cases.

Does Repair PDF change my original file?

No. It creates a new file called repaired.pdf; the original is untouched.

Can a 0 KB PDF be repaired?

No. A 0 KB file contains no data, so there is nothing to recover. Ask for the file again or restore it from a backup.

Will form fields and bookmarks survive the repair?

Not always. The repair rebuilds the file from the content it can read, so interactive elements may be lost. Check the result carefully.

Can it remove a password?

No. Repair does not bypass encryption. Use Unlock PDF only for files you are authorised to open.

Try the tool

Repair PDF

Open tool

Related guides