Base64 Encoder / Decoder
Runs in your browserEncode text to Base64 or decode it back, with full Unicode support.
Plain text
Base64
What is a Base64 Encoder / Decoder?
Base64 represents arbitrary bytes using only 64 printable ASCII characters. It exists because plenty of systems — email bodies, HTTP headers, JSON string fields, data: URLs — can carry text reliably but mangle raw binary. Encoding costs about 33% extra size in exchange for surviving that trip intact.
Base64 is not encryption and provides no security whatsoever. Anyone can decode it in a second, as this page demonstrates. It is an encoding for transport, in the same family as URL encoding and quoted-printable.
Base64url is a small variant used in JSON Web Tokens and URLs: it swaps the + and / characters for - and _ so the result is safe to place in a query string or path segment, and usually drops the = padding.
How to use it
- Pick a direction — Encode turns text into Base64, Decode turns Base64 back into text.
- Type or paste into the input panel. The result updates as you type.
- Switch on URL-safe (Base64url) if the output has to travel in a URL or you are working with JWT segments.
- Use the swap button to move the output into the input, which makes round-tripping easy to verify.
- Copy the result, or download it when the output is long.
Examples
Encoding
Hello, world!SGVsbG8sIHdvcmxkIQ==Unicode round-trip
café ☕Y2Fmw6kg4piV