Skip to main content

Base64 File Encoder & Decoder

Encode a local binary or text file as plain Base64 or a Base64 Data URL entirely in your browser.

Select a file or switch to decoding. Processing stays in this browser.

Maximum file size: 5 MB. Encoded input is limited to 8 MB. Decoded files are never previewed, inspected, uploaded, or executed. (5 MB)

How to use it

  1. Choose encoding or decoding mode
  2. Select a local file for plain Base64 or Data URL output, or paste encoded input
  3. Review validated sizes and metadata before copying or downloading
  4. Clear the tool to remove the current file, bytes, and text from the interface

The tool reports the original filename, MIME type, input size, encoded payload size, and estimated expansion before allowing you to copy or download the encoded text. It can also decode pasted plain Base64 or a supported Data URL into downloadable bytes, using a filename and MIME hint that you control when metadata is absent. Strict validation rejects malformed padding, unsupported Data URL structures, oversized inputs, and unsafe filename characters. Decoded content is never previewed, inspected, uploaded, or executed. Temporary download URLs are revoked immediately, and conservative limits reduce avoidable memory pressure.

FAQ

We use cookies to run this site and, with your consent, to understand usage and personalize ads. You can change your choice at any time.