Skip to content
Bytevive

How to repair a corrupted PDF for free, without uploading it

Why PDFs break, what “repair” tools really rebuild, and how iLovePDF, Sejda, PDF2Go, PDF24, Repairit, qpdf, and Bytevive compare on limits, price, and privacy.

By the Bytevive team10 min read

A woman at her kitchen table looking at a laptop that says “Failed to load PDF document.”

You double-click a PDF and get “There was an error opening this document”, or a blank page, or a reader that simply gives up. Adobe’s own help page is blunt about it: if a PDF is corrupt, you can’t repair it directly in Acrobat, and the advice is to recreate it from the source file.

That’s not the whole story. Most PDFs that refuse to open still contain every page. What’s broken is the small index that tells a reader where those pages are, and an index can be rebuilt. This guide explains how, compares the free tools that do it, and is honest about the cases nothing can fix.

How a PDF is put together

A PDF isn’t read top to bottom like a text file. According to the PDF standard (ISO 32000), it has four parts: a short header such as %PDF-1.7, a body of numbered objects (pages, fonts, images), a cross-reference table listing the exact byte position of every object, and a trailer that ends with startxref, a number, and %%EOF. Incremental saves can leave an earlier version still in the file.

Inside a PDF file

A reader starts at the end, finds the cross-reference table, and uses it to jump straight to each page.

  1. %PDF-1.7Header
  2. ObjectsPages, fonts, images
  3. xrefWhere each object starts
  4. trailerstartxref · %%EOF
First byteAn interrupted download stops hereLast byte

An interrupted download stops here: everything after about 80% of the file is missing, which takes out xref, trailer.

Not to scale. In a real file the objects make up nearly all of the bytes; the index and trailer are tiny, and they come last.

Because the reader starts from the end, two common accidents break everything at once. If a download stops early, the index and trailer are the first things lost. If a program edits the file but doesn’t update the index, every position in it points to the wrong byte. In both cases the pages are still sitting in the file.

The fix is to ignore the broken index, scan the file for every object marker (12 0 obj and so on), and build a new table. The maintainer of qpdf, a widely used open-source PDF library, describes exactly this: qpdf “and virtually every PDF reader” recover a damaged file this way, and files that were edited without being reindexed usually come back completely, while truncated ones only come back in part.

What a repair can and can’t do

What happenedTypical symptomOutcome
Index points to the wrong places“File is damaged and could not be repaired”, or slow to openUsually a full recovery
Download or copy was cut offWon’t open, or opens with the last pages missingPages before the cut can be saved
Junk bytes before the header“Not a PDF” even though it is oneFull recovery
Password-protected (encrypted)Asks for a password, or a tool refuses itNeeds the password first
Page content overwritten by other dataBlank or garbled pagesThose pages are lost

The free PDF repair tools, compared

We make Bytevive, so treat our row with the skepticism you’d give any vendor. Everything else in this table comes from each provider’s own pages, listed in the sources at the end.

ToolWhere it runsFree allowancePaidFiles kept for
ByteviveIn your browser, nothing uploadedUp to 300 MB per file, free accountNoneNever stored
iLovePDFTheir servers1 file, 100 MB per taskUS$9/month, or US$60/yearUp to 2 hours
Sejda (web)Their servers50 MB or 200 pages, 3 tasks an hourFrom US$5 for a week2 hours
PDF2GoTheir servers50 MB without an accountMonthly plansDeleted within 72 hours
PDF24Their serversNo stated limitNoneUp to 1 hour after last use
Wondershare Repairit OnlineTheir servers3 files in total, 5 MB eachUS$5.99 per file, or a plan3 hours
Recovery Toolbox for PDFTheir serversPreview of what was recoveredUS$10 per file (up to 1 GB)Not stated
qpdf, mutool, GhostscriptYour computer (command line)Free, open sourceNoneNever uploaded

Largest PDF you can repair for free

Per file, on each service's free tier. PDF24 states no limit, so it isn't charted.

Bytevive
300 MB
Runs in your browser
iLovePDF
100 MB
Sejda (web)
50 MB
PDF2Go
50 MB
Repairit Online
5 MB
3 files in total
Sources: each provider's pricing or tool page, checked November 2026.

A few things stand out. Smallpdf, one of the best-known PDF sites, has no repair tool at all. PDF2Go is unusually candid, saying its failure rate on badly damaged files is high. And if you’d rather not upload a sensitive document, Sejda Desktop processes files on your computer too, as does iLovePDF’s desktop app.

