Base64

Base64 to PDF Converter

Paste a Base64-encoded PDF — from an API response, a database or an email — and get the PDF file back.

A full data URI (data:…;base64,…), line breaks and URL-safe Base64 are all fine.

How to convert Base64 to PDF

  1. Paste the Base64 string (with or without the data: prefix).
  2. Press Convert to PDF.
  3. Preview the PDF and download it.
  • The decoded data is checked to make sure it really is a PDF.
  • To go the other way, use the PDF to Base64 tool.

Base64 to PDF: frequently asked questions

How do I convert Base64 to PDF?

Paste the Base64 string and press Convert to PDF. Preview the document and download it.

Can I paste a data URI?

Yes. Strings starting with data:application/pdf;base64, work, as do strings with line breaks or URL-safe characters.

Why does it say the result is not a PDF?

The Base64 decoded correctly but the data is not a PDF file. It may be an image or other file; try the Base64 to Image tool.

More Base64 tools