Base64 to PDF
Runs locally
Paste a Base64-encoded PDF (with or without a data: URI prefix) to decode it, preview it right here, and download the original file — all in your browser.
0 / 20,000,000
Your data is processed locally in your browser and is not uploaded.
Learn more about this tool⌄
How it works
The Base64 is decoded to raw bytes locally, checked for the PDF file signature (%PDF-), then shown in an inline preview and made available to download. Nothing is uploaded to a server.
Common use cases
- Recovering a PDF from a Base64 string found in an API response or database field
- Previewing a Base64-encoded PDF attachment from an email or webhook payload
- Verifying a Base64 blob is actually a valid PDF before using it elsewhere
Frequently asked questions
- Does this upload my PDF anywhere?
- No. Decoding, validation, and the preview all happen locally in your browser — the file is never sent to a server.
- What if the decoded data isn't a PDF?
- You'll get a clear error rather than a broken preview — the tool checks that the decoded bytes start with the standard PDF file signature.
- Does it work with a full data: URI, not just raw Base64?
- Yes — a data:application/pdf;base64,... prefix is detected and stripped automatically.