Base64 Encode/Decode
Encode text to Base64 or decode a Base64 string instantly. Handles UTF-8 text including accents and emoji.
Base64 turns any bytes into text using 64 safe characters (A–Z, a–z, 0–9, + and /), so binary data can travel through systems built for plain text: email attachments, JSON payloads, data URIs and HTTP headers. Type or paste text on the left to encode it; paste a Base64 string and press the swap button to decode it.
Example
Hello, World! encodes to SGVsbG8sIFdvcmxkIQ==. The two = signs are padding: Base64 works in groups of three bytes, and the trailing = marks how many bytes the last group was short.
UTF-8 first, then Base64
Base64 encodes bytes, not characters. This tool converts your text to UTF-8 before encoding, so accented letters and emoji round-trip correctly — café becomes Y2Fmw6k=, not an error. When decoding, the bytes are read back as UTF-8.
Base64 is not encryption
Anyone can decode Base64; it hides nothing. Use it to transport data, never to protect it. For integrity and authenticity use an HMAC; for secrecy use real encryption.
Need the whole story — the alphabet table, URL-safe Base64 and the size overhead? Read What is Base64 encoding?. To embed an image, use image to Base64 or turn a string back into a picture with Base64 to image.