PDF Tips PDF Basics Repair a Corrupted PDF

How to Repair a Corrupted PDF File

Before you give up on that broken PDF, try these recovery methods. Most corrupted PDFs are more salvageable than they look.

June 8, 2026 PDF Basics 8 min read
Back to All Posts

You double-click a PDF and nothing happens. Or it opens to a blank page. Or your viewer throws an error: "file is damaged and cannot be repaired," "unexpected end of file," "file does not begin with %PDF." These messages are alarming — but they don't always mean the file is unrecoverable. PDF corruption ranges from a missing byte at the end of the file (easily fixed) to catastrophic data loss (genuinely unrecoverable). Here's how to diagnose which situation you're in and what to do about it.

Why Do PDF Files Get Corrupted?

A PDF file is a structured binary format with a header, a body containing page content, a cross-reference table, and a trailer. Corruption usually means one of these structural components has been damaged or is missing. Common causes:

CauseWhat Gets DamagedRecovery Likelihood
Interrupted download File truncated — missing the trailer/cross-reference table High — re-downloading often resolves it completely
Email attachment corruption Encoding errors during transmission High — ask the sender to re-send
Improper save / application crash Incomplete write — file ends mid-stream Medium-High — repair tools can often reconstruct
Storage media failure (bad sectors) Random bytes overwritten throughout file Medium — depends on which sections were hit
Virus or ransomware Intentional encryption or overwriting Low — content is often deliberately destroyed
File system error Cross-reference table or header corrupted Medium — structural repair tools may recover content
Wrong file extension Not corrupted — just mislabeled Very High — simply rename or try opening as the correct format

Step 1: Rule Out the Simple Fixes First

Before spending time on repair tools, check these quick wins — they resolve a surprising number of "corrupted" PDFs:

Try a Different PDF Viewer

PDF viewers interpret the format differently. A file that crashes Adobe Acrobat may open fine in your browser (Chrome, Firefox, Edge all have built-in PDF renderers), in Preview on Mac, or in a lightweight reader like Sumatra PDF on Windows. If any viewer can open it, the file isn't truly corrupted — it's just incompatible with one particular viewer's strictness about the PDF specification.

Re-Download the File

If the PDF came from a website or was emailed to you, download or request it again before attempting repair. An interrupted download is the single most common cause of "corrupted" PDFs, and re-downloading takes ten seconds.

Check the File Size

A PDF that should be several megabytes but shows as 0 KB or a few bytes was never properly transferred. No repair tool can help — the content was never written to disk. Get it from the source again.

Check If It's Actually a PDF

Open the file in a text editor and look at the first few characters. A valid PDF starts with %PDF-1. followed by a version number. If you see HTML, XML, or garbled text instead, the file was saved in the wrong format or downloaded incorrectly (some servers send an error page instead of the file).

Step 2: Try Browser-Based Recovery

Chrome and Edge's built-in PDF renderers are often more tolerant of structural errors than standalone PDF applications. Drag the file directly into a Chrome or Edge browser window. If it renders — even partially — you can use the browser's print function to save a clean copy:

  1. Open the PDF in Chrome or Edge by dragging it into the browser window.
  2. Press Ctrl+P (Windows) or ⌘P (Mac) to open Print.
  3. Set the destination to Save as PDF.
  4. Print/save. This creates a fresh, clean PDF from the rendered output.

The result may not be perfect — it won't preserve form fields, hyperlinks, or bookmarks — but it captures the visible content, which is often all you need.

Step 3: Use a Dedicated PDF Repair Tool

If the simple approaches don't work, a dedicated repair tool attempts to reconstruct the PDF's cross-reference table and recover page content from the damaged file stream.

UPDF (Windows & Mac)

UPDF includes file repair capabilities alongside its full PDF editing suite. Beyond basic repair, UPDF can open partially damaged files, render what content is recoverable, and let you save a clean version — all without sending your document to a third-party server. For files containing sensitive content (legal documents, financial records, HR files), keeping repair local is important.

Adobe Acrobat Pro

Acrobat has a built-in repair function: if it detects damage on opening, it will attempt automatic repair and prompt you to save the result. You can also force a repair attempt via Help → Repair Installation (for Acrobat itself) or by opening the file with the /repair command-line flag. For PDFs created by Adobe products, Acrobat naturally has the best understanding of the file structure and recovery paths.

Online PDF Repair Services

Several web-based services (PDF2Go, ilovepdf, Sejda) offer repair tools. These work by uploading your file to their servers, running reconstruction algorithms, and returning a fixed version. They're worth trying for non-sensitive files, but be cautious about uploading confidential documents to third-party servers — check their privacy policy and data retention terms before proceeding.

Step 4: Extract What You Can

If full repair fails, partial recovery is often still possible. Rather than fixing the file structure, these approaches extract whatever content is accessible:

Extract Text

Even a damaged PDF often has its text content intact. Our Extract Text tool attempts to pull the raw text from the PDF's content streams regardless of structural issues. You won't get formatting or images, but you'll get the words — often the most important part. See our extract text guide for details.

Convert to Images First

Our PDF to JPG converter renders each page as an image. If the PDF partially opens, any pages that render can be captured as JPGs, then reassembled into a new PDF using our JPG to PDF tool. You lose text selectability, but you preserve the visual content of every page that was recoverable.

Open in Google Docs

Upload the damaged PDF to Google Drive and open it with Google Docs. Google's import engine is notably forgiving about structural damage and will often render content that standalone viewers refuse to touch. The formatting will be approximate, but the text and basic layout are frequently recoverable.

When Recovery Is Genuinely Impossible

Some corrupted PDFs cannot be repaired or partially recovered. You're in this situation when:

  • The file size is 0 bytes or a few bytes — no content was ever written
  • The file was encrypted by ransomware — the content has been deliberately scrambled
  • The storage medium with the only copy has failed catastrophically — you'd need professional data recovery services at that point
  • The corrupted sections are exactly the pages or content streams you need — other pages may be fine but the specific content is gone

In those cases, go back to the source: the person who sent it, the application that created it, a backup copy, or a cloud sync version. Most cloud storage services (Google Drive, Dropbox, OneDrive) keep version history — an earlier, uncorrupted version of the file may be just a few clicks away.

Preventing PDF Corruption

A few habits significantly reduce the risk of ending up with a corrupted file:

  • Never close an application mid-save — wait for the save to complete before closing, especially with large files
  • Verify downloads before closing the browser — check that the file size looks right before navigating away
  • Keep backups of important PDFs — cloud storage with version history is ideal; even a simple duplicate on an external drive helps
  • Use PDF/A for archival documents — the archival format's strict specification requirements make it more resilient to long-term corruption; see our PDF/A guide for when this matters
  • Don't edit PDFs in non-PDF applications — opening a PDF in Word, for example, converts it on the fly; saving back to PDF through Word can introduce structural issues
Key Takeaways
  • Try a different PDF viewer first — many "corrupted" files open fine in Chrome, Edge, or Preview
  • Re-download before attempting repair — interrupted downloads are the most common cause
  • Chrome's Print → Save as PDF can rescue a partially-opening file by re-rendering it cleanly
  • UPDF repairs damaged PDFs locally — no upload to third-party servers, important for sensitive files
  • If full repair fails, extract text, convert pages to images, or try Google Docs as a fallback
  • Ransomware-encrypted and zero-byte files are generally unrecoverable — go back to the source
  • Cloud storage version history is your best insurance against permanent loss

Extract text from a damaged PDF

Even broken PDFs often have recoverable text. Try our Extract Text tool — free, no upload required.

Extract Text Free