Base64 Encoder & Decoder
Convert text to Base64 and back, with full Unicode support.
Base64 output
The converted value appears here.
About Base64 Encoder & Decoder
Base64 represents arbitrary bytes using 64 printable ASCII characters, which lets binary data travel safely through channels that only accept text - email bodies, JSON payloads, data URLs and HTTP headers.
The trade-off is size: the encoded form is roughly a third larger than the input. This tool encodes and decodes in both the standard and URL-safe alphabets and correctly handles multi-byte UTF-8 characters in both directions.
Frequently asked questions
Does this handle emoji and accented characters?
Yes. Text is encoded as UTF-8 first, so any Unicode character round-trips correctly - unlike a raw call to the legacy btoa function.
What is URL-safe Base64?
A variant that replaces the plus and slash characters with hyphen and underscore and drops the padding, so the result can be used in a URL or filename without escaping.
Is Base64 encryption?
No. It is an encoding, fully reversible by anyone. Never use it to protect secrets.