Esc

Base64 to File Converter

Decode Base64 text or a Base64 data URL into a downloadable file. Decoding runs locally in your browser.

  • Free
  • No sign-up
  • Runs in your browser

Supports raw Base64 and data URLs ending in ;base64. Decoded files are limited to 25 MB.

How to turn Base64 into a file

  1. Paste raw Base64 text or a data URL with a ;base64, marker.
  2. Optionally enter the filename you want for the decoded file.
  3. Decode the input and download the resulting file.

Decoded content is limited to 25 MB. Data URLs supply a media type; raw Base64 is downloaded as a generic binary file.

What input does the Base64 file decoder accept?

InputExample shapeOutput handling
Raw Base64SGVsbG8=Downloaded as a binary file with a generic extension
Base64 data URLdata:image/png;base64,…Uses the declared MIME type to choose a suggested filename

Whitespace and Base64 URL-safe characters are accepted. Non-Base64 data URLs and malformed Base64 are rejected.

Decoded output details

The input is strictly checked before decoding in a local Web Worker and must contain at least one byte. A data URL's media type is kept as the download MIME type; the tool does not inspect or verify that the decoded bytes actually match the declared format.

Check where decoding happens

Base64 text is decoded in a local Web Worker and is not sent to a conversion server. The page itself may load advertising resources; see the privacy page for site-level details.

Known limitations

  • Decoded files are limited to 25 MB and the pasted text to 10 million characters.
  • For raw Base64, the file type is unknown and a generic .bin filename is suggested unless you enter another name.
  • Data URL media types are trusted as labels and are not confirmed against the decoded bytes.
  • Percent-encoded (non-Base64) data URLs are not supported.

Frequently asked questions

How do I convert Base64 to a file?
Paste the Base64 string, optionally set an output filename, then decode and download the result.

Can I decode a data URL?
Yes, if it is Base64-encoded and includes a ;base64, marker. Percent-encoded data URLs are not supported.

Why does raw Base64 download as a BIN file?
A plain Base64 string does not tell the decoder its original format. Supply a filename or use a data URL that declares the MIME type.

Is my Base64 text uploaded?
No. It is decoded in your browser; the site still loads its regular page resources.

Related tools

Tool details last reviewed 2026-11-01. See the changelog.