Base64 encoder
Encode any string input to Base64.
About this tool
The Base64 encoder turns text into Base64, a way of writing any data using only 64 safe characters: A–Z, a–z, 0–9, + and /. “Hello, world” becomes SGVsbG8sIHdvcmxk. The text is encoded as UTF-8 first, so accented letters, other alphabets and emoji all work.
How to use the Base64 encoder
- Type or paste the text.
- The Base64 appears as you type.
- Copy it. To turn it back, use the Base64 decoder.
Where Base64 is used
- HTTP Basic authentication, which sends user:password as Base64 in a header.
- Data URIs, which put small files straight into HTML or CSS. For images, use Image to Base64.
- JSON and XML that need to carry binary data or text with awkward characters.
- Email attachments, which travel as Base64 inside the message.
- Config and environment files, for keys and certificates.
Base64 isn’t encryption
Anyone can decode Base64 in a second, so it hides nothing. Don’t use it to protect passwords or private data. It also makes data about a third bigger: every 3 bytes become 4 characters. The encoding happens in your browser.
Similar tools
Base64 decoder
Decode Base64 input back to a string.
Base64 to Image
Decode Base64 input to an image.
Image to Base64
Transform an image file into a Base64 string.
URL encoder
Encode any string input to URL format.
URL decoder
Decode URL encoded input back to a normal string.
Color converter
Convert your color to multiple other formats.