IT Market
Tools/Code/Documents/Base64 to PDF Online — View and Download
BASE64 → PDF

Декодируйте Base64 в PDF

Tool guide

Base64 to PDF Online — View and Download

Accounting APIs, banking back-ends and document-exchange systems often return an invoice or a signed act as a long Base64 string inside JSON rather than as a file. This page turns that string back into a PDF and renders it in an inline preview, so you can read the document before it touches your disk, then save it with the download button. Decoding happens inside the tab, so the paperwork is not relayed through anyone's server. See also: get a Base64 string out of a file again, save Base64 as a file of any type, split the resulting PDF into page images.

How to use it

  1. Copy the Base64 string of the invoice, act or receipt out of the API response, email or log.
  2. Paste it into the Base64 input box — a data:application/pdf;base64, prefix can stay in place.
  3. Press Decode and the document opens in the preview pane without being written to disk.
  4. Page through the preview and confirm the PDF is complete rather than cut off part-way.
  5. Press Download PDF to save the document into your downloads folder for filing.

FAQ

The preview stays blank although I pasted the string — why?

Check how the string starts. A real PDF begins with the %PDF signature, which in Base64 looks like JVBERi. A different opening means the payload is not a PDF at all. The other common cause is a truncated copy from a console, where long values are shortened with an ellipsis — take the value from the raw response instead.

How large a document can the browser handle?

Invoices of a few hundred kilobytes open instantly. Multi-page scans of tens of megabytes are heavy: the string is about a third bigger than the file, and the text, the decoded bytes and the rendered preview all sit in the tab at once. If it stalls, download the file and open it in a desktop reader.

Can it open a password-protected PDF?

Decoding does not remove protection — you get back exactly the same encrypted document. The preview hands the file to the browser's built-in viewer, which will prompt for the password if it supports doing so. Printing and copying restrictions baked into the document survive unchanged.

Does the invoice content reach a server?

No. The string is decoded by the page's own script, and both the preview and the download are served from a temporary object that exists only in your tab. Nothing is transmitted, so contracts and payment documents can be opened without publishing them to an outside service.

What language are the buttons on this page in?

The same one the page is open in. On the English version the field reads Base64 Input and the buttons read Decode and Download PDF; the Russian version labels the very same controls in Russian. The tool's interface used to be English regardless of the site language, which is why older write-ups quote English captions. The steps above use exactly the captions you will see on screen.

How do I turn a PDF back into Base64?

Use the File to Base64 page for the opposite direction: choose the PDF in the file picker and you get the string to embed in JSON or an email body. The pair is handy when debugging an integration and you need to compare the string sent against the string received.

Examples

Invoice returned by an accounting API
Before: {"docType": "invoice", "file": "JVBERi0xLjQKJcfsj6IKNSAwIG9iago8PC9MZW5ndGggNiAwIFI..."}
After: A two-page invoice in the preview pane and a saved copy in downloads
Receipt pasted with its data URL prefix
Before: data:application/pdf;base64,JVBERi0xLjcKJeLjz9MKMSAwIG9iago8PC9UeXBlL0NhdGFsb2c...
After: A single-page receipt opening in the browser's built-in viewer