MakePDFFree
Guides7 min read

PDF Won't Open? How to Repair a Damaged or Corrupted PDF

By · Updated , first published

“There was an error opening this document. The file is damaged and could not be repaired.” That message usually appears with the one document you need right now. Many “damaged” PDFs are only slightly broken: a strict viewer is refusing a file that still contains everything you need. Work through the quick checks first, then repair, then the fallbacks.

Why won't my PDF open?

Most often the file is incomplete or its internal index is wrong, so the viewer cannot find the pages. Less often it is not a PDF at all, it is password-protected, or the viewer itself is the problem.

A PDF is a set of numbered objects followed by a cross-reference table that records the byte position of every object, and a trailer that ends with the marker %%EOF. Viewers read the end of the file first. If the end is missing or the positions are off by even a few bytes, a strict viewer gives up although the pages are intact.

  • Incomplete downloads: a dropped connection leaves the file cut short, missing its ending.
  • Email and messaging apps: some systems mangle attachments, especially when forwarded repeatedly or sent through old mail gateways.
  • Faulty generators: cheap scanners, web apps and export scripts sometimes write PDFs that break the specification.
  • Sync conflicts: cloud storage uploading a file while it is still being saved.
  • Storage faults: failing USB sticks and SD cards, or a stick pulled out before writing finished.

Quick checks first

These take a minute and settle many cases without any repair.

  • Check the file size. A 0 KB file never downloaded. A 300 KB file that should be a 40-page scan has been cut short. Download it again or ask for it to be resent.
  • Try another viewer. Chrome, Edge, Firefox, Preview and Acrobat use different PDF engines, and browsers are often more forgiving.
  • Check that it is really a PDF. Open it in a text editor: a real PDF starts with %PDF- and a version number such as 1.7. If you see <html or PK instead, it is a web page or a Word or ZIP file with the wrong extension.
  • If the PDF asks for a password, it is encrypted, not damaged. Enter the password. Unlock PDF can remove it afterwards, but only when you know it.
  • Copy the file to the device first. Opening directly from a network drive, a USB stick or an email preview adds its own failures.

Windows

Right-click the file, choose Open with and pick Microsoft Edge or Chrome. If Acrobat Reader is the app that fails, update it through Help > Check for updates; outdated readers reject newer PDF features.

Mac

Preview is strict about structure. Drag the file onto a Safari, Chrome or Firefox window instead. Press Space in Finder for Quick Look; if Quick Look shows the pages, the content is fine.

iPhone and Android

Save the attachment to Files or Downloads before opening it, and do not rely on the mail app's preview. On iPhone, open it from the Files app. On Android, try the Google Drive viewer or Chrome. Large files that fail on mobile data often download correctly on Wi-Fi.

How do you repair a corrupted PDF for free?

Open Repair PDF, choose the damaged file and press Repair PDF. The tool rebuilds the file's structure in your browser and gives you a new copy, so a damaged contract or bank statement is not uploaded anywhere.

The first pass uses qpdf, an open-source PDF library compiled to WebAssembly. It scans the file for every object it can find, reconstructs the cross-reference table and writes a clean PDF. The result is then opened with pdf.js, the engine behind the Firefox viewer, to confirm that pages really load. If qpdf cannot read the file, a more tolerant parser tries next, and as a last step pages are copied one by one into a new document. Pages that cannot be read are left out and counted.

  • Choose the file. Up to 200 MB is accepted, and it does not matter if no preview appears.
  • Enter the password if the file is encrypted. It is used only inside the tab.
  • Read the summary: it states how many pages were recovered and how many were left out.
  • Open the repaired copy in the viewer that failed before. The original is never overwritten.

What can PDF repair not fix?

Repair cannot invent data that is not in the file. If a download stopped at 60%, the remaining 40% is absent, and the best outcome is the pages that arrived.

Repair works well for broken cross-reference tables, wrong offsets, missing end markers and minor structural errors, which covers a large share of “damaged file” messages. It does not work on files overwritten with zeros, files encrypted by ransomware, or files whose compressed page data is scrambled. A corrupt image or font inside an otherwise readable page is dropped, so that page may show a gap or a substitute font.

