Base64 Encoder
Turn any text into a Base64 string. Unicode is handled correctly: input is converted to UTF-8 bytes first, so emoji, accents and non-Latin scripts encode without corruption.
Tip: Ctrl+Enter encodes. Text is converted to UTF-8 first, so emoji and non-Latin scripts encode correctly.
How to use Base64 Encoder
- Type or paste the text you want to encode.
- Click Encode (or press Ctrl+Enter).
- Copy the Base64 output, download it as a text file, or Clear to start over.
- Use the Base64 Decoder to turn it back into text later.
Features
- Full Unicode support — emoji, accents, CJK and RTL scripts
- Character and UTF-8 byte counters
- Copy to clipboard and download as .txt
- Ctrl+Enter keyboard shortcut
- Chunked encoding handles multi-megabyte inputs safely
- Runs locally — input never leaves your browser
Important information
Base64 is an encoding, not encryption: it makes binary-safe text out of any data, but anyone can decode it back. It is commonly used to embed images in CSS, send binary data in JSON, or store data in URLs and cookies. Encoding is performed with the browser's built-in btoa after UTF-8 conversion, so no library is loaded and no request is made.
Frequently asked questions
Why do emoji and accented characters encode correctly here?
The text is first converted to UTF-8 bytes, which are then Base64-encoded. Encoding the raw JavaScript string directly would corrupt any character outside Latin-1 — this tool avoids that classic mistake.
Is Base64 secure?
No. Base64 is an encoding, not encryption — it provides zero confidentiality. Never treat a Base64 string as a secret; use proper encryption for that.
Is my text uploaded?
No. Encoding happens entirely in your browser.