Handitab

Base64 to PDF

Decode a Base64 string or data URI back into a PDF file, check that it starts with a valid PDF header, and download the document.

About Base64 to PDF

A Base64 to PDF decoder converts Base64 text back into the binary PDF file it encodes. This tool strips an optional data:application/pdf;base64 prefix, decodes the rest, and checks that the result begins with the %PDF signature every PDF file starts with. If it does, the bytes are offered as a download, unchanged. The tool does not open or validate the document beyond that header check.

Also known as: Base64 to PDF Converter, Base64 to PDF Decoder.

How to use Base64 to PDF

  1. Type or paste into the "Base64 of a PDF file" box.
  2. The result appears below and updates as you type.
  3. Copy the result with the copy button, or download it as a file where that is offered.

Questions about Base64 to PDF

Why does it say the decoded result is not a PDF?

The decoded bytes did not begin with %PDF. The Base64 may belong to another file type, may be cut off at the start, or may still be wrapped in JSON quotes or extra text. Paste only the Base64 string itself.

Runs in your browser. Page last updated .

More pdf tools

All 10 pdf tools