‹ Back to Software

Base64 Encoder and Decoder

Encode and decode UTF-8 text, files, and data URIs.

Choose a file to encode it as a data URI.

You can also drop a file here.

Input

Direction

Result


What Base64 Encoder and Decoder does

Encode and decode UTF-8 text, files, and data URIs.

How to use it

  1. Choose Encode for UTF-8 text to Base64, or Decode for Base64 to UTF-8 or a data URI to a file.
  2. Enter text and select Convert, or choose a file to produce a data URI.
  3. Review the output and any image preview, then copy or save. Set a file name before saving decoded binary data.

Formats and limits

  • UTF-8 text or files up to 32 MB. Data URI decoding preserves the media type, previews images, and saves decoded files.

Examples and checks

Move text or an image through a text-only field

Choose Encode, enter Hello, and select Convert to get SGVsbG8=. Switch to Decode and use that result to recover the original text. UTF-8 handling also supports non-ASCII text. Base64 is an encoding, so a person with the encoded value can decode it; it does not conceal a password or make a secret safe to share.

Selecting a file produces a data URI containing the media type and Base64 payload. Keep the complete data: prefix when decoding a file here, since that tells the tool to create binary output rather than interpret it as UTF-8 text. Set an appropriate filename before saving. Base64 usually makes data longer, so embedding a large file in source code may be less convenient than storing the original file separately.

Privacy

Processing stays in this tab. Input and generated content are not uploaded or stored.

Related tools

All processing runs locally in your browser. This tool is provided as-is without warranty. Keep backups of your original files before processing.

By selecting media, you confirm you own the content or have permission to modify it. Please read the Terms and Conditions.