Skip to content
Convertto

Base64 to PDF Converter

Decode a Base64 string into a real, downloadable PDF file.

To convert Base64 to a PDF, paste the encoded string and it is decoded into real bytes and offered as a downloadable file. A `data:application/pdf;base64,` prefix, line breaks and URL-safe characters are all handled. The header is checked, so if the data decodes to something that is not a PDF you are told rather than handed a file that will not open.

Runs in your browser
Privacy
Runs entirely in your browser — nothing is uploaded
Cost
Free, unlimited, no sign-up

Frequently asked questions

My string will not decode.

Base64 must be a multiple of four characters and padded with "=". The usual cause is a copy that was truncated or wrapped by an email client. URL-safe variants using "-" and "_" are converted automatically.

How to use the base64 to pdf converter

  1. 1Enter or paste your base64 data.
  2. 2Press Run, then download the result when it is ready.

Sources & specifications

Embed this tool

Put the working base64 to pdf converter on your own site. It runs in your visitors' browsers exactly as it does here — free, no account, nothing uploaded.

Share this tool

Last updated

More encoders & decoders