Base64 Encoder/Decoder

Encode text or a file as Base64, or decode Base64 into readable text or downloadable binary data. Add or recognize data URI information when a media type is needed for browser use.

Features

Text encoding/decodingFile upload supportImage previewAuto-detectionDrag and drop

How to use the Base64 Encoder/Decoder

  1. 1Choose Encode or Decode and select text or file input.
  2. 2Enter the source text, choose a file, or paste a Base64 value.
  3. 3Run the conversion and review the text or supported file preview.
  4. 4Copy the encoded value or download the decoded file.

Common uses

  • Encode small binary data for an API payload.
  • Inspect a Base64 string from a log or response.
  • Create or decode a data URI for a browser asset.

Encoding is not encryption

Base64 only represents bytes as text. It provides no confidentiality or integrity, and anyone can decode the value. Base64 output is also larger than the original binary data.

Frequently asked questions

Is Base64 secure?

No. It is an encoding format, not encryption or hashing.

What is the file upload limit?

The file input uses a 5 MB limit.

Can decoded data be downloaded as a file?

Yes. When the decoded content represents file data, the tool can create a browser download.

Related Code & Development Tools