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.
Free plan max file size: 5 MB.
Runs in your browser. Nothing is uploaded.
How it works
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.
Preview in the browser
When the payload starts with %PDF-, the right panel shows an embedded preview. Stats confirm size and Base64 length.
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.
Similar Convert tools
See allBase64 Encode / Decode
Convert
Encode and decode UTF-8 text as Base64 or Base64URL. Live conversion, MIME line wrap, byte stats, and hex view — entirely in the browser.
OpenFile ⇄ Base64
Convert
Encode any file to Base64, Data URI, HTML, CSS, JSON, XML, or Markdown — or paste Base64 to download the file. URL-safe and MIME wrap options. Runs in this tab.
OpenImage ⇄ Base64
Convert
Convert images to Base64 or data URLs and decode them back. Live preview, HTML/CSS/Markdown snippets, MIME and pixel size — nothing uploaded.
Open