Base64 Encoder / Decoder
Encode text to Base64 or decode Base64 back to plain text instantly.
๐กBase64, both directions, Unicode-safe
Encode any text to Base64 or decode Base64 back to text โ including emojis, Hindi, and every other script, which is exactly where naive btoa()-based tools break. Processing is instant and local: paste tokens, config values, or API payloads without them ever leaving your browser.
๐งฎHow Base64 works
Base64 maps every 3 bytes of data onto 4 safe ASCII characters, growing size by ~33%. It's an encoding, not encryption โ anyone can decode it. Its job is survival: binary data passing safely through systems that only speak text (JSON, URLs, email, HTML attributes).
SGVsbG8=. The trailing = is padding โ a normal part of the format, not an error.๐กWhere you'll meet Base64
- Data URLs: images embedded straight into HTML/CSS as data:image/png;base64,โฆ
- JWT tokens: the header and payload of every JSON Web Token are Base64 (decode them here to inspect claims).
- Email attachments (MIME) and basic HTTP authentication headers.
- Config files and environment variables that need to smuggle multi-line or binary content.
๐ก Frequently Asked Questions
What is Base64 used for?+
Representing binary or arbitrary text as safe ASCII so it survives text-only channels โ embedded images in HTML/CSS, email attachments, JWT tokens, JSON payloads, and URLs. It's an encoding for safety, not security.
Is Base64 encryption?+
No โ it's a reversible public encoding with no key. Anyone can decode Base64 instantly (that's what this tool does). Never use it to 'hide' passwords or secrets.
Does it handle emojis and non-English text?+
Yes โ the tool encodes text as UTF-8 before Base64, so emojis, Hindi, accents, and every Unicode script round-trip correctly. Plain btoa() tools throw errors on these.
Why does my Base64 end with = signs?+
Padding. Base64 works in 3-byte blocks; when input isn't a multiple of 3, one or two = characters pad the final block. Decoders handle it automatically.
Why is the encoded text longer than the original?+
Every 3 bytes become 4 characters, so Base64 output is about 33% larger. That's the price of using only 64 safe characters.