Encode / Decode
Encode text or files to Base64, or decode Base64 strings back to readable text — with full Unicode support.
Base64 turns arbitrary binary or text data into a printable, ASCII-safe string. It's used to embed images
directly in CSS/HTML (data: URIs), attach binary payloads inside JSON or XML, encode
credentials in HTTP Basic Auth headers, and safely transmit binary data through text-only channels like
email (MIME).
Naively using btoa()/atob() breaks on non-ASCII text (accented characters,
emoji, CJK text). This tool encodes text as UTF-8 bytes first, so international text round-trips
correctly — paste text with emoji or accented characters and it will encode and decode without
corruption.
data: URI to inline it in CSS or HTML.Authorization: Basic ... header to see the underlying username:password value.For a deeper explanation of how Base64 actually works under the hood, see What Is Base64 Encoding and Why Do We Need It?
btoa() call.data: URI.+ and / characters with - and _ and typically omits padding, making it safe to use inside URLs and filenames. This tool uses standard Base64; for Base64URL-encoded tokens like JWTs, use the dedicated JWT Decoder tool.