A lightly damaged protected file keeps its password. When the deeper page-by-page rebuild is needed, the repaired copy is saved without the password, and the summary says so. Add it back with Protect PDF.

How to tell whether a file was cut short

Compare the size with what the sender sees. A difference of even a few kilobytes means the transfer failed. As a rough guide, a text PDF runs to 50–150 KB per page and a scanned page to 100 KB–1 MB, so a 30-page scan of 200 KB is incomplete.

For a closer look, open the file in a plain text editor and scroll to the very end. A complete PDF finishes with a line reading startxref, a number, and then %%EOF. If the file stops in the middle of unreadable binary data, the end never arrived. Repair can still scan what is there, and pages stored near the start of the file often survive, but pages whose data was in the missing part are gone.

Paid desktop recovery programs work from the same bytes. They can be more persistent with scrambled streams, but none of them can restore data that was never written, so check the size before paying for anything.

What common error messages usually mean

PDF error messages, likely causes and the first thing to try
MessageWhereLikely causeTry first
The file is damaged and could not be repairedAdobe AcrobatBroken cross-reference table or truncated fileRepair PDF
Failed to load PDF documentChrome, EdgeIncomplete download, or not really a PDFDownload again; check the first bytes
File may be damaged or use a format Preview doesn't recognisePreview on MacStructure errors, wrong extensionOpen in a browser, then repair
Not a supported file type or the file has been damagedAdobe AcrobatAttachment was altered in transit or wrongly decodedAsk for a download link
Blank or grey pageAny viewerA font or image on that page failed to decodeAnother viewer, then repair
Enter passwordAny viewerThe file is encrypted, not damagedGet the password from the sender

When repair is not enough

  • Ask for the file again, ideally as a download link and not as an attachment. Gmail, for example, caps attachments at 25 MB, and large files sent through mail gateways are the ones most often damaged.
  • Check cloud version history. Dropbox, Google Drive, OneDrive and iCloud Drive keep or can restore earlier versions of files for a limited time.
  • If one viewer opens it, print the pages to a new PDF from that viewer as a last resort. You may lose links and form fields, but you keep the content.
  • If only some pages render, extract them with Split PDF and request the rest.
  • If the pages open but the text is garbled when copied, the fonts are damaged or non-standard. For an English document, OCR PDF can add a fresh text layer based on how the page looks.

Prevent it next time

Wait for downloads and cloud syncs to finish before opening or moving files. Eject USB sticks before removing them. Send large documents as links. For important archives, keep two copies on different storage and open them once a year.

If a particular scanner or app keeps producing files that some readers reject, running its output through Repair PDF once normalises the files for everyone who receives them. When the result says no damage was found, the file was already valid, and the viewer or its cache is the more likely culprit.

FAQ

Questions people also ask

Why does my PDF say the file is damaged and could not be repaired?

Acrobat shows this when it cannot find or trust the file's cross-reference table, usually after an interrupted download or a mangled email attachment. Download the file again first. If the size looks right, rebuild the structure with a repair tool.

Can a 0 KB PDF be recovered?

No. A 0 KB file contains no data, so there is nothing to repair. The download or copy failed before any content was written. Get the file again from the sender, the website or a cloud version history.

Is it safe to use an online PDF repair tool?

Only if the file stays on your device or you trust the service. Many repair sites upload the document to a server. Repair PDF on this site runs in the browser with WebAssembly, and it keeps working with the device offline once the page has loaded.

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

Phone viewers are often stricter or support fewer PDF features than desktop ones. The file is probably slightly malformed. Rewriting it with a repair tool on the computer normally produces a clean copy that opens on the phone too.

Free tool

Try Repair PDF

Rebuild a broken PDF's internal structure so it opens again in any viewer. The repair runs on your device, so the file is never uploaded. Runs in your browser, so the file never leaves your device.

Open Repair PDF