Skip to the content

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

PDF Tools

Repair PDF: the complete guide to fixing damaged PDF files

Repair PDF: the complete guide to fixing damaged PDF files

A PDF that will not open is stressful, especially when it is a certificate, a signed contract or the only copy of a bank statement. Repair PDF checks the file, tries to rebuild it, and tells you plainly how many pages it got back. It runs in your browser and needs no signup.

This guide explains what the tool checks, the two ways it recovers a file, how to read its report, and what it cannot do. If you want the quick version for one specific error message, read how to fix a PDF that says the file is damaged.

What Repair PDF does

Inside, a PDF is a set of numbered objects (pages, fonts, images) plus an index at the end, called the cross-reference table, that says where each object is. Most "damaged" PDFs have healthy objects but a broken or missing index, or a missing end of file. The reader can't find its way around, so it gives up. Repair PDF reads the objects one by one without trusting the index, and builds a clean new file around the pages it finds.

It can handle:

  • A wrong or missing cross-reference table or startxref pointer.
  • A missing or damaged trailer.
  • Junk bytes before the %PDF- header.
  • A broken page list, where it finds the page objects directly and re-attaches them.
  • Some individually broken objects, which it skips so the rest survives.

It cannot create data that is not in the file. If the file was cut off, the pages stored in the missing part are gone. It also does not remove passwords or fix a file that has been overwritten with something else.

How to use Repair PDF, step by step

  1. Open Repair PDF.
  2. Press Choose a damaged PDF, or drop the file on the page. The limit is 200 MB.
  3. Wait. The repair starts at once. The progress line reads "Checking the file structure…", then "Rebuilding the document structure…", and if needed "Rendering page 3 of 12 as an image…". Press Cancel to stop. Cancel works at every stage: the tool stops as soon as the step it is on has finished, and shows "Stopped. Nothing was recovered; choose the file again to start over."
  4. Read the Repair result panel.
  5. Press Download repaired PDF. The file is named like the original with -repaired added, for example salary-slip-repaired.pdf.
  6. Check the Preview of the repaired file, which shows thumbnails of the first 60 pages, then open the download in your usual PDF reader.

What the report tells you

The checks

Under "What was found and done" each check shows a tick or a cross:

Check Passes when
PDF header The file starts with %PDF-. A cross says how many bytes of junk come first, or that the header is missing.
End-of-file marker %%EOF is near the end. A cross says the file looks truncated.
Cross-reference pointer The startxref number at the end points to a real table.
Cross-reference entries Up to 200 entries are spot-checked against the objects they name.
Trailer A trailer or cross-reference stream is present.

A "truncated" cross usually means a download or copy stopped early. Wrong pointers and entries usually mean the file was edited or saved by buggy software.

The numbers

  • Pages expected is the tool's best estimate of how many pages the file should have. When the structure is healthy it trusts the page count of a second, very tolerant reader. When it is damaged it takes the highest believable figure from three sources: that reader, the page objects it found, and the page count declared in the page tree. It shows "unknown" if none is available.
  • Pages recovered is how many pages the repaired file has.
  • Method is "Structure rebuilt" or "Rebuilt from page images".
  • Size shows the original and repaired sizes, such as 2.40 MB → 2.31 MB.

The verdict

You will see one of these:

  • "Repaired — all N pages recovered with text and quality intact." The best outcome.
  • "Partly repaired — N of M pages recovered, with text and quality intact." The data for the other pages is missing from the file.
  • "Recovered N of M pages by rendering them as images." The pages look right, but text can't be selected or searched.
  • "No structural problems found. A clean copy was rebuilt anyway." The file was not damaged. If one app struggles with the original, try the copy.
  • "Sorry — this file is too badly damaged to recover in the browser. Nothing readable was found."

The two repair methods

1. Structure rebuild

The tool loads the file leniently, ignoring the index, and copies every readable page into a brand-new document with a fresh cross-reference table and trailer. Text, fonts and image quality come through exactly. It then reopens the result with a strict reader to make sure it really works.

