Tools
EN

Base64 to PDF Converter

Paste the Base64 code of a PDF, with or without the data:application/pdf;base64, prefix, to preview and download the document.

Private: your data is processed in your browser and never uploaded.

How to convert Base64 to PDF

  1. Paste the Base64 string of your PDF into the box or open a .txt file that contains it.
  2. The PDF is decoded and shown in the preview. Use Open in new tab for a full-screen view.
  3. Click Download to save the PDF file to your device.

Where do Base64 PDFs come from?

Many APIs return documents such as invoices, shipping labels, tickets and signed contracts as Base64 inside JSON or XML. Email attachments are also Base64 encoded. Copy the value of that field and paste it here to get the original PDF back.

Quick check: does it start with JVBERi0?

Every PDF file begins with %PDF-, which is JVBERi0 in Base64. If your string starts differently, it is either not a PDF or it is wrapped in another format, for example encoded twice.

Frequently asked questions

Why does the downloaded PDF not open?

Usually the Base64 string was cut off when copying, or extra characters such as quotes or \n sequences were included. Make sure you copy the complete value.

Is my document uploaded anywhere?

No. The PDF is decoded locally in your browser, which makes the tool safe for confidential invoices and contracts.

What does JVBERi0 mean?

It is the Base64 encoding of %PDF-, the signature that starts every PDF file. Seeing it is a good sign that the string contains a PDF.