Base64 Encode & Decode

Decode a token, an e-mail header or a data URL, or make one. Non-Latin text is handled correctly.

Base64 is not encryption

It is a way of writing bytes as text that anyone can reverse. Never use it to hide passwords or personal data.

Why other tools garble text

Many encode characters directly instead of their UTF-8 bytes, which breaks on non-Latin text. Here text is converted to UTF-8 first, so results match other languages and systems.

URL-safe

For URLs and JWTs, + and / become - and _, and trailing = is dropped. Decoding accepts both forms.

Frequently asked

Is anything uploaded?

No. Pasting a token here keeps it on your machine.

File size limit?

5 MB for data URLs; Base64 is about 33% larger than the original.

Decoding gives gibberish

The data was probably binary (an image or archive), not text.