If copying all pages at once fails, it copies page by page so one bad page does not take the others down, and lists the pages it could not copy.

2. Rebuild from page images

If the first method recovers fewer pages than expected, or fails, the tool tries a second route when its tolerant reader can open the file. It draws each page as a picture at 150 DPI, saves it as a JPG at 85% quality, and puts the pictures into a new PDF. Very large pages are scaled down so no page exceeds 24 million pixels.

When both methods run, a table lists them with a Download button for each. The tool marks one "best", the one that recovered more pages. On a tie it keeps the structure rebuild, because the text stays selectable. The image version downloads as …-repaired-images.pdf.

What it accepts and its limits

  • One file at a time, PDF only, up to 200 MB.
  • An empty file shows "This file is empty (0 bytes) — there's nothing to recover."
  • A password-protected PDF is refused with a note to use PDF Unlock first.
  • A file that is not really a PDF fails both methods and ends with the "too badly damaged" message.

Privacy

Everything happens in your browser. The file is read, diagnosed, rebuilt and previewed on your device and is not sent to a server, which matters for documents such as NID copies and bank statements.

Worked example

You download hsc-result.pdf on a weak connection. It shows 1.8 MB, but your reader says it cannot open it, and the original website shows 4.2 MB. Run it through Repair PDF. The checks may show a cross for "End-of-file marker: Missing — the file looks truncated" and one for the trailer, and the verdict may be "Partly repaired — 3 of 5 pages recovered". Trying other tools will not help: the last two pages never arrived. Download the file again on a steadier connection.

A different case: a PDF made by an old export tool opens in one app and fails in another. The checks show "Points to byte 51234, but there is no xref table there". The structure rebuild succeeds, and the verdict reads "Repaired — all 8 pages recovered with text and quality intact". The cause was only a bad pointer.

Tips

  • Keep the original. The repaired file is a new copy, not a change to the old one.
  • Compare the Pages recovered number with what you expect. A short count is the real warning, more than any cross.
  • Open the result in your usual reader and scroll through every page before you delete the damaged copy.
  • If you have an older copy, an email attachment or a cloud backup, try that too. The tool says the same.
  • Bookmarks, form fields and signatures may not survive a rebuild. The report does not list them, so check them if you need them.

Common problems and how to fix them

"Sorry — this file is too badly damaged to recover"

Neither method found a readable page. Get the file again from the source, or look for a backup.

"This PDF is password-protected"

Your file is encrypted, not damaged. Use PDF Unlock with the password, then repair only if it still fails.

The repaired PDF can't be searched

The tool used the page-image method. Run it through PDF OCR to add a text layer, or go back to a better copy of the source.

One page is missing or blank

The report lists pages that could not be copied or rendered. If a single page is bad and you do not need it, remove it with Organize PDF Pages, as the tool itself suggests.

The file got bigger

The image method can enlarge a file. Use Compress PDF afterwards. An image-based result has no text to lose, so even the Strong mode is fine for it.

Frequently asked questions

Why is my repaired PDF made of pictures?
When the structure is too broken to copy pages directly, Repair PDF falls back to a tolerant reader that draws each page and rebuilds the file from 150 DPI images. The pages look the same but the text can no longer be selected or searched.
What does 'Partly repaired' mean?
It means fewer pages were recovered than the file declared. The data for the missing pages is not in the file, for example because a download stopped early, so no tool can bring them back.
Can Repair PDF open a password-protected file?
No. A locked PDF is not damaged, it is encrypted. The tool tells you to unlock it first with PDF Unlock and then try again.
Will the repaired file be a different size?
Usually yes. The tool shows the size before and after. A structure rebuild is normally close to the original, and a rebuild from page images can be larger or smaller depending on the pages.
Is the damaged file uploaded anywhere?
No. The diagnosis, the rebuild and the preview all run in your browser, so the file never leaves your device.
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

Organize PDF Pages

See every page as a thumbnail, then drag to reorder, rotate, delete, duplicate or add blank pages.

Open tool

Back to all guides & blog