- Home
- Tools
- Encoding & Decoding
- Base64
- Base64 Encode
Base64 Encode
Turn text into Base64, the encoding that carries data through e-mail, JSON and data URIs.
Example
- In
- Hello, wörld
- Out
- SGVsbG8sIHfDtnJsZA==
Good to know
- The text is converted to UTF-8 bytes first, so accented letters and emoji are encoded correctly and decode again in any language.
- The result is about a third longer than the input: every 3 bytes become 4 characters.
- Choose the URL-safe alphabet if the result goes into a link or a file name. It uses - and _ instead of + and /, and leaves off the = padding.
- Base64 is not encryption. Anyone can decode it, so it does nothing to protect a password or a key.
How Base64 works, with a worked example, is explained on the Base64 Encoder/Decoder page.