Skip to the content

Contact usFree tools · No signup · Files stay on your device

PDF Tools

How to fix a PDF that says "the file is damaged"

How to fix a PDF that says "the file is damaged"

You double-click an important PDF and get "There was an error opening this document. The file is damaged and could not be repaired", or a browser tab that says it failed to load the PDF. The file is not always lost. Often only its index is broken, and the pages are still inside.

Here is how to find out what went wrong, and how to get the pages back with Repair PDF, which runs in your browser.

Why PDFs become "damaged"

A PDF keeps an index near its end that tells readers where every page is. Readers open that index first. If it is missing or wrong, they stop, even if all the pages are present. The usual causes:

  • An interrupted download. The connection dropped, but the browser saved what it had. This is common on mobile data.
  • A bad email or chat transfer. A large attachment cut short, or a file sent through a service that altered it.
  • An unsafe disconnect. A USB drive pulled out while the file was being written.
  • A faulty export. Some older or buggy "Save as PDF" tools write a wrong index.
  • A file that is not a PDF. A web page saved with a .pdf name, for example an error page from a government portal.
  • A password. Some readers show a confusing error for an encrypted file. That file is not damaged.

Step 1: Check the obvious things (2 minutes)

  1. Compare the file size. Look at the size in the download list or on the website. If your copy is much smaller, it was cut short. Download it again, ideally on Wi-Fi.
  2. Try a second reader. Open it in Chrome or Edge, not only in the app that complained. Different readers tolerate different faults.
  3. Ask for a fresh copy. If it came by email or WhatsApp, ask the sender to send it again, or to share it as a link.
  4. Look at the first bytes. On a computer, open the file in a plain text editor such as Notepad. A real PDF begins with %PDF-1. followed by a version number. If you see a line of HTML like <html> instead, you saved a web page, not a PDF.
  5. Check for a password. If the file asks for one in another reader, it is encrypted, not damaged. Use PDF Unlock.

If none of that solves it, use Repair PDF.

Step 2: Repair it, step by step

  1. Open Repair PDF.
  2. Press Choose a damaged PDF and pick the file, or drop it on the page. The limit is 200 MB.
  3. Wait while it checks and rebuilds. This starts automatically. It never uploads the file.
  4. Read the verdict in the Repair result panel:
    • "Repaired — all N pages recovered" means you are done.
    • "Partly repaired" means some pages are missing from the file itself.
    • "Recovered N of M pages by rendering them as images" means the pages look right but the text is not selectable.
    • "Sorry — this file is too badly damaged to recover" means nothing readable was found.
  5. Press Download repaired PDF. It is saved with -repaired added to the name.
  6. Open it in your normal reader and scroll through every page before you delete the old one.

How to read what the tool found

Under "What was found and done" the tool lists its checks. A cross next to one of these tells you what the damage was:

  • PDF header: bytes of junk before the header. Something was written before the file. Rebuilding usually fixes it.
  • End-of-file marker: Missing — the file looks truncated. Part of the end is gone. If pages are missing too, they cannot be recovered.
  • Cross-reference pointer: Points to byte N, but there is no xref table there. The index points to the wrong place. This is the most common and the most fixable.
  • Trailer: Missing or damaged. A reader can't find the document root. The tool looks for it itself.

The numbers at the top matter more than the crosses. Compare Pages expected with Pages recovered. If they match, you have everything. If not, the pages in between are in the part of the file that never arrived.

For a deeper explanation of each check and both repair methods, see Repair PDF: the complete guide.

Text selectable, or pictures only

Repair PDF tries two things in order. First it rebuilds the file's structure and copies the pages, which keeps text, fonts and quality. Only if that recovers too few pages does it draw each page as a 150 DPI image and build a PDF from those. If you get the image version and still need to search it, run it through PDF OCR. If you also have the structure-rebuilt version, prefer that one. The tool shows both in a table when both were made.

When repair is not enough

  • The file was truncated. You will get "Partly repaired". Get the file again, or use an older copy, an email attachment or a cloud backup.
  • It is not a PDF. If the tool says nothing readable was found, check the file in a text editor, as in Step 1. A saved web page cannot be turned into a PDF by repair.
  • One page is the problem. If the report names a page that could not be recovered and you do not need it, remove it with Organize PDF Pages.
  • You need part of the file now. A partly repaired file is still useful. Download it, and ask for the missing pages separately.

Prevent it next time

  • Wait for the download to finish before opening or moving the file. Check the size.
  • Eject USB drives properly.
  • When you send an important PDF, send a link as well, or keep a copy in cloud storage.
  • If you must email big scans, shrink them first with Compress PDF, because a smaller file has less to go wrong in transit. For targets such as one megabyte, see how to compress a PDF to under 1 MB.
  • Keep the original file. Repair always makes a new copy.

Privacy

Repair PDF works inside your browser. The damaged file is read and rebuilt on your device and is not uploaded, so a bank statement or a certificate stays with you.

Frequently asked questions

Why does a PDF say it is damaged when it downloaded fine?
A download can finish and still be incomplete, or the file can be saved with a broken index. The size is the quickest clue: if it is smaller than the original, part of the file is missing.
Can every damaged PDF be repaired?
No. If the file was cut off, the pages in the missing part are gone. Repair PDF tells you how many pages it recovered, so you know what you have.
Does a password-protected PDF count as damaged?
No. A locked PDF is encrypted, not broken. Repair PDF will tell you to unlock it first with PDF Unlock.
Why is my repaired PDF not searchable?
The tool used its fallback, which draws each page as an image and rebuilds the file. The pages look the same, but the text cannot be selected or searched.
Is it safe to repair a private document online?
With Repair PDF, yes. It works in your browser, so the file is not uploaded. That is useful for NID copies, bank statements and certificates.
Found this useful? Share it

Tools in this guide

Main tool

Repair PDF

Try to recover a PDF that won't open or shows errors.

Open tool

PDF Unlock

Save a copy of your PDF that opens without a password and has no printing or copying restrictions.

Open tool

Compress PDF

Reduce the file size of a PDF with lossless optimisation, smaller images or full-page compression for scans —.

Open tool

PDF to JPG

Turn every page of a PDF — or just the pages you pick — into JPG or PNG images.

Open tool

Back to all guides & blog