How base64 encoding works
The text is converted to UTF-8 bytes, grouped into 24-bit blocks and each 6-bit chunk is mapped to one of 64 characters. “=” padding is added at the end when needed.
Examples
| Text | Base64 |
|---|---|
Hello | SGVsbG8= |
Bangladesh | QmFuZ2xhZGVzaA== |
2026 | MjAyNg== |
A&B <ok> | QSZCIDxvaz4= |
আমি | 4KaG4Kau4Ka/ |
Character-by-character breakdown
Here is how the word Dhaka ৳ is converted, character by character. The Unicode code point identifies the character, the UTF-8 bytes show how it is stored, and the last column is the base64 result.
| Character | Code point | UTF-8 bytes | Base64 |
|---|---|---|---|
D | U+0044 | 44 | RA== |
h | U+0068 | 68 | aA== |
a | U+0061 | 61 | YQ== |
k | U+006B | 6B | aw== |
a | U+0061 | 61 | YQ== |
␠ | U+0020 | 20 | IA== |
৳ | U+09F3 | E0 A7 B3 | 4Kez |
Common mistakes to avoid
- Mixing up encoding and encryption — Base64 is reversible by anyone and does not protect secrets.
- Copying extra spaces or line breaks into the input, which can change the result.
- Assuming one character equals one byte — Bangla letters and emoji use several bytes in UTF-8.
- Decoding text that was encoded with a different character set (such as old ANSI/Bijoy files).
What is Base64?
Base64 encodes binary or text data using 64 safe characters (A–Z, a–z, 0–9, + and /). It is used in emails, data URLs, APIs and tokens.
Common uses
- Programming, debugging and API development
- Computer science and ICT homework
- Sharing data safely between systems
- Puzzles, games and learning how computers store text
Frequently asked questions
Does it support Bangla text?
Yes. Text is processed as UTF-8, so Bangla, Arabic, emoji and all Unicode characters work.
Is my text sent anywhere?
No, everything is processed instantly in your browser.
Can I convert large text?
Yes, you can paste long documents; conversion is instant.
Is Base64 a form of encryption?
No. It is an encoding — a reversible way of representing data. Anyone can decode it, so never use it to hide passwords or secrets.
Can I reverse the conversion?
Yes. Click the swap button to switch between encoding and decoding instantly.