Base64 ↔ PDF Converter

Decode Base64 strings into PDF previews/files or encode PDFs to Base64.

Base64 → PDF

PDF → Base64

Drop a PDF file here or click to encode

About Base64 ↔ PDF

Decode Base64 strings into viewable and downloadable PDF documents or encode local PDF files into raw Base64 and Data URIs.

Key Capabilities

  • Decodes raw Base64 or data:application/pdf;base64,... URIs into an inline PDF viewer.
  • Encodes PDF files into Base64 locally in your browser without uploading.
  • Validates %PDF magic bytes to catch truncated or invalid payloads.

Frequently Asked Questions

Does it accept Base64 strings with a data:application/pdf prefix?

Yes. Both raw Base64 payloads and full Data URI strings are stripped and decoded cleanly.

How does PDF to Base64 work?

Select or drop any PDF file in the right panel to encode it locally via the browser FileReader API.