DevTools
All tools

Base64 Encoder

Encode/decode text to and from Base64 (UTF-8 supported).

What is Base64 encoding

Base64 is an encoding scheme that represents arbitrary binary data using only 64 ASCII characters (A–Z, a–z, 0–9, +, /). It exists to carry binary content—images, files—safely through text-only channels such as email bodies, JSON fields, HTML data URIs, and HTTP headers.

It splits every 3 bytes (24 bits) into four 6-bit groups, mapping each to one of the 64 characters, so the encoded output is about 33% larger than the original. When the data length is not a multiple of three, `=` padding is appended. Base64 is a representation, not encryption, so it must never be used to hide sensitive values.

This tool processes input as UTF-8, correctly encoding and decoding Unicode text including emoji and non-Latin scripts. All computation happens in your browser—your input is never sent to a server.

How to use

  1. Paste the text you want to encode and the Base64 result appears instantly.
  2. To decode instead, switch to decode mode and paste the Base64 string.
  3. Use the copy button next to the result to place it on your clipboard.

Frequently asked questions

Is Base64 a form of encryption?
No. Base64 is a reversible encoding that anyone can decode; it provides no security. Never use it to conceal passwords or tokens.
Why does Base64 break inside a URL?
Standard Base64 uses `+` and `/`, which have special meaning in URLs. Use the URL-safe Base64 variant, which substitutes `-` and `_` instead.
Does it handle emoji and non-Latin text?
Yes. The tool converts input to UTF-8 bytes before encoding, so Unicode characters round-trip without loss.