Skip to content

Encoding

Base64 Encoder & Decoder

Encode text to Base64 or decode Base64 values instantly.

Loading tool…

About this tool

What is Base64 Encoder & Decoder?

Convert UTF-8 text into a printable Base64 representation or recover text from a supported Base64 value. This is useful when checking API fields and encoded configuration, but it does not conceal the content. Decide whether you need ordinary text encoding, a complete image data URI or an actual binary-file workflow before copying the output.

A worked example

Encode an accented word using UTF-8

Example input

café

Expected result

Y2Fmw6k=

The accented letter takes two UTF-8 bytes, so the result differs from an encoding based on a legacy single-byte character set. Decode the generated value to check the round trip. For an embedded image, use the image-to-Base64 workspace, which supplies the media-type prefix as well as the encoded bytes.

Common mistakes and limits

  • Base64 is reversible encoding, not encryption or anonymization. Do not treat an encoded secret as safe to publish.
  • Arbitrary decoded bytes are not necessarily UTF-8 text. A failed text decode can indicate a different encoding or binary content rather than a broken Base64 alphabet.

Features

What you can do

  • Encode UTF-8 text into Base64.
  • Decode Base64 and Base64URL-compatible values.
  • Support international characters and emoji.
  • Swap input and output for quick round trips.
  • Copy generated values with one click.
  • Process all content locally in the browser.

Frequently asked questions

Questions about Base64 Encoder & Decoder

Is Base64 encryption?

No. Base64 is an encoding format and provides no confidentiality. Anyone can decode a Base64 value.

Why does Base64 increase data size?

Base64 represents every three bytes using four printable characters, producing approximately 33 percent additional size before other formatting overhead.

Does this tool support Unicode text?

Yes. Text is converted using UTF-8 before encoding and decoded back from UTF-8 afterward.

What is Base64URL?

Base64URL is a URL-safe variant that replaces certain characters and often omits padding. It is commonly used in JWTs.

Related tools