Base64 to PDF
Paste any Base64 string and download the original PDF — instantly, privately, in your browser.
Drop a file here or click to browse
Any file type — converted to Base64 locally
Real PDF download
Get a proper .pdf file ready to open in any PDF reader.
Instant decode
Decoding starts as soon as you paste — no waiting, no uploads.
Private by design
PDFs are decoded locally — never uploaded or stored.
Why is my PDF Base64?
APIs, email attachments (MIME), database BLOBs, and signed-document services frequently return PDFs as Base64 strings so the binary file can travel safely through JSON or text-only channels. To open or store the PDF you have to decode the Base64 back to its original bytes.
Going the other way? Use the PDF to Base64 tool.
Frequently asked questions
›How do I convert Base64 to a PDF file?
Paste your Base64 string into the tool above and switch to Decode. The PDF is reconstructed locally and you get a download link for the original .pdf file.
›Can I paste a data:application/pdf;base64,… URL?
Yes. The prefix is stripped automatically before decoding, so you can paste the entire data URL directly.
›Is my PDF uploaded?
No. Decoding runs entirely in your browser using the built-in atob API. The Base64 string and the resulting PDF never leave your device — safe for invoices, contracts, and confidential documents.
›The PDF won't open — what's wrong?
Make sure you've copied the full Base64 payload (PDFs are large and easy to truncate), removed any surrounding JSON quoting or escape characters, and stripped any data: URL prefix. Corrupted or partial Base64 produces a broken PDF.
›What's the maximum PDF size?
There's no server limit because nothing is uploaded. Browsers handle Base64 strings up to ~50–100 MB comfortably. For very large PDFs, performance depends on your device's available memory.
More free developer tools
Part of our growing tool belt — all client-side, all free.