Back to Blog

How to Fix a Corrupted PDF File That Won't Open

Why PDFs become unreadable, what a repair tool actually does to recover them, and when a file is beyond saving.

July 31, 2026
Reading time: ~4 min

A PDF that suddenly won't open, showing a blank page or a "file is damaged" error, or crashing your viewer, usually isn't gone for good. Most PDFs are corrupted in a fixable way: the content is still in the file, but the internal index that tells a viewer where each page lives is broken. This guide explains what goes wrong, how to diagnose the damage in a minute, how to repair it, and when a file really is beyond saving.

How a PDF is put together

Knowing the basic structure makes the repair process make sense. A PDF file has four parts:

  1. A header, the first bytes of the file, which always begin with %PDF- and a version number.
  2. A body of numbered objects: pages, fonts, images and text streams.
  3. A cross-reference table, which lists the exact byte position of every object.
  4. A trailer at the very end, which points to the cross-reference table and ends with %%EOF.

A viewer reads a PDF from the end. It finds the trailer, jumps to the cross-reference table, and uses it to fetch the pages. If the end of the file is cut off or the table points to the wrong places, the viewer gives up, even though every page may still be sitting intact in the body.

Why PDFs get corrupted

  • An interrupted download, often on mobile data or flaky Wi-Fi, which cuts off the end of the file, exactly where the index lives.
  • A USB drive or memory card removed before a copy finished writing.
  • A cloud sync interrupted or conflicting between two devices.
  • Email systems or attachment scanners that mangle a file in transit.
  • Software that crashed while saving, or a file edited by a tool that wrote an invalid structure.
  • Opening a file that was renamed to .pdf but is actually something else, such as an HTML error page saved by a broken download link.

A one-minute diagnosis

  1. Check the file size. A file of 0 KB or a few KB that should be several MB has no data to recover. Get a new copy.
  2. Try a different viewer. Browsers' built-in PDF viewers are tolerant and will often open a file that a desktop reader rejects. If it opens there, you can print it to a new PDF and you are done.
  3. Look at the first line. Open the file in a plain text editor such as Notepad or TextEdit. It should start with %PDF-. If you see <!DOCTYPE html> or <html> instead, it is a saved web page (usually an expired download link), not a PDF, and no repair tool can help.
  4. Look at the end. Scroll to the bottom. A complete PDF ends with %%EOF. If it ends abruptly in the middle of data, the file was truncated, which is the classic interrupted download.

How to repair a PDF

  1. Open the Repair PDF tool and load the damaged file.
  2. The tool scans the file for page objects, rebuilds the cross-reference table and restores a valid header and trailer.
  3. Download the repaired file and open it. If the page data survived, it is readable again.

The repair runs in your browser, so the damaged file isn't uploaded. Run it on a copy and keep the original as it is, in case you want to try another approach later.

What the results mean

  • Everything opens: the damage was structural only. Check every page anyway, then replace the damaged copy.
  • Most pages open but some are blank: the structure was rebuilt, but those pages' content was inside the damaged region. Save the surviving pages with the Split PDF tool and get the missing ones from another source.
  • Nothing opens: the content itself is missing or overwritten. No repair tool can reconstruct data that isn't in the file.

When a PDF can't be recovered

If a file was truncated halfway through a download, the pages after the cut were never saved. If a storage device failed, the data may be physically gone. In those cases the fix isn't repair but a fresh copy:

  • Download the file again, ideally on a stable connection.
  • Ask the sender to resend it, or to share a link instead of an attachment.
  • Check your email's sent folder, cloud storage version history (Google Drive, OneDrive and Dropbox all keep previous versions), or your computer's backup.

Re-downloading fixes more "corrupted PDF" problems than any repair tool, so always try it first when the source still exists.

How to avoid corrupted PDFs

  • Open important files right after downloading or copying them, while the source is still available.
  • Always eject USB drives and memory cards before unplugging them.
  • Keep important documents in cloud storage with version history, not only on one device.
  • For large files, send a link rather than an email attachment. Attachments are more likely to be truncated or blocked.
  • Don't edit the only copy of an important PDF. Edit a duplicate.

Frequently asked questions

Why does the PDF open on my phone but not on my computer?

Different viewers tolerate different errors. When one viewer opens it, use that viewer's Print → Save as PDF to create a clean new copy that opens everywhere.

Can a password-protected PDF be repaired?

Encrypted content can only be read with the password. If the file opens with its password, use the Unlock PDF tool to save an unencrypted copy, and work from that.

The repaired file opens, but the text looks wrong. Why?

If the fonts embedded in the file were damaged, the viewer substitutes others. The content is there; the appearance is off. Exporting the text with PDF to Word can rescue the words.

Is it safe to use a repair tool on a confidential file?

With this tool, the file stays on your device. With any tool that uploads, check what happens to the file before using it on sensitive documents.

0 comments

    Last updated

    October 12, 2026

    Back to Blog