Base64 to PDF
Paste a Base64 string or a data:application/pdf;base64, URI below and click Decode Base64 to PDF. The decoder checks the file signature, shows a preview and lets you download the result as a real .pdf file.
How to convert Base64 to PDF online
- Paste the Base64 value into the input box. Data URIs, whitespace and line breaks are handled automatically.
- Press Decode Base64 to PDF.
- Check the preview and the detected file type, dimensions and size.
- Click Download to save the .pdf file.
Important notes about the decoder
- The decoder detects the real file type from the decoded bytes (magic number). If your string is not actually PDF, you will see the real type and can still download it.
- Invalid characters are reported instead of silently producing a broken file. If decoding fails, try the Base64 repair tool.
- Nothing is uploaded: the data is decoded locally by your browser, so even confidential documents stay on your device.
About PDF
PDF, created by Adobe in 1993 and standardised as ISO 32000, describes a fixed-layout document with text, fonts, vector graphics and images that looks the same on every device.
APIs often send PDFs (invoices, labels, reports) as Base64 strings inside JSON. Every PDF encoded to Base64 begins with "JVBERi0", the encoded form of the "%PDF-" header.
| Developed | 1993, Adobe (ISO 32000) |
|---|---|
| Type | Fixed-layout document |
| Can contain | Text, fonts, images, forms |
| Browser support | Built-in viewer in all browsers |
| File signature | 25 50 44 46 ("%PDF") |
Frequently asked questions
How do I convert Base64 to PDF?
Paste the Base64 string into the box above and click "Decode Base64 to PDF". You can preview the result and download it as a .pdf file.
Why is my Base64 PDF not displaying?
Usually the string is truncated, contains URL-safe characters, or was double-encoded. The decoder reports the exact problem; the Base64 repair tool can fix most of them automatically.
Do I need to remove the data URI prefix?
No. The decoder strips "data:...;base64," automatically and uses the MIME type from it as a hint.
Comments (0)
Questions, ideas or a bug in “Base64 to PDF”? Leave a comment, rate the tool, or reply to others.
No comments yet. Be the first to share your feedback!