PDF ⇄ Base64

Encode a PDF to Base64 or paste Base64 to download and preview the PDF. Data URI, HTML embed, and JSON snippets with URL-safe and MIME wrap options.

PrivateIn your browserInstant10/day free5 MB max

Free plan max file size: 5 MB.

Valid PDF · 329 bytes · 440 Base64 chars
Valid PDF preview appears here.

Runs in your browser. Nothing is uploaded.

How it works

1

Encode a PDF

Drop a PDF up to 5 MB. Choose Plain Base64, Data URI, HTML embed, or JSON. Optional URL-safe alphabet and 76-character MIME wrap for Plain.

2

Preview in the browser

When the payload starts with %PDF-, the right panel shows an embedded preview. Stats confirm size and Base64 length.

3

Decode to a file

Paste Base64, a data URI, or JSON from this tool. Download restores the PDF locally — nothing is uploaded.

What is PDF ⇄ Base64?

APIs and forms sometimes need a PDF as a Base64 string. This page encodes and decodes those strings locally, validates the %PDF header, and can preview the result — Easy24 does not receive what you drop or paste.

Why use this tool

  • PDF → Base64 in the browser
  • Live PDF preview for valid payloads
  • Data URI, HTML embed, and JSON exports
  • URL-safe Base64 and MIME line wrap
  • %PDF header validation
  • Free plan: 10 uses per day, 5 MB max

Questions

What does PDF ⇄ Base64 do?

It turns a PDF into Base64 (and common embed snippets) or turns Base64 back into a downloadable PDF with an in-browser preview.

Why does preview say invalid?

The tool checks for the %PDF- magic bytes. If Base64 decodes but is not a PDF, you still see the size warning — fix the payload or use File ⇄ Base64 for other types.

Are my PDFs uploaded?

No. Encoding, decoding, and preview run in this tab. Easy24 never receives the file.

Is there a daily limit?

Yes. The free plan allows 10 encode/download uses per day, with files up to 5 MB. The counter sits above the workspace.

Do I need an account?

No. Open the tool and use it. An account is only for Pro later.

Does it work on a phone?

Yes for encode/decode. PDF iframe preview depends on the mobile browser; you can always download the file.

When should I use File ⇄ Base64 instead?

Use File ⇄ Base64 for non-PDF files. This tool is focused on PDFs with header checks and preview.

If Easy24 helped, buy a coffee

Tools stay free in your browser. One-time thanks via Kreosus. Turkish cards work.

Buy a coffee

Similar Convert tools

See all