DinoConvert › Base64 to PDF
Decode Base64 to PDF, Image or Any File - Free & Private
Got a long Base64 string from an API response, an email or a database and need the real file? Paste it, press decode and download your PDF, image or audio file. It all happens in your browser, so sensitive documents are not sent anywhere.
Decode my Base64 →How to convert Base64 to PDF
- Open the Base64 decoder.
- Paste your Base64 string, with or without the
data:…;base64,prefix. - If there is no prefix, type the output filename with its extension, for example document.pdf.
- Press Decode. Images show a preview.
- Click Download file.
Why the filename matters
The type of file can only be guessed when your string starts with a data URI such as data:application/pdf;base64,. With a raw string, the file name you type decides the extension, so write .pdf, .png, .mp3 and so on.
Common errors
- “Not a valid Base64 string”: the text is truncated, contains extra characters, or is URL-safe Base64 (with - and _).
- File won’t open: the wrong extension was chosen.
Where Base64 files come from
Typical sources are API responses (invoices, labels, signed documents), emails, JSON exports, and database fields.
Typical prefixes and extensions
| Data URI prefix | Extension |
|---|---|
| data:application/pdf;base64, | |
| data:image/png;base64, | .png |
| data:image/jpeg;base64, | .jpg |
| data:audio/mpeg;base64, | .mp3 |
Frequently asked questions
How do I convert Base64 to PDF?
Paste the string, enter a filename ending in .pdf if there is no prefix, decode, then download.
Can I paste a full data URI?
Yes, the prefix is detected and used.
Does it preview the file?
Images are previewed. Other types are downloaded directly.
Is my data uploaded?
No, decoding is local.
Can I encode a file to Base64 too?
Yes, see image to Base64.
Does it support URL-safe Base64?
Standard Base64 only. Replace - with + and _ with / first.
Turn your Base64 string back into a file
No upload, no account, no watermark. Your files never leave your device.
Decode my Base64 →