Base64 Encode
Encode plain text into Base64 — safe for embedding binary-unfriendly data in JSON, URLs, or config files.
How to use the Base64 Encoder
- Paste any text into the input box.
- Click "Encode" to convert it to Base64.
- Copy the result for use in JSON payloads, Basic Auth headers, data URLs, or anywhere binary-unsafe channels need plain-ASCII text.
Why use this tool
Base64 represents arbitrary bytes using only 64 printable ASCII characters, which makes it safe to embed in places that don't handle raw binary well — HTTP headers, JSON strings, or URLs. This tool correctly handles Unicode text (emoji, accented characters, non-Latin scripts), unlike a plain btoa() call.
Frequently Asked Questions
Does this handle emoji and non-English text?
Yes. The encoder first converts your text to UTF-8 bytes before Base64-encoding, so any Unicode character round-trips correctly.
Is Base64 encryption?
No. Base64 is an encoding, not encryption — it provides no confidentiality and can be decoded by anyone. Use it for safe transport, not for hiding sensitive data.
Is my text sent to a server?
No, encoding happens entirely in your browser using JavaScript.