Base64 & URL Encoder
Encode and decode Base64 (with full Unicode support), turn files into Base64, create Base64URL, URL-encode query strings and convert HTML entities — live as you type.
How to use the Base64 & URL Encoder
- Choose the operation at the top, for example Base64 encode.
- Type or paste your text — the output updates instantly.
- Press ⇅ Use as input to reverse the operation, or Copy the result.
- Use File → Base64 to encode an image or document.
When to use what
- Base64: embedding images or files in JSON, email or data: URIs.
- Base64URL: JWT tokens and URLs — uses - and _ instead of + and /.
- URL encode: putting text with spaces or symbols into a link or query string.
- HTML entities: showing code or special characters safely in HTML.
Frequently asked questions
Is Base64 encryption?
No. Base64 is an encoding — anyone can decode it. Do not use it to hide passwords.
Does it support Urdu and emoji?
Yes. Text is converted to UTF-8 first, so all languages and emoji work.
What is the difference between encodeURI and encodeURIComponent?
Keep URL structure (encodeURI) leaves characters like / ? & alone; Encode all (encodeURIComponent) encodes them too — use it for single values.
Can I decode Base64 to a file?
Yes. Decode it and press Save as file.
Why do I get an error when decoding?
The text is not complete Base64. Check that nothing was cut off when copying.
Is my data sent anywhere?
No. Everything is calculated in your browser on your own device. Nothing you type or open is uploaded.
Base64, Base64URL and URL encoding compared
| Method | Example output | Used for |
|---|---|---|
| Base64 | Hello → SGVsbG8= | Email attachments, data URIs, API payloads |
| Base64URL | Uses - and _ instead of + and / | JWTs, links, file names |
| URL encoding | a b&c → a%20b%26c | Query strings and form values |
| HTML entities | < → < | Showing code safely on a web page |
Base64 makes data bigger
Base64 turns every 3 bytes into 4 characters, so encoded data is about 33% larger. A 300 KB image becomes about 400 KB as Base64. That is fine for small icons inside CSS, but for large images a normal file link loads faster.
Encoding is not encryption
Anyone can decode Base64 in one click. Do not use it to hide passwords, keys or private data. If something must stay secret, it needs real encryption.
Why a space can be %20 or +
In the query part of a web address, forms often write a space as +. In the path, a space must be %20. When in doubt, %20 works in both places.