Free tool

Is this PDF corrupted?

A PDF is read from the end: the last lines point to a table, and the table points to everything else. Drop the file and the checker follows that path and reports where it breaks. Nothing leaves your browser.

Drop a file here to check it

PDF documents (.pdf) · up to 256 MiB

Your file never leaves this browser tab. The analysis runs locally in WebAssembly — nothing is uploaded.

How a PDF breaks

A PDF reader does not start at the top. It goes to the end of the file, finds the startxref line, jumps to the cross-reference table that line points at, and uses the table to locate every page, font and image. The design makes long documents quick to open, and it makes the last few hundred bytes of the file the ones that matter most.

It is also why a download that stopped early, or a PDF recovered a little short, will not open at all although every page is in it. The checker walks the same path a reader does and names the step that fails.

What the checker reads

Header
The %PDF- line and its version. The checker accepts it within the first kilobyte, as readers do, and says when it sits later than the first byte, which happens when something was written in front of the document.
Objects
The numbered building blocks: pages, fonts, images, and the catalog that ties them together. The report gives the count. They are what a rebuild works from.
Cross-reference table or stream
The index of where each object starts. Older PDFs keep it as a plain xref table; since PDF 1.5 a file can keep it in a compressed cross-reference stream instead. The checker reads both and tests the first entries against the objects it found, so an index that is present with the wrong offsets is reported as invalid, not as fine.
Trailer and startxref
The trailer names the document's root object, and startxref gives the index's position. In a file saved for fast web view the root is named at the front of the file; in one with a cross-reference stream, the stream names it. A bad pointer here leaves a reader with nowhere to begin.
%%EOF
The last line of a complete PDF. Its absence means the file ends early.
Stream lengths and references
Each content stream declares its length, and objects refer to each other by number. The checker flags a stream whose stated length does not match, and references to objects that are not in the file.

What the verdict means for a PDF

Healthy
A header, an index (table or stream) that matches the objects, a root to start from, a startxref that points at the index, and %%EOF. If a healthy PDF opens to blank pages, the damage is inside a page's content, which this check does not render.
Repairable
Objects are in the file and the path to them is broken: no table, a table with wrong offsets, a missing trailer, or no %%EOF. This is the usual verdict for a PDF that was cut short or saved during a crash. A PDF that packs its objects into compressed object streams gets it too, as long as those streams can still be read.
Partially repairable
The header is not at the start of the file, or hardly any objects survive and the catalog is not among them. In a PDF with object streams, it can also mean one or more of those streams could not be read. Some pages may come back and others not.
Not repairable as-is
No header and no objects, or objects that point at others no longer in the file: pages exist whose fonts or images are gone, and the engine does not guess at them. A damaged PDF that packs its objects into compressed object streams gets this verdict when it is encrypted, or when the streams that hold its catalog and page tree cannot be read and no whole page is left.

What this check does not tell you

Since PDF 1.5 a file can pack most of its objects into compressed object streams. In a file that is sound, the checker verifies the index that leads to those streams and does not unpack them: a healthy verdict means the path to its objects is intact, not that every packed object was read. In a damaged file it unpacks them to see what is left.

Pages are not rendered and streams are not decompressed. A stream whose declared length is wrong is flagged; one that is the right length and holds bad data is not.

The browser reads PDFs up to 256 MiB. The PDF rebuilder's own limit is 512 MiB.

If the file is damaged

With a license, DataRecover Pro's Repair tab rebuilds the cross-reference table and the trailer from the objects it finds, rewrites a missing header, restores the link to the catalog and closes a file that ended early. In a PDF with object streams it reads those streams and writes a new index that leads to every object still in the file; if the catalog or the page tree is gone, it builds a new one from the pages whose content survives. The assessment that tells you whether that will work is free.

It does not repair the inside of a damaged content stream, it declines a file whose objects refer to others that are gone, and it declines a damaged PDF with object streams that is encrypted. A rebuilt PDF opens; a page whose own data was lost stays lost, and a page saved from a file that was cut short can come back without a font or picture that sat past the cut. There is more on what repair can and cannot do in corrupted file repair on Mac.

Related guides

Checking is free here and in the app. Repair needs a license.

DataRecover Pro assesses the file on your Mac, with no upload, and tells you whether its repair engine can fix it before you buy.

Check another kind of file: JPEG · PNG · GIF · MP4 and MOV · Word (.docx) · any supported file