Content and text
Base64 Encoder
Encode text to Base64 or URL-safe Base64, with Arabic and emoji handled as UTF-8.
Runs in your browser; nothing is uploaded. · Free, no account · 1 min
Importing a saved run into your account is coming soon. Until then, your last runs stay in this browser only, and you can download your files.
How to use
- Type or paste the text to encode.
- Choose the standard alphabet or the URL-safe one, and keep or drop the = padding.
- Pick a line length if the target needs wrapped lines, such as 76 for MIME or 64 for PEM.
- Copy the Base64 text or download it.
What it checks and how it works
The text becomes bytes through UTF-8 (RFC 3629), and then every three bytes are written as four characters from the Base64 alphabet of RFC 4648, with = padding at the end. The URL-safe option uses the alphabet of RFC 4648 section 5, where - and _ replace + and /. Because the encoder works on UTF-8 bytes, Arabic text encodes correctly where the browser's plain btoa function would fail.
Base64 is an encoding, not encryption: anyone can decode it, so never use it to hide a password or a token. It makes data about a third larger.
Sources
- RFC 4648: The Base16, Base32, and Base64 Data Encodings opened 29 Oct 2026
- RFC 3629: UTF-8, a transformation format of ISO 10646 opened 29 Oct 2026
Related tools
Base64 Decoder
Decode Base64 or URL-safe Base64 back to readable text, Arabic included.
URL Encoder and Decoder
Encode Arabic URLs as UTF-8 percent-encoding, or decode them back to readable text.
HTML Entity Encoder and Decoder
Encode special characters as HTML entities, or decode entities back to readable text.
JSON Formatter and Validator
Format, minify or check JSON and see exactly where it breaks.
Questions
About this tool
No. It only changes how bytes are written, and anyone can decode it. Use encryption if the content must stay secret.
The browser's btoa accepts only Latin-1 characters. This tool converts the text to UTF-8 bytes first, so Arabic and emoji encode without errors.
When the result goes into a URL, a filename or a JWT, where + and / have special meaning. The URL-safe alphabet uses - and _ instead, and padding is often dropped.
Get started today
Find out where your brand stands in AI. Free.
Run a free AI visibility analysis on your domain. No credit card, results in minutes. See what AI engines say about your brand today.
Brands already measuring their AI visibility with Zaher.


