filetity
Paste base64 or a data URL
LocalThis runs in your browser. Nothing you paste is sent anywhere.

BASE64 -> PDF · Local tool

Base64 to PDF

Paste base64 or a data URL and get the PDF back, previewed.

Last updated

How do I turn base64 back into a PDF?

Paste the base64 into filetity and the PDF is decoded in the browser tab and shown in your browser's own PDF viewer before you save it. Nothing is uploaded, which matters because a base64 PDF out of an API is usually an invoice, a statement or a signed agreement. It takes a bare payload or a complete data: URL, in either alphabet, and strips the line breaks a copy out of a terminal or a JSON file leaves behind. The decoded bytes are checked for the %PDF- header that begins every PDF, so a payload that turns out to be something else is named rather than saved as a document nothing will open, and a truncated payload is reported instead of producing a file with pages missing.

  1. 01 / Your device

    the file stays here

  2. 02 / Browser memory

    the work runs locally

  3. 03 / Back to you

    saved on this device

When you would use this

Situations, not settings.

A PDF that arrived inside an API response
Invoices, reports and signed documents travel as base64 because JSON carries text and nothing else. Paste the field and see the document.
A base64 blob in a log you need to look at
The %PDF- header is checked before anything is saved, so a payload that turns out to be something else is named rather than written to disk.
Checking a document before it reaches your machine
It renders in your browser's own PDF viewer on the page, so you see it before you decide to keep it.

How it works / no cloud

A conversion engine, not an upload form.

The payload is decoded in the page and checked for the %PDF- header that begins every PDF file, so a payload that is not one is reported rather than saved as a document nothing can open. The result is previewed in your browser's own PDF viewer before you save it.

  • Offline ready
  • Installable app
  • No file limit queue

Straight answers

No accordion. Nothing hidden.

Is it free?
Yes, with no watermark and no page limit.
Does it need an account?
No. There is no account system.
Is my file processed on my device?
Yes. The file is read by your browser and never uploaded. There is no server to send it to.
What formats are supported?
Base64 in, with or without a data: prefix, in the standard or URL-safe alphabet. PDF out.
What are the limits?
Held in memory, so a very large payload is limited by the browser. A payload that decodes to something other than a PDF is named rather than saved.
Does it work on mobile?
Yes, on any modern mobile browser. Large files are limited by the memory the phone gives the browser.
Does it work offline?
Yes, once the page has loaded. The tool keeps working with no network connection.
Why does an API give me a PDF as base64 at all?
Because JSON carries text and nothing else. A generated invoice, report or signed document has to become text to travel inside a JSON field, and base64 is the standard way to do that. What you are pasting is the file, spelled out in 64 characters.
How do I know it is really a PDF before I save it?
The decoded bytes are checked for the %PDF- header that begins every PDF file, and the result is rendered in your browser's PDF viewer on this page. So you see the document before it reaches your disk rather than finding out afterwards.
Does the data: prefix need to be there?
No. Paste the bare payload or the whole data URL, whichever you copied, and the line breaks that a terminal or a JSON file leaves in are stripped. What is decoded is the payload, and where it came from makes no difference.
Is the PDF uploaded to preview it?
No. It is turned into a local object in your browser and handed to the viewer that is already built into it. Nothing crosses the network, which matters because a base64 PDF from an API is usually an invoice, a statement or a signed agreement.
What if my base64 is truncated?
You get told, rather than getting a file. Base64 has a length that must be a multiple of four once padding is counted, so a copy that missed the end fails to decode and the page says so. A PDF that decodes but was cut short will open with its pages missing, which the preview shows you.

Keep working locally

3 available · more coming