Skip to content
Filo

How to Repair a Corrupted PDF (And Salvage Your Data)

A PDF that won't open isn't always lost. Check what's wrong, try another reader, save a clean copy, or pull out the text and pages that still work.

Sana HussainReviewed by Muhammad Sheraz
Updated
8 min read
Illustration of a broken PDF being repaired, with the Filo wordmark and the title How to Repair a Corrupted PDF

PDF repair usually starts with a simpler question: is the file actually damaged, or is your reader being strict? Try opening it in a different PDF reader, such as your web browser or Filo's PDF Reader, and if it opens, save a fresh copy straight away. If no reader can open it, get a new copy from the source, and if that's impossible, salvage the text and pages that still work.

Filo doesn't have a dedicated repair tool, and no tool can rebuild data that isn't in the file. The steps below go from quickest to most drastic.

Do this in FiloPDF to DOCSecure server pass · deleted when the conversion finishesConvert now

Is your PDF really corrupted?

Plenty of "corrupted" PDFs are something else. Rule these out first, because each has a simple fix.

  • It's password protected. A reader that doesn't support the encryption may show an error instead of asking for the password. If you know the password, Unlock PDF can save a copy that opens without it.
  • It isn't a PDF. A failed download sometimes saves an error web page with a .pdf name. Check the file size: a few kilobytes for something that should be a long document is a giveaway.
  • The download didn't finish. A file that's much smaller than expected, or exactly 0 KB, was cut short. Download it again.
  • The app is out of date. An old reader may fail on newer PDF features. Try a current browser.
  • It's still syncing. A file in a cloud folder (iCloud Drive, OneDrive, Google Drive) can look present before it has fully downloaded. Wait, or download it explicitly.

A quick test for advanced users: open the file in a plain text editor. A real PDF starts with the characters %PDF near the top and usually ends with %%EOF. If the end is missing, the file was truncated, and part of it is simply gone.

Computer screen showing a damaged PDF error message next to a web browser window

Why PDFs get corrupted

Most damage happens while the file is moving or being saved, not while it sits on your drive.

  • A download or upload was interrupted, or resumed badly.
  • An email system mangled the attachment while encoding it.
  • A USB drive or memory card was removed before the copy finished.
  • An app crashed or the battery died while saving the PDF.
  • A sync service saved two conflicting versions.
  • Less often, a failing drive or card damaged the stored data.

A PDF has an internal index (the cross-reference table) that tells the reader where every page and image is. When the index is damaged but the content is intact, a tolerant reader can rebuild it and open the file. When the content itself is missing, nothing can bring it back.

Method 1: Open it in a different PDF reader

Readers differ a lot in how forgiving they are. One refuses a file with a broken index, another quietly rebuilds it.

  1. Try your web browser. Drag the PDF into a Chrome, Edge, Firefox or Safari window.
  2. Try PDF Reader in your browser. It opens the file on your device without uploading it.
  3. On a Mac, try Preview. On Windows, try Edge or another installed reader.
  4. On a phone, try opening it from the Files app or a different app than the one that failed.

If one of them shows the pages, move on to Method 2 before you close it.

Method 2: Save a clean copy

When a reader can display the file, you can usually write a fresh, healthy PDF from it.

In a desktop browser, open the print window with Ctrl + P (Windows) or Cmd + P (Mac), the shortcuts Google lists in its help on printing from Chrome. Set the destination to Save as PDF and click Save. The new file is rebuilt from what the browser rendered.

The trade-offs: links, form fields, bookmarks and attachments may not survive, and some text can come out as images. Keep the damaged original until you've checked the copy page by page.

Method 3: Get a fresh copy from the source

This sounds obvious, but it fixes most cases and loses nothing.

  • Downloaded from a website or email: download it again, ideally on a stable connection.
  • Sent by someone: ask them to resend it, or to share a link instead of an attachment.
  • Made by you from Word, Excel or PowerPoint: export the PDF again from the original file.
  • Stored in OneDrive, Google Drive, Dropbox or iCloud Drive: check the file's version history or recently deleted items for an earlier, working copy.
  • On a backed-up computer: restore an earlier version from your backup (File History on Windows, Time Machine on Mac).

