About the Base64 Encode and Decode
Choose encode or decode and paste your text. The tool handles non-English characters and emoji by encoding the text as UTF-8 first.
Base64 is an encoding, not encryption. Anyone can decode it, so never use it to protect secrets. Your text is processed locally in your browser.
How to Use the Base64 Encode and Decode
- Choose encode or decode.
- Paste the text.
- Read the output and copy it.
Formula and Method
Output length
length = 4 × ⌈bytes ÷ 3⌉
Padded with = signs.
Worked Example
Encoding a greeting
Input: Hello, One Calculator!
- Convert the text to UTF-8 bytes
- Group into 6-bit values and map to the Base64 alphabet
Result: SGVsbG8sIE9uZSBDYWxjdWxhdG9yIQ==
Frequently Asked Questions
Is Base64 encryption?
No. It is reversible by anyone and gives no security.
Why does it end with = signs?
Padding fills the final group to four characters.
Where is Base64 used?
In email attachments, data URLs, JSON web tokens and HTTP basic authentication.
Related Calculators
Sources and Further Reading
Accuracy and Scope
Results follow the formulas and scales stated on each page. Institutions, vehicles and circuits differ, so check against your own rules and equipment. See our full disclaimer.