Repair PDF

Rebuild a PDF whose cross-reference is broken so strict readers accept it again.

Runs in your browser. Nothing is uploaded — your input is processed on this device and discarded when you close the tab.

Your file

Drop a PDF here or click to browse. One file at a time, up to 50 MB. Everything is processed on this device only — no file is uploaded.

Repair rebuilds the file structure (cross-reference and trailer) from the objects inside it. It cannot restore content that is missing, and it cannot open password-protected files — the limitations on this page explain both.

Sometimes a PDF will not open — or opens in one reader and not another, or shows an error about a cross-reference table — even though the document itself was fine when it was created. A common cause is structural, not content, damage: the file's cross-reference table (the index that tells a reader where each object lives) holds wrong byte offsets, or its startxref pointer aims at the wrong place. Truncated downloads, interrupted saves, buggy merges and some email gateways all produce exactly this injury. This tool performs the basic repair for it: it reads the document by scanning and parsing the objects themselves rather than trusting the broken index, then writes the whole thing back out with a fresh, consistent structure. The rebuilt file is the download — all in your browser, with nothing uploaded.

The honesty matters as much as the mechanism, because "repair" is a word other tools stretch. This tool rebuilds structure; it does not and cannot restore content that is not there. The limitations below state precisely which failures it addresses and which it does not, so a file that needs a different remedy is recognised quickly instead of being sent through a repair that was never going to help it.

How to use Repair PDF

  1. Add the damaged PDF. Drop it onto the workspace or click to browse. One file at a time, up to 50 MB. Unlike the other tools here, this one does not need the file to open cleanly first — a broken cross-reference is exactly what it is for.
  2. Read the diagnosis line. When a file is added, the tool checks its cross-reference: following the startxref pointer and verifying that table entries point at the objects they claim to. If it finds a problem, the status line says what it found in plain terms.
  3. Choose "Repair PDF". The document is parsed from its objects and re-saved with a new cross-reference and trailer. Document metadata — the title and author — is carried across explicitly, and the page count that was recovered is recorded.
  4. Read the result line. It reports how many pages were recovered and the before-and-after sizes. A repair that recovers fewer pages than the document should have is a partial recovery, and the count is how you know.
  5. Verify the download in a strict reader. Open the repaired file in the application that rejected the original. Skim every page — especially the last one — and confirm nothing is missing before the repaired copy replaces the original in your records.
  6. Keep both files until you have checked. The original is never modified, and if the repair turns out to be partial, the original is still your evidence for what the document contained.

Features

Worked example

The worked example is this tool's own test scenario, run by its test suite. Start with a healthy three-page document carrying the title "Quarterly figures" and author "A. Example", saved with a classic cross-reference table — 2,707 bytes in its damaged form. The damage is applied deliberately: every offset in the cross-reference table is zeroed and the startxref pointer is reset to 0, so a reader that trusts the index looks for every object at the start of the file. The tool's strict check confirms the damage (the pointer no longer lands on the table), the repair then recovers all 3 pages, the extracted text of every page is intact, the title and author survive, and the rebuilt 1,670-byte file passes the same strict check that the damaged file failed. An already-healthy file passed through the same repair comes out with its page texts identical, page for page — the repair changes structure, not content.

Common errors and limitations

Frequently asked questions

Are my PDFs uploaded to a server?

No. The damaged file is read, rebuilt and returned entirely within your browser. Nothing is transmitted and no copy is kept — a reasonable property for a tool you might point at a sensitive document that has just failed.

What kind of damage can this repair actually fix?

Structural damage to the file's indexing: cross-reference tables with wrong offsets, a startxref pointer aimed at the wrong place, and the general structural sloppiness left by buggy producers and interrupted saves. The objects holding the pages are re-read directly and written back with a fresh, consistent index.

What can it not fix?

Missing or internally corrupt content. If part of a page was never written or was overwritten, that content is absent from the file and no repair can restore it. The tool also cannot open encrypted files or make a non-PDF file into a PDF.

Will my document's title and author survive the repair?

Yes. The title, author, creator and producer recorded in the document are read before the rebuild and written onto the repaired file — the test suite verifies a repaired document carries the exact title and author of the damaged original.

How do I know whether the repair recovered everything?

The result line reports the number of pages recovered; compare it with the page count you expect, then open the repaired file and skim it — particularly the final pages. The tool reports what it found rather than estimating, so a short count is your signal that the source file itself was incomplete.

Why does one reader open my file while another refuses it?

Readers differ in how much they trust the cross-reference. Tolerant readers scan the file and rebuild the index silently — which is also how this tool reads — while strict readers follow the stored offsets and fail when those are wrong. A successful repair makes the file acceptable to both kinds.

Related PDF tools

Compress PDF

Compress a PDF in your browser: keep text with a lossless re-save, or go smallest with page images. Real byte counts shown.

Image, PDF and Documents

Add Page Numbers

Add "Page 2 of 3"-style numbers to a PDF in your browser, with six positions and a custom start count.

Image, PDF and Documents

Crop PDF

Crop PDF pages by setting margins in points or percent, in your browser. Honest note: a crop hides content, it does not delete it.

Image, PDF and Documents

Add Watermark

Add a translucent text watermark to a PDF in your browser — opacity, angle, size and tiled layout controls.

Image, PDF and Documents

Prefer everything on one page? The original PDF Toolkit merges, splits and rearranges with one shared file list. The full suite is indexed on the PDF Tools hub.

Related articles

How to Merge and Split PDF Files

Merge several PDFs into one file in the order you choose, or split one PDF by page range — in your browser, with no upload. Includes a tested merge/split example with measured page counts and file sizes, and an honest account of the password-protected case.

By AtoZTools Editorial Team · Last reviewed 2026-10-24