Base64 Encoder / Decoder

Free Base64 encoder and decoder: Convert text to Base64 and back in your browser. Choose UTF-8, ASCII, Windows-1252, ISO-8859, Big5, and more. No data is uploaded.

Input
Output
Base64 from UTF-8
How Base64 encoding works
Example: “web” encodes as d2Vi. Three 8-bit characters (24 bits) are split into four 6-bit indexes.
Text contentweb
ASCII11910198
Bit pattern011101110110010101100010
Index29542134
Base64-encodedd2Vi

webd2Vi

Frequently Asked Questions

What is Base64?

Base64 encodes binary or text data as ASCII characters. It is commonly used in data URLs, email attachments, HTTP basic auth, and API payloads. Every 3 bytes (24 bits) become 4 Base64 characters — for example, web encodes as d2Vi.

Which character encodings are supported?

Popular options include UTF-8, ASCII, ISO-8859-1, ISO-8859-2, ISO-8859-6, ISO-8859-15, and Windows-1252. Others include Big5, CP850, CP866, GBK, Shift_JIS, EUC-KR, KOI8-R, and UTF-16. The encoding is used to turn text into bytes before Base64 (and back again when decoding).

Does this support Unicode / Hindi / emoji?

Yes, when Character encoding is set to UTF-8 (the default). Other encodings can only represent their own character sets — for example ASCII cannot encode Hindi or emoji.

Is my data uploaded?

No. Encoding and decoding run entirely in your browser.