Repair PDF Online: Fix Corrupted PDF Files | MiConvert

Repair a Corrupted PDF Online

Upload a PDF that won't open or shows errors, and we rebuild its internal structure into a new, readable PDF. Repair can only restore what is still in the file: pages or details stored in a missing part cannot be brought back.

🔧

Drop your file here

or click to browse

Select File

Max 1 files, 50MB each

SSL Encrypted Auto-deleted No Sign Up 100% Free
PDF → PDF

Why a PDF breaks, and what repair can do about it

A PDF is not read from top to bottom like a text file. Near its end sits a cross-reference table that tells a reader the exact byte position of every page, font and image. When a download stops early, an app crashes mid-save, or a USB stick or failing drive corrupts a few blocks, that table points to the wrong places or disappears along with the end of the file.

MiConvert rebuilds the file on our servers with three open-source PDF engines, tried in order. qpdf goes first and rewrites the document as a linearized PDF. If qpdf fails, or has to patch problems along the way, the file is handed to MuPDF's mutool clean, which reconstructs the object list and drops unreachable leftovers. As a last resort, Ghostscript reads whatever pages it can interpret and writes a completely new PDF. The first engine that finishes without an error and writes a non-empty file wins, and that file is what you download.

What comes back depends on what is still inside the file. In our tests, a PDF with a broken pointer to its cross-reference table was restored with all of its pages, bookmarks and links. A three-page test PDF cut off halfway came back with its three pages but without its document title, because that information was stored in the missing half. Files made of random bytes or plain text could not be repaired at all. Repair rebuilds structure; it cannot recreate pages, images or text that were never saved. Because the whole file is rewritten, any existing digital signature will no longer validate, and the result is a regular PDF, not PDF/A.

Repair is the first stop when another PDF tool, such as split, rotate or watermark, rejects a file with "Failed to parse PDF document" and "invalid PDF object". Run the file through repair, then try that tool again with the repaired copy. If you searched for a plain PDF to PDF converter, note that a healthy file passes through qpdf and comes back as a linearized (fast web view) copy.

How to repair a damaged PDF

  1. 1

    Before uploading, try to get a fresh copy: download the file again or ask the sender to resend it. Repair can rebuild a broken structure, but it cannot add back bytes that never arrived.

  2. 2

    If the PDF asks for a password just to open it, remove that password first with our PDF password removal tool, entering the password there. Repair rejects files that need an open password.

  3. 3

    Upload one .pdf file. The limit is 50 MB per file as a guest, 100 MB when signed in on the free plan, 200 MB on Plus and 1 GB on Pro.

  4. 4

    Start the repair and wait for the download button. Processing time depends on the file's size and how badly it is damaged.

  5. 5

    Download the repaired PDF and open it. Check the page count, bookmarks and document title, since a truncated original can come back with its pages but without some of its details.

  6. 6

    If you see "PDF repair failed — all strategies exhausted", confirm the file really is a PDF and try a different copy. That message means none of the three engines found enough to rebuild.

What the repair tool does

  • If one engine cannot read the file, two others still get a turn, each rebuilding the PDF in a different way.
  • Rebuilds broken or misplaced cross-reference tables, which otherwise stop viewers from finding the pages.
  • Recovers the pages that survive in a truncated file, such as one from an interrupted download.
  • Keeps bookmarks and links on recoverable files, and keeps fillable form fields when qpdf or MuPDF does the repair.
  • Returns a linearized PDF when qpdf succeeds, so the file can start displaying in a browser before it has fully loaded.
  • Ends with a clear error message, rather than an empty file, when none of the three engines can rebuild the PDF.

Repair PDF questions

Is this a PDF to PDF converter? ▼

In a narrow sense, yes: you upload a PDF and get a rewritten PDF back, and a healthy file comes out as a linearized copy with the same content. It will not create a PDF/A archive, make scanned pages searchable with OCR, or turn a flat PDF into an editable or fillable one. For archiving, use our PDF to PDF/A converter. To shrink or combine files, use Compress PDF or Merge PDF.

What does "PDF repair failed — all strategies exhausted" mean? ▼

All three engines gave up. The usual causes are a file that is not a PDF at all, for example a Word document or a web error page saved with a .pdf extension, or a file where too little of the PDF survives. Open the file in a text editor: a real PDF starts with %PDF. If yours does not, find the original file. Failed repairs are retried automatically, so this message can take a little longer to appear than a successful repair takes to finish.

Why do I get "This PDF is password-protected"? ▼

The file needs a password to open, and repair cannot read an encrypted document. Remove the password first with our PDF password removal tool, entering that password, then repair the decrypted copy. This step cannot be skipped without the password.

What does "Unsupported PDF operation "convert"" mean? ▼

The request asked for a PDF operation called "convert", which does not exist: each PDF tool needs a specific operation such as repair, compress or split. This comes from external scripts or API calls, not from the upload box on this page. Upload the file here and the request will name the repair operation.

Will bookmarks, form fields and signatures survive? ▼

On recoverable files, bookmarks and links came through in our tests, and fillable form fields stay fillable when qpdf or MuPDF produces the result. Whether form fields survive the last-resort Ghostscript step has not been tested. Digital signatures are different: repair rewrites the entire file, so any existing cryptographic signature will no longer validate.

Will repairing make my PDF smaller? ▼

Repair does not aim to reduce file size and has no compression settings. If the last-resort Ghostscript step produces the result, very high-resolution images (above about 450 ppi) can be downsampled to 300 ppi. If you want a smaller file, repair it first if needed, then run the repaired copy through Compress PDF.

What happens to my file after the repair? ▼

Your PDF travels over HTTPS to our servers, where the repair runs. The upload is deleted as soon as the job's last attempt ends. The repaired file can be downloaded for about 4 hours, then it is deleted automatically. The download link is a long random token that works for anyone who has it until it expires, so share it with care. File names and basic job details such as size and outcome are logged.