Base64 Encoder & Decoder

Encode any text to Base64 or decode it instantly — no uploads required.

How to Use the Base64 Encoder

1

Enter Text

Paste or type the text you want to encode in the input field.

2

Choose Operation

Click "Encode" to convert text to Base64, or "Decode" for the reverse.

3

Copy the Result

Click the copy button to copy the result to your clipboard in one click.

4

Privacy

All operations happen in your browser — no text is ever sent to the internet.

What is Base64?

Base64 is an encoding scheme that converts binary data or text into a string of safe ASCII characters for transport over the internet. It is widely used in emails, API payloads, and embedding images in HTML and CSS. The Adawix Base64 tool lets you encode and decode text instantly without installing any software.

Base64 encoding increases data size by about 33%, so it is best used only when data must travel through text-only channels. The tool supports Arabic, English and any Unicode text. Completely free and works offline in your browser. For more productivity, also try: Hash Generator, JSON Formatter, or URL Shortener.

Example: what happens to the word "مرحبا"?

The 5-letter word «مرحبا» becomes 2YXYsdit2KjYpw== — 16 characters. Two steps explain it: first UTF-8 encodes each Arabic letter as two bytes (10 bytes total), then Base64 takes every 3 bytes and turns them into 4 characters from a safe table of Latin letters, digits, + and / only. The trailing = is padding that completes the final group, not part of the data.

This mechanism explains why encoded Arabic text always appears as odd Latin characters: the goal is for data to pass through any legacy system that only understands ASCII without corruption — and decoding restores it exactly, letter for letter.

Where do you meet Base64 daily as a developer?

In three main places: data: URLs that embed a small image directly inside CSS or HTML instead of a separate network request. JWT tokens, where the header and payload are just readable Base64URL — never put secrets in them, since anyone can decode them without a key. And the Authorization: Basic header, which encodes the username and password — encoding, not encryption, which is why it always requires HTTPS.

Mind the difference between the two variants: standard Base64 uses + and /, while Base64URL (used in JWT and web links) replaces them with - and _ and drops padding. This small difference is the number-one cause of "decoding does not work" when copying a token from one app to another.

Base64 FAQ

No. Base64 is encoding, not encryption — anyone can decode it trivially. Do not use it to protect sensitive data; use it only for data transport compatibility.

Yes, the tool supports Arabic, English and any Unicode text.

The SMTP protocol only supports ASCII text, so Base64 converts attachments and special characters into transport-safe strings.

This tool handles text only. To encode image files, you would need a tool that reads binary file data and encodes it.

Yes, text file contents can be encoded with Base64. Binary files such as images can also be encoded, but the result can become very long.

JWT tokens use the Base64URL variant, which replaces + and / with - and _ and drops the = padding. Swap the characters back (- to + and _ to /) before decoding with a standard Base64 tool.

Because each Arabic letter is stored as two bytes in UTF-8 (versus one byte for a Latin letter), and Base64 then adds a third on top. Result: a 5-letter Arabic word becomes roughly 16 characters.