Skip to content
MyPDFDone

Guides · Compress & secure

How to Repair a Corrupted or Damaged PDF File

A PDF that every app calls damaged can often be rebuilt. What repair can and can't bring back, how to try it without paying first, and where to find another copy.

MyPDFDone teamUpdated 5 min read

Quick answer

First rule out a bad download: if the file is 0 KB, download it again. If no app opens it, upload it to a PDF repair tool, which rebuilds the file's structure and recovers the pages that are still readable. Check the preview page by page, because content missing from the file can't come back.

You double-click a PDF you need today and get "The file is damaged and could not be repaired", "Failed to load PDF document" or "Format error: not a PDF or corrupted". You've tried another app and it says the same. That message sounds final, but it often isn't: in many damaged PDFs the pages are still inside, and only the part that tells a reader where to find them is broken. This guide shows how to find out which kind of damage you have and how to get the readable pages back.

How a PDF gets corrupted

A PDF is a list of objects (pages, fonts, pictures) followed by an index at the very end that says where each object sits. A reader starts from that index. If the end of the file is missing or the index points to the wrong places, the reader gives up, even though most pages may be intact.

The usual causes:

  • An interrupted download or upload. The connection dropped and the file ends too early.
  • A copy that didn't finish. A USB stick pulled out too soon, a full disk, or a cloud folder that hadn't synced.
  • A crash while saving. The app or the computer stopped in the middle of writing the file.
  • A transfer that changed the file. Some email systems and old file transfer tools alter attachments on the way.
  • A failing drive or memory card. Parts of the file are unreadable or filled with garbage.

What repair can and can't bring back

Kind of damageCan it be repaired?What you get
Broken or missing indexUsually yesAll pages, as they were
File cut off near the endOftenThe pages stored before the cut
Wrong internal lengths or offsetsUsually yesAll pages
One page or picture with garbage dataPartlyThe other pages; that page blank or missing
File is 0 KB or a few KBNoNothing: there is no content
File isn't a PDF at all (a web page saved as .pdf)NoNothing to repair
Password promptNot damageEnter the password, then unlock

A repair tool doesn't invent content. It finds what's still in the file and writes it into a new, valid PDF.

Before you repair: two quick checks

Check the size. Look at the file in your file manager. If it's 0 KB, or a few kilobytes for what should be a long document, the content never arrived. Download it again or ask the sender to resend it, ideally as a shared link.

Try one other viewer. Drag the file into a web browser window. If the browser shows it, the file is fine and your usual reader is the problem. Our guide to a PDF that won't open covers these cases, from password prompts to forms that only say "Please wait".

If the file has a believable size and every app rejects it, it's time to repair it.

Step by step: repair a PDF with MyPDFDone

  1. 01Make a copy of the broken fileCopy the damaged PDF to another folder and work on the copy. Don't open and re-save the only version you have: a half-working app can make the damage worse.
  2. 02Upload it to Repair PDFOpen MyPDFDone's Repair PDF tool and drop the file on the upload box. Files up to 100 MB are accepted. Nothing needs to be set.
  3. 03Let the tool rebuild the fileThe tool rebuilds the file's internal index, reads every page it can still find and writes a clean new PDF. If nothing can be recovered, it says so and you pay nothing.
  4. 04Check every page in the previewThe preview is free. Go through it page by page and compare the page count with what the document should have. Look for blank pages and missing pictures.
  5. 05Download the repaired PDFIf your pages are there, download the repaired file for $4.99, paid once for this file. Keep the damaged original until you've checked the new one.

Uploading, repairing and previewing are free, so you see what came back before you decide. The download is a one-time $4.99 for that file, with no subscription and no trial. Files are deleted automatically 2 hours after upload.

What to check in the repaired file

A repaired PDF opens everywhere, but opening isn't the same as being complete. Before you send it on:

  • Count the pages. Compare with the table of contents, the page numbers printed on the pages, or "Page 3 of 12" in the footer.
  • Look for blank pages. A blank page in the middle usually means its content couldn't be read.
  • Check pictures and scans. A damaged image can come back grey, striped or cut off halfway.
  • Test forms and links. Fillable fields, bookmarks and links are the first things lost when a file is rebuilt.
  • Don't trust signatures. A certificate-based digital signature won't validate after a repair, because the file has changed. Ask the signer for the original.

Where to find an undamaged copy

Often the quickest repair is another copy of the same file. Look in these places before you spend time on anything else:

  • The original email or chat. Download the attachment again instead of using the copy you saved.
  • Your Sent folder. If you once forwarded the file, an intact copy is attached there.
  • Cloud storage version history. Most cloud drives keep earlier versions for 30 days or longer: right-click the file and look for version history.
  • Backups. Time Machine on a Mac, File History on Windows, or your phone's backup.
  • The source. A bank, a government portal or a shop can usually issue the document again from your account.
  • The app that created it. If you made the PDF yourself, export it again from the original document.

Free things to try on your device

Windows

Right-click the file, choose Open with and try your browser. Then right-click the file's folder, open Properties and look at the Previous Versions tab: if File History or restore points are on, an older copy may be there.

Mac

Preview is tolerant of small errors: if it opens the file, choose File > Export as PDF to write a clean copy. Time Machine can bring back yesterday's version of the file.

iPhone, iPad and Android

Phone viewers are the strictest and give up first. Save the file to your device and open it in another app or in the browser. If the file came through a messaging app, ask the sender to send it as a document, not as a compressed preview.

Prevent it next time

  • Wait for downloads and syncs to finish before you open, move or forward a file.
  • Eject USB sticks properly instead of pulling them out.
  • Share large files as links. Mail servers sometimes cut or alter big attachments; see how to reduce PDF file size for email.
  • Keep the original and work on copies, especially while editing.
  • Make smaller files for archives. A lighter file made with Compress PDF copies faster and is less likely to be cut off on a weak connection.

Final check

  • The repaired PDF opens in two different apps.
  • The page count matches the original document.
  • No page in the middle is blank or cut off.
  • Pictures, stamps and signatures are visible.
  • For anything official, you've also asked the issuer for a fresh copy.

Frequently asked questions

No. A broken index, a file cut off near its end or a damaged structure can usually be rebuilt. Pages whose data is missing or overwritten can't be recovered by any tool, because the content simply isn't in the file any more.

No. Uploading, repairing and the preview are free. If the file can't be repaired, MyPDFDone tells you so. You only pay when you decide to download a repaired file you've already seen.

The data for those pages was missing or unreadable, usually because the file was cut off during a download or copy. The repaired file holds everything that could be read. For the missing pages you need another copy of the original.

The file's structure is fine, so the problem is probably the app you open it with, a password, or an unsupported form type. You can still download the cleanly re-saved copy, which sometimes helps with strict upload forms.

Not directly. A password prompt is encryption, not damage. If you know the password, remove it first with Unlock PDF and then repair the unlocked copy if it still shows errors.

MyPDFDone sends files over HTTPS, keeps them in private storage and deletes them automatically 2 hours after upload. Nobody opens your documents, and they are never used for training.

MyPDFDone team · Alexander Vinokurov

We build and run MyPDFDone, a set of honest online PDF tools: free processing and preview, a one-time $2.99 download, no hidden subscriptions.

Published · Updated