Encoding converters
Base64 to PDF
Convert Base64 to PDF online: paste the string, see the document preview and page count, then download it as a .pdf — entirely in your browser, no uploads and no servers.
Paste the Base64 of a PDF — from an API response, an email attachment or a database blob — and get the document back: an inline preview, the page count, the exact file size and a one-click download with the right .pdf extension. The %PDF header and structure are verified before anything renders, and the entire conversion runs locally in your browser.
How to use
Base64 to PDF, step by step
- 01
Paste the Base64 string — a data:application/pdf;base64,… URI works too, the prefix is stripped automatically. Decoding happens live as you paste.
- 02
Check the detected type, page count and size in the result card. If the bytes are not a real PDF, you get a precise error instead of a broken viewer.
- 03
Read the document in the inline preview, then hit the Download button — the page and pixel counts in the totals card tell you exactly what you got before you save.
FAQ
Frequently asked questions
No. Decoding, previewing and downloading all happen inside your browser with JavaScript — the Base64 never touches a server. You can disconnect from the internet after the page loads and the tool keeps working.
The most common causes: the Base64 was truncated during copy-paste (check the character count), the value uses the URL-safe alphabet (handled automatically here), or it is actually hex or quoted-printable, not Base64. Turning on lenient mode drops stray punctuation and whitespace that often sneaks in when Base64 is embedded in emails or logs.
It parses the decoded bytes for page objects, which covers standard, well-formed PDFs. Heavily obfuscated or linearized files with unusual object layouts may report an approximate count — the preview always tells the truth.
Base64 adds about 33% overhead: every 3 bytes become 4 characters. A 100,000-character Base64 string decodes to roughly 75 KB of actual PDF. The download is always the original binary — byte for byte.
No server-side limit exists because nothing is uploaded. The practical ceiling is your device memory — multi-megabyte PDFs decode in a fraction of a second on any modern machine.
Yes. URL-safe Base64 (with “-” and “_”) is auto-detected, missing “=” padding is repaired, and whitespace or line breaks inside the string are ignored.
Related tools