Home / Developer / Base64 Encode / Decode

Base64 Encode / Decode

Base64 encodes bytes into a 64-character ASCII alphabet so binary or Unicode text survives systems that only handle plain text.
Result
SGVsbG8sIHdvcmxkIQ==

Base64 rewrites arbitrary bytes using 64 safe ASCII characters, which is why it shows up in data URLs, email attachments and JWTs. This tool goes both directions and handles Unicode correctly.

How it works

Encoding groups the input bytes into 6-bit chunks and maps each to one Base64 character, padding with '=' at the end. Decoding reverses it. The text is treated as UTF-8, so accented and non-Latin characters round-trip cleanly.

Questions

Is Base64 encryption?

No. It is an encoding, fully reversible by anyone. It hides nothing and adds no security.

Why is the output longer than the input?

Base64 represents every 3 bytes as 4 characters, so encoded output is about a third larger.