Base64 to PDF Converter
Turn a Base64 string back into a PDF, preview it, then download.
Your files are processed on your device and are never uploaded.
Turn a Base64 string back into a PDF file. Paste the string from an API response, database or email, check the preview, and download the PDF.
Decoding runs in your browser, so the file inside the string never touches a server.
How to Convert Base64 to PDF
- Paste your Base64: Use Ctrl+V or the Paste button. A full data URI or just the plain string both work.
- Click Convert: The string is cleaned up and decoded.
- Check the result: You see a preview, the detected type and the file size.
- Download: Save the PDF with the matching extension. Press Clear to start again.
Messy Strings Are Fixed for You
Base64 copied from logs, JSON, emails or URLs often has extra bits. The tool removes the data:…;base64, prefix, strips line breaks and spaces, converts URL-safe characters back, and corrects the = padding. A note lists what was changed. If the string cannot be decoded – for example because it is cut off – you get a clear explanation instead of a broken file.
How to Recognise What a String Holds
A Base64 PDF always starts with JVBERi0, which is %PDF- encoded. If your string starts with something else, it holds a different kind of file – the tool will tell you which.
Where Base64 PDFs Come From
E-signature services, invoice and e-filing APIs, payment gateways and document databases often return PDFs as a Base64 field in JSON. Copy just the value between the quotes – without the field name – and paste it here. Escaped slashes such as \/ from some JSON encoders should be turned back into / first.
Free, Private, No Upload
There is no sign-up and no limit on how many strings you decode. Because nothing is uploaded, it is safe for invoices, ID documents and other private files.
Base64 to Image Base64 to File Validator & Repair Base64 to Text Image to Base64 PDF to Base64
Frequently Asked Questions
How do I convert Base64 to PDF?
Do I need the data:…;base64, prefix?
Why do I get an error when decoding?
How do I know if a string is a PDF?
JVBERi0. If yours starts differently, the tool tells you what kind of file it really is.