Base64 Encoder & Decoder

Convert text to Base64 and back, with full Arabic support

calendar_today Last updated: September 17, 2026

Result

2YXYsdit2KjYpyDYqNmDINmB2Yog2LPZh9mE

Encoded in your browser. Arabic and emoji survive the round trip — many Base64 tools break on anything that is not plain English.

lightbulb

Sahel's Base64 tool encodes and decodes text in the standard or URL-safe alphabet, handles Arabic and emoji correctly, and runs in your browser.

help_outline

How does this tool work?

1

Pick a direction

Encode text into Base64, or decode Base64 back into text.

2

Paste the input

Arabic and emoji are fully supported.

3

Copy the result

Or press “Use as input” to check the round trip yourself.

Frequently asked questions

Why do some sites mangle non-English text? expand_more
Because they use btoa, which is defined over a single-byte Latin encoding and fails or corrupts anything outside it. This tool converts text to UTF-8 bytes first, so Arabic passes through intact.
What is the difference between the standard and URL-safe alphabets? expand_more
The standard one uses + and / and pads with =, and all three have special meaning inside a URL. The URL-safe alphabet swaps them for - and _ and drops the padding — it is what JWTs and query parameters use.
Is Base64 encryption? expand_more
No, and this matters. Base64 is an encoding, not a cipher: anyone can reverse it instantly without a key. Never use it to hide a password or anything sensitive.
Why does it say the result is not text? expand_more
Because you have most likely decoded a file — an image, say — rather than words. The bytes are valid but they do not read as UTF-8 text, and the tool says so instead of showing mangled characters.