Base64 Encoder / Decoder
Encode text to Base64 or decode Base64 back to readable text. Fast, free, and fully client-side.
Tool input stays in your browser. The site may use cookies for ads.
Try:
💡 Base64 encoding increases size by ~33% but allows binary data in text formats like JSON, URLs, and emails.
Worked example
Text: Hi UTF-8: 48 69 Base64: SGk= // Pitfall: decoding as Latin-1 vs UTF-8 mojibakes non-ASCII text. // Another: atob/btoa in browsers operate on "binary strings", not arbitrary Unicode — encode URI components first.
Frequently Asked Questions
Is Base64 encryption?
No. It is an encoding that expands binary into ASCII. Anyone can decode it. Use real cryptography for confidentiality.
Why do JWTs use Base64URL without padding?
URL-safe alphabets replace +/ with -_ and often omit = padding so tokens sit cleanly in headers and query strings.