Base64 to a document
Base64 to PDF Converter
Paste Base64 that holds a PDF and save it back as a .pdf document. The string is decoded locally, then a PDF is built entirely in your browser.
Your image appears here
Nothing is uploaded. Decoding happens on this device.
- 100% in your browser — no uploads
- No sign-up, no watermark, no quota
- Works offline once the page has loaded
How it works
Paste the Base64
Drop in raw Base64 or a
data:application/pdf;base64,URL. Wrappers and line breaks are cleaned up.Preview the page
The bytes are decoded and the embedded image or document is rendered so you can check the result.
Save the PDF
Click Make PDF to build a .pdf file with pdf-lib and download it without any server round trip.
How Base64 to PDF works
PDF files are often transported as Base64 inside JSON APIs, email attachments and database records. This tool decodes that text back to the original bytes and packages them into a valid PDF.
The PDF is assembled in the browser with the pdf-lib library, which runs entirely on your device. Your document is never uploaded or stored.
Frequently asked questions
How do I convert Base64 to a PDF?
Paste the Base64 string or data URL and click Make PDF. The decoded document is saved as a .pdf file.
Is my document uploaded?
No. Decoding and PDF creation both run in your browser with pdf-lib, so the content stays on your device.
What if my Base64 is an image, not a PDF?
The tool first decodes the data and shows the image. If it is a picture, use the Image to PDF tool instead, which places it on a PDF page.
Does the PDF keep its original quality?
Yes. When the Base64 already contains a PDF, decoding restores the exact original file byte for byte.