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.

Base64 to PDF Converter with ShrinkBee

Decoding runs in your browser, so the file inside the string never touches a server.

How to Convert Base64 to PDF

  1. Paste your Base64: Use Ctrl+V or the Paste button. A full data URI or just the plain string both work.
  2. Click Convert: The string is cleaned up and decoded.
  3. Check the result: You see a preview, the detected type and the file size.
  4. 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?
Paste the Base64 string or data URI into the box and click Convert. Check the preview and click Download to save a PDF.
Do I need the data:…;base64, prefix?
No. Both a full data URI and the plain Base64 string work. The prefix is removed automatically.
Why do I get an error when decoding?
The string may be cut off, contain characters that are not Base64, or include extra text such as JSON quotes or a field name. Copy only the encoded value. The Base64 Validator shows exactly what is wrong.
How do I know if a string is a PDF?
A Base64 PDF starts with JVBERi0. If yours starts differently, the tool tells you what kind of file it really is.
The PDF asks for a password. Why?
The original PDF was password protected, and decoding does not change that. Use Remove PDF Password if you know the password.
Is my data uploaded anywhere?
No. The string is decoded in your browser, and the file is created on your own device.
Is Base64 to PDF free to use?
Yes. Base64 to PDF is completely free, with no sign-up, no watermark and no limit on how many times you use it.
Are my files uploaded to a server?
No. Your files are processed directly in your web browser on your own device. Nothing is uploaded or stored, and the file is gone from memory when you close the tab.

More Base64 Tools

Made With ♥ By ShrinkBee