Files never leave your device

Base64 to file

Turn Base64 text or a data URI back into a downloadable file. Your inputs stay on your device.

Set up your task

Up to 2 MB of decoded bytes. Nothing is sent to a server.

Ready. Processing stays in this browser.

How to use Base64 to file

Turn Base64 text back into a downloadable file. This can recover an attachment or sample that was delivered as encoded text.

  1. Paste the complete Base64 value or data URI.
  2. Process it, then save the decoded file.
  3. Open it only when you know and trust the source.

Supported inputs and limits

Decode padded Base64 or a data URI into a local file, up to 2 MB. Only download a file if you trust its source.

How it works

Decoding turns a padded Base64 string back into bytes. You can paste plain encoded text or a data URI with a Base64 payload. Whitespace is ignored, which is useful for a value copied across several lines, but invalid characters or an incomplete final group are rejected. This avoids silently creating a corrupted file from a partial copy.

The decoded result uses a generic filename because plain Base64 does not normally contain the original name. A data URI can supply a media type, but it does not prove what the bytes really contain. Open a result only if you trust its source. Decoding a script, executable or document does not make it safe. This page expects standard padded Base64. URL-safe Base64 uses a different alphabet, commonly replacing plus and slash with hyphen and underscore, and some services omit padding. Obtain the representation your workflow needs rather than deleting unexpected characters until validation passes. The maximum decoded size is 2 MB; for larger transfers, use a suitable file-sharing method rather than pasting an enormous encoded value.

Example

Paste SGVsbG8= to download a file containing Hello.

Questions about Base64 to file

Is Base64 encryption?

No. Anyone with the encoded text can decode it. Open downloaded files only if you trust their source.

Why does the download end in .bin?

Plain Base64 may provide no reliable file name. Use the original extension only if you know what the decoded bytes represent.

Can I paste a value broken across several lines?

Yes. Spaces and line breaks are ignored. Extra non-Base64 characters still cause a validation error.

Related tools

Last updated