Base64 to PDF

Convert a Base64 encoded string back into a downloadable PDF file.

About this tool

A Base64 to PDF converter: paste a Base64 string that represents PDF data and download it as a real .pdf file. It is useful when an API response, a database field or a log contains a document as Base64 text and you need to open it. A data URI prefix is accepted, and decoding happens in your browser.

How to use it

  1. Paste the Base64 string into the input box (with or without a data: URI prefix).
  2. The tool decodes it and offers a preview or direct download.
  3. Download the reconstructed PDF file.

FAQ

What if the decoded file isn't a valid PDF?

The tool will still attempt the download, but if the original Base64 wasn't actually PDF data (or was corrupted/truncated), the resulting file won't open correctly in a PDF viewer.

Does it work with data: URI prefixes like data:application/pdf;base64,...?

Yes, the tool strips a data URI prefix if present before decoding.

How do I go the other way, from PDF to Base64?

Use PDF to Base64: upload the file and copy the encoded string, which is about a third longer than the original file. The two tools are a round trip, so you can check an encoding by decoding it here.

Related tools

Guides & comparisons

← All tools · File Utilities · Blog · Cheat sheets · FAQ