Method 4: Salvage the text

If the file opens but behaves badly, or a reader shows some pages and not others, get the words out while you can.

  • Copy and paste. In any reader that opens it, select the text and paste it into a document.
  • Open it in Word. Microsoft's guide to opening PDFs in Word explains that Word converts a copy into an editable document and leaves the original unchanged. It notes that conversion "works best with files that are mostly text."
  • Use PDF to TXT. It reads text pages in your browser. Scanned pages are read with OCR on Filo's secure server pass, and the file is deleted when the conversion finishes.
  • Use PDF to DOC for an editable Word file, if the converter can read the PDF. It uses a secure server pass too.
Converting a PDF to an editable Word document on a smartphone

None of these can read pages that are physically missing from a truncated file. They recover what's still there. Our guide to converting a PDF to text covers the text route in more detail.

Method 5: Save the pages as images

When the layout matters more than editable text, for a signed form or a certificate for example, turn the pages that still display into pictures.

  1. Open the PDF in PDF to JPG and pick the pages you need.
  2. Download the images.
  3. Combine them back into a new PDF with Image to PDF.

You lose selectable text, but every page looks as it did. On the web you get 3 free conversions in total, and images and PDF pages made with them carry a small Filo mark in one corner, so for a document you'll submit officially, check that the mark is acceptable. If you need the text searchable again afterwards, OCR PDF can add a text layer to the rebuilt file. Our guide to exporting a PDF as JPEG has more on the image route.

Method 6: Online repair tools

Several services offer a "repair PDF" upload that tries to rebuild the file's structure. They're worth a try when nothing above works, with two caveats: you upload the document to someone else's server, so read their privacy policy first for anything sensitive, and they can't restore content that isn't in the file.

Which PDF repair method to try

What you seeMost likely causeTry first
"File is damaged" in one app onlyStrict reader, broken indexMethod 1, then Method 2
Error in every app, small file sizeIncomplete downloadMethod 3
Opens, but pages blank or missingPartly damaged contentMethods 4 and 5
Asks for a password or shows an errorEncryptionUnlock PDF, if you know the password
Nothing opens it, no other copyBadly damaged fileMethod 6, then accept partial recovery

How to stop it happening again

  • Wait for downloads and copies to finish before opening or moving files.
  • Eject USB drives and cards properly.
  • Keep important PDFs in a folder that's backed up or synced with version history.
  • Don't edit the only copy of a document. Work on a duplicate.
  • Send big files as a share link rather than an email attachment.

Get Filo free on iPhone and Android4.8 rating · 100K+ downloads

Frequently asked questions

Can a corrupted PDF be repaired?

Often, yes, if the damage is to the file's internal index rather than its content. A tolerant reader such as a web browser can rebuild the index and display the pages, and you can then save a clean copy. If the file was cut short during a download or copy, the missing part is gone, and you can only recover what remains.

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

That message means the app couldn't read the file's structure. Common causes are an interrupted download, an attachment damaged in email, a file saved during a crash, or a file that isn't really a PDF. Try another reader first, then download or request a fresh copy. If nothing opens it, salvage what you can.

How do I recover text from a corrupted PDF?

If any reader opens the file, copy the text out, or open it in Word, which converts a copy into an editable document. A PDF to text converter can also read the pages that are still intact, including scanned pages through OCR. Text from pages missing in a truncated file can't be recovered, so look for an earlier copy too.

Is it safe to use an online PDF repair tool?

Online repair tools upload your file to their servers, and how long they keep it depends on their policy. That's fine for a public brochure but worth thinking about for contracts, medical records or bank statements. Try local options first: a different reader, the browser's Save as PDF, or Filo's PDF Reader, which opens the file in your browser without uploading it.

Can I fix a PDF on my phone?

You can try the same steps. Open the file in a different app, or in Filo's PDF Reader in your phone's browser, and if it displays, share or print it to save a fresh PDF. You can also download it again from the original email or website, since many phone PDF errors come from attachments that didn't download completely.

All your documents. One place.

Every web tool, plus camera scanning, offline use and your file history. Free for life on iPhone and Android.

4.8 rating · 100K+ downloads

Filo app home screen showing recent files and quick tools