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 →
base64 to pdfbase64 to imagebase64 to filedecode data uribase64 to pngbase64 to mp3

How to convert Base64 to PDF

  1. Open the Base64 decoder.
  2. Paste your Base64 string, with or without the data:…;base64, prefix.
  3. If there is no prefix, type the output filename with its extension, for example document.pdf.
  4. Press Decode. Images show a preview.
  5. 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

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 prefixExtension
data:application/pdf;base64,.pdf
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 →

More free converters & guides

WebP to JPG / PNGBatch-convert WebP images, keep transparencyMOV to MP4Make iPhone videos play everywhereM4A / FLAC to MP3Voice memos and lossless audio to MP3Compress PDF privatelyShrink a PDF without uploading itImage to Base64Get a data URI for HTML, CSS or JSON Image converterWebP, AVIF, PNG, SVG, ICO… Base64 toolEncode or decode any file