Base64 to PDF
Paste Base64 text and open it as a PDF you can read and download.
Paste a Base64 string and click Decode to see the PDF.
How Base64 to PDF works
Decodes Base64 text into a PDF you can read and download. Paste the text and click Decode.
The decoded bytes are checked first. A real PDF file starts with %PDF, so other data gets a clear message instead of a broken file.
Input to Base64 to PDF
- Paste the Base64 text of a PDF. Click Sample to try an example.
- Raw Base64 (like JVBERi0...), data URLs (like data:application/pdf;base64,...) and URL-safe Base64 with - and _ all work.
- Spaces and line breaks are removed, and missing = padding is added for you.
- Up to 20MB of text. Everything runs in your browser, so your data never leaves your computer.
Output from Base64 to PDF
- A preview of the PDF inside the page, with its file size.
- On a phone, or if the preview does not load, you can open the PDF in a new tab.
- Download asks for a file name and saves it as a .pdf file.