Free · No sign-up · Private
Base64 Encoder
Encode text into a Base64 string for safe transport.
Quick answer
Type or paste text and it is converted to Base64 as you type. The text is first encoded as UTF-8 bytes, so accents and emoji work, and every 3 bytes become 4 Base64 characters. “Hello, UnseenOffers!” becomes SGVsbG8sIFVOU0VFTiBPRkZFUlMh.
SGVsbG8sIFVuc2Vlbk9mZmVycyE=Step by step
How to use the Base64 Encoder
01
Enter the text to encode.
02
See the Base64 output instantly.
03
Copy the result.
Worked examples
Examples
| Text | Base64 |
|---|---|
| Man | TWFu |
| Hi | SGk= |
| hello world | aGVsbG8gd29ybGQ= |
| café | Y2Fmw6k= |
Good to know
What Base64 is for
Base64 represents binary data with 64 safe characters (A to Z, a to z, 0 to 9, + and /), so it can travel through email, JSON, URLs and HTML. Data URLs, email attachments and basic HTTP authentication all use it.
Base64 is not encryption
Anyone can decode Base64, so never use it to hide passwords or personal data. It makes data 33% larger and offers no protection.
How Base64 encoding works
The text is turned into bytes with UTF-8, the bytes are read in groups of three (24 bits), and each group is split into four 6-bit values. Each value from 0 to 63 is written as one character from the Base64 alphabet. If the last group is short, = padding fills it, which is why encoded text grows by about a third and often ends in one or two equals signs.
FAQ
Frequently asked questions
Why does Base64 end with = signs?
Padding. When the input length is not a multiple of 3 bytes, one or two = characters fill the last group.
How do I decode it again?
Use the Base64 decoder.
More developer tools