Tool

Base64 Encoder / Decoder

Encode UTF-8 text to Base64 or decode Base64 back to UTF-8 text.

Try it

This tool runs entirely in your browser. Nothing you type or paste is sent anywhere.

Result
aGVsbG8=
aGVsbG8=

Encoded 5 character(s) of UTF-8 text to Base64.

How it works

Usage

  1. Choose encode or decode.
  2. Paste the text or Base64 value.
  3. Read the converted output.

Examples

Encode ASCII

{
  "mode": "encode",
  "value": "hello"
}

Round-trip Unicode

{
  "mode": "encode",
  "value": "héllo 🌍"
}

Decode

{
  "mode": "decode",
  "value": "aMOpbGxvIPCfjI0="
}

Limitations

Where Base64 is appropriate

Base64 is for carrying binary data through channels that expect text, such as JSON fields or data URLs. It is deliberately not for hiding information: the alphabet is public and anyone can decode it.

Frequently asked questions

Why does the encoded length grow?
Base64 represents every three bytes as four characters, so the encoded form is about one third larger.
Is URL-safe Base64 supported?
This tool uses the standard alphabet. Replace '+' with '-' and '/' with '_' for URL-safe variants after encoding.

Sources

  1. RFC 4648: The Base16, Base32, and Base64 Data Encodings — IETF