Repair PDF

No upload · runs in your browser

Runs entirely in your browser, nothing is uploaded.

How it works

Repair PDF: rebuild a file that will not open

Drop a PDF that will not open and get a rebuilt copy back. The cross-reference table and object structure are reconstructed in your browser, the broken file is never uploaded.

What this does
  • qpdf walks the file, keeps the objects that still parse and writes a clean document around them
  • Full rebuild regenerates the object streams; minimal rewrite keeps the original layout where it is readable
  • Falls back to a pdf-lib rewrite when qpdf cannot parse the file at all
  • Lists the structural faults the engine reported, deduplicated
  • Optional linearization so the first page renders before the rest has downloaded
FAQ

Structural damage, the bookkeeping that tells a viewer where each object lives. A cross-reference table that is missing or points at the wrong byte offsets, stream lengths that disagree with their streams, malformed object streams, a file mangled by a text-mode FTP transfer or by a find-and-replace run over binary data. The repair reads the file object by object, keeps everything still parseable and writes a fresh document with a correct index around it. What it cannot do is invent bytes that are not there: a truncated download stays truncated.

Keep going