Skip to content
Local Only Dev Tools
4 min read

Base64 Encoding Explained

What Base64 is for, why it is not encryption and how Unicode is handled.

What it is for

Base64 represents binary data using 64 printable characters. It exists so bytes can survive transport through text-only channels such as email, JSON fields or data URLs.

It is not encryption

Base64 is an encoding, not a security measure. Anyone can decode it instantly, so never use it to hide secrets.

Unicode and padding

Encode text as UTF-8 bytes first, then Base64. The = padding characters at the end make the length a multiple of four.

Try it yourself

Encode text to Base64 or decode Base64 back to text, with Unicode support. Runs locally in your browser.

Open Base64 Encoder / Decoder