Base64 Encoder & Decoder
Encode any text to Base64 or decode Base64 back to text instantly. UTF-8 safe — handles emojis and non-Latin characters correctly. All processing happens in your browser.
16 characters
24 characters
When Do You Need Base64?
Base64 encoding is necessary when you need to transmit binary data through systems designed to handle only text. Common use cases include embedding images in HTML/CSS (data URLs), encoding credentials in HTTP Basic Auth headers, encoding binary content in JSON payloads, and encoding keys and tokens in JWT (JSON Web Tokens).
If you've ever looked at a JWT token, it looks like three Base64 segments separated by dots. Decoding the middle segment reveals the payload — the actual claims stored in the token. This is why it's important to remember that Base64 is not encryption.
This tool correctly handles UTF-8 characters — including emojis, Chinese, Arabic, and other non-ASCII text — using the proper encoding approach that avoids the common character corruption bug in simple btoa() implementations.
Base64 FAQs
What is Base64 encoding?
Is Base64 encryption?
Why does Base64 make text longer?
Can I encode images?
Is my data safe here?
What characters does Base64 use?
Related Tools
JSON Formatter & Validator
Format, validate, and minify JSON instantly. Private — runs entirely in your browser.
Regex Tester
Test regular expressions in real-time with live match highlighting and capture group display.
Color Converter
Convert colors between HEX, RGB, HSL, and CMYK with a live preview swatch. Free tool.