Base64 to PDF Decoder

Convert Base64 encoded data back into viewable PDF documents instantly.

Cleared

Paste Base64 data and click 'Decode' to preview PDF.

Base64 to PDF Decoding

What is Base64 PDF Decoding?

Base64 PDF decoding converts a Base64 encoded string back into its original PDF document. This tool validates the data, detects the PDF format using magic bytes, and displays the decoded document in your browser.

What input formats are accepted?

You can use:

  • Raw Base64 — Just the encoded data (e.g., JVBERi0...)
  • Data URL — Complete data URL format (e.g., data:application/pdf;base64,JVBERi0...)
  • URL-safe Base64 — Base64 with - and _ characters

How does PDF detection work?

PDF files always start with the magic bytes %PDF (hex: 25 50 44 46). This tool checks for this signature to ensure the decoded data is actually a PDF document.

Is there a size limit?

Yes, there is a size limit to ensure optimal performance. Very large PDFs may take longer to decode and display.

Is my data secure?

Your data never leaves your browser. All decoding happens locally on your device using JavaScript — nothing is uploaded to any server.