How to repair a PDF in your browser with Bytevive

  1. Open PDF Repair and sign in. The account is free; it’s how we keep the tool from being abused.
  2. Drop the PDF onto the page. It’s read by your browser and never sent anywhere.
  3. Bytevive checks the header, the end-of-file marker, and where startxref points, then opens the file with PDF.js (the engine behind Firefox’s PDF viewer), renders the first pages, and test-draws up to 60 of them.
  4. If the index is broken, it rebuilds the file and opens the result again to make sure it really works before offering it to you.
  5. Download the repaired copy. If the file is encrypted or beyond saving, the report says so plainly.

The command-line route (free, on your computer)

If you’re comfortable with a terminal, three open-source tools do the same job:

# qpdf (Apache-2.0): rebuilds a damaged cross-reference table as it writes
qpdf damaged.pdf repaired.pdf

# MuPDF (AGPL): "can be used to repair broken files"
mutool clean damaged.pdf repaired.pdf

# Ghostscript (AGPL): re-creates the whole PDF from what it can read
gs -o repaired.pdf -sDEVICE=pdfwrite damaged.pdf

qpdf is the gentlest: it keeps the original objects and only rebuilds the structure. Ghostscript is the heavy hammer. It draws every page and writes a brand-new PDF, which can rescue files the others reject, but its own documentation warns that anything that isn’t drawn on the page, such as comments, normally won’t survive.

When a PDF can’t be repaired

If every tool fails, the missing data simply isn’t in the file. Your best options are elsewhere:

  • Download it again. A cut-off download is the most common cause, and a fresh copy fixes it.
  • Check version history. OneDrive, Dropbox, Google Drive, and SharePoint all keep earlier versions of synced files.
  • Ask the sender. For an email attachment, the original is still in their outbox.
  • Recreate it. If you made the PDF, export it again from Word, InDesign, or whatever produced it.

The bottom line

A PDF that won’t open is usually a PDF with a broken index, and that’s fixable for free. Start with a tool that runs on your own device, so a private document doesn’t sit on someone else’s server: Bytevive in the browser, or qpdf if you like the command line. Keep the original either way, because a repair can’t bring back bytes that were never written.

Frequently asked questions

Is it safe to repair a PDF online?
It depends on what's in it. Most online PDF repair sites upload the file to their servers and delete it after one to 72 hours, depending on the service. For contracts, medical records, or anything under NDA, use a tool that works on your own device, such as Bytevive (in the browser), Sejda Desktop, or qpdf.
Can a password-protected PDF be repaired?
Not without the password. Encrypted PDFs can't be rebuilt by tools that don't hold the key, and Bytevive won't rewrite one. If you know the password, open the file in a reader, save an unprotected copy, and repair that.
Why does my PDF open in Chrome but not in Adobe Acrobat?
Readers differ in how forgiving they are. A browser's built-in viewer will often rebuild a damaged cross-reference table silently, while another app may refuse the file. If it opens anywhere, save or print it to a new PDF from there and keep that copy.
Will repairing a PDF change its contents?
A structural repair rewrites the file's index, not its pages, so text and images stay the same. Two things do change: any digital signature becomes invalid, because the bytes it signed are different, and the old edit history that some PDFs carry is flattened into one version.
How large a PDF can Bytevive repair, and does it require an account?
Up to 300 MB per file, free with a free account. Everything runs inside your browser tab, so the PDF is never uploaded to a server.

Sources

Every claim, error message, price, and limit cited above comes from these pages, checked on November 22, 2026. If one has changed, tell us at support@bytevive.com and we’ll update the article.

  1. Adobe: Can't open a PDF
  2. PDF Association: ISO 32000-2, clause 7 (file structure)
  3. qpdf maintainer on how damaged files are recovered (issue #679)
  4. qpdf command-line documentation
  5. MuPDF: mutool clean
  6. Ghostscript: PDF output (pdfwrite) notes
  7. iLovePDF pricing
  8. iLovePDF FAQ (file retention)
  9. Sejda Repair PDF
  10. Sejda Desktop
  11. PDF2Go Repair PDF
  12. PDF2Go privacy policy (retention)
  13. PDF24 Repair PDF
  14. Wondershare Repairit online store (limits and prices)
  15. Recovery Toolbox for PDF Online

PDF won't open? Check it in your browser.

Free account, PDFs up to 300 MB. The file never leaves your device.

Repair a PDF, free

Other free tools: video, PDF, photo, Office, ZIP, and audio repair.