Base64 Encoder / Decoder

Convert text to Base64 and back. Unicode text such as Vietnamese and emoji is encoded correctly as UTF-8.

Mode

What is Base64?

Base64 represents binary data using 64 safe characters (A–Z, a–z, 0–9, + and /). It is used in email attachments, data URLs, JSON Web Tokens and HTTP Basic authentication. Base64 output is about 33% larger than the input.

Base64 is not encryption

Anyone can decode Base64. Never use it to protect passwords or secrets.

URL-safe Base64

URL-safe Base64 replaces + with - and / with _ and usually removes the = padding, so the value can be used in URLs and file names. The decoder accepts both variants automatically.

Frequently asked questions

Why do I get strange characters when decoding elsewhere?

Many simple tools treat text as Latin-1. This tool always uses UTF-8, which is the standard for web text.

Can I decode a data URL?

Yes. Paste the whole data:…;base64,… string; the prefix is removed automatically.

Can I decode a JWT?

Yes – paste the header or payload part (between the dots). The signature part is binary.