PDF to Base64 Converter

Convert PDF Files to Base64 or Decode Them Back

Encode one or more PDF files as raw Base64, a PDF Data URL, MIME-wrapped text, or an iframe snippet. The Decode tab accepts supported Base64 input and turns it back into a downloadable PDF.

Key Features

  • Batch encoding for selected or dropped PDF files
  • Raw Base64, PDF Data URL, 76-character MIME wrapping, and iframe outputs
  • Copy and text-file download controls for each encoded result
  • Decode raw, MIME-wrapped, or Data URL input back into a PDF

How to Use This Tool

  1. In the Encode tab, select one or more PDFs and choose the required output format.
  2. Copy the generated text or download it as a text file for each PDF.
  3. To reverse the process, open Decode, paste compatible Base64 or a PDF Data URL, and download the PDF.

Important to Know

  • Base64 is an encoding, not encryption, and does not make a PDF confidential.
  • Base64 output is normally about one-third larger than the original binary file.
  • The current file limit is 50 MB per PDF; very large encoded strings can still use substantial browser memory.

Frequently Asked Questions

What PDF to Base64 formats can I generate?

Choose a PDF Data URL, raw Base64, MIME-wrapped Base64 with 76-character lines, or an HTML iframe snippet that embeds the Data URL.

Can I convert more than one PDF at a time?

Yes. Select or drop multiple PDF files; each file gets its own Base64 result with copy and text-download controls.

Can I decode Base64 back into a PDF?

Yes. Paste raw Base64, MIME-wrapped Base64, or a PDF Data URL in the Decode tab to download the decoded PDF.

What is the difference between a Data URL and raw Base64?

A Data URL starts with a media-type prefix such as data:application/pdf;base64,. Raw Base64 contains only the encoded file data.

Why is the Base64 result larger than the PDF file?

Base64 represents binary bytes as text, so its encoded output is normally about one-third larger than the original file.