Skip to content

Base64 Encoder

Encode text to Base64 or decode Base64 back to plain text. Upload files to get their Base64 representation.

Examples

See what this tool can do.

Embed an image in CSS

Encode a small icon to Base64 to inline it as a data URI.

Decode a token payload

Decode a Base64 string to read its contents.

Tips & tricks

Get the most out of it.

  • 1Base64 is encoding, not encryption — it does not protect data.
  • 2Use it to inline small assets or move binary data as text.
  • 3Unicode text is handled correctly, including emoji.

About Base64 Encoder

What this tool does

Base64 Encoder encodes text to Base64 and decodes it back, and can also turn an uploaded file into a Base64 string.

How to use it

  • Enter text or upload a file.
  • Choose Encode or Decode.
  • Copy the result.

How it works

Text is converted using the browser's built-in Base64 functions with correct Unicode handling; files are read locally and encoded to a data string.

Important considerations

  • Very large files produce very long strings and use more memory.

Privacy

This tool runs entirely in your browser. Nothing you enter is uploaded to a server.

Related tools

Frequently asked questions

No. It only re-encodes data as text; anyone can decode it. Never use it to hide secrets.

Related tools