Base64 Encoder / Decoder
Unicode-safe Base64 conversion, fully in-browser.
About Base64
Base64 is an encoding scheme that represents binary data using a 64-character ASCII alphabet (A–Z, a–z, 0–9, + and /). It's widely used in email attachments (MIME), data URIs, JSON Web Tokens, and HTTP basic authentication where the transport layer requires text-safe characters.
Unicode-safe by default
Browsers' built-in btoa() and atob() only handle ASCII — they throw on characters like emoji or non-Latin scripts. This tool wraps those calls with UTF-8 encoding so it works with any text, including 中文, العربية, or 🚀.
What's the difference between Base64 and URL-safe Base64?
Standard Base64 uses + and /. URL-safe Base64 (used in JWTs) substitutes - and _ respectively, and often drops = padding. This tool produces standard Base64.
Is this safe for passwords or secrets?
Yes — encoding happens locally. But remember: Base64 is an encoding, not encryption. Anyone can decode it. Don't use it as a security mechanism.