Repair PDF

Repair PDF tries to fix PDFs that won't open, show errors or display blank pages. It rebuilds the file's internal structure to keep text and quality, and if that isn't possible it recovers every readable page as an image. You'll see what was wrong and how many pages came back — and the file never leaves your browser.

Common problems

SymptomLikely cause
'File is damaged'Broken cross-reference table
Opens with blank pagesMissing or invalid page objects
Won't open at allTruncated download
Fails after emailExtra bytes before %PDF

When to use it

  1. Open a PDF that shows a 'damaged file' error.
  2. Recover pages from an incomplete download.
  3. Fix a PDF saved with junk before the header.
  4. Rescue a document from a failing export.

How to Use

  1. Drop the damaged PDFs.
  2. Click Process.
  3. Download the repaired files and read what was fixed.

Features

  1. Structure rebuild
  2. Junk-header removal
  3. Truncation detection
  4. Image-based page recovery fallback
  5. Batch
  6. 100% client-side

FAQs

Can every PDF be repaired?

Not always. Badly truncated or encrypted files may only partly recover.

Will the text stay selectable?

Yes if the structure can be rebuilt; if pages are recovered as images, text becomes part of the picture.

What causes PDF corruption?

Interrupted downloads, failed saves, email encoding problems and disk errors.

Can I repair several files?

Yes. Drop them together.

Is my PDF uploaded?

No. Repair happens in your browser.

Technical Details

Repair first diagnoses the file: bytes before the %PDF header (common when a PDF is saved from an email or web page) are removed, and a missing %%EOF marker or cross-reference table is noted as a sign of truncation. It then opens the PDF with pdf-lib in a lenient mode that skips invalid objects, copies every readable page into a fresh document and saves it with a newly built cross-reference table — this keeps text, fonts and vector graphics intact. If the structure is too damaged for that, it falls back to pdf.js, which tolerates far more corruption: each page it can read is rendered at 144 DPI and placed into a new PDF as an image, so the content survives even though text is no longer selectable. The result says which method was used and how many pages were recovered.

PDF Tools

PDF Tools

  • Base64 to PDF
  • PDF to Image
  • PDF Text Extractor
  • PDF OCR
  • PDF to Word
  • PDF Merge
  • PDF Split
  • PDF Compressor