How url encoding decoding works
Characters that are not safe in a URL (spaces, &, ?, /, Bangla letters) are replaced by % followed by the hexadecimal value of each UTF-8 byte. A space becomes %20.
Examples
| URL Encoding | Text |
|---|---|
Hello | Hello |
Bangladesh | Bangladesh |
2026 | 2026 |
A%26B%20%3Cok%3E | A&B <ok> |
%E0%A6%86%E0%A6%AE%E0%A6%BF | আমি |
Character-by-character breakdown
Here is how the word Dhaka ৳ is converted, character by character. The Unicode code point identifies the character, the UTF-8 bytes show how it is stored, and the last column is the url encoding result.
| Character | Code point | UTF-8 bytes | URL Encoding |
|---|---|---|---|
D | U+0044 | 44 | D |
h | U+0068 | 68 | h |
a | U+0061 | 61 | a |
k | U+006B | 6B | k |
a | U+0061 | 61 | a |
␠ | U+0020 | 20 | %20 |
৳ | U+09F3 | E0 A7 B3 | %E0%A7%B3 |
Common mistakes to avoid
- Mixing up encoding and encryption — URL Encoding is reversible by anyone and does not protect secrets.
- Copying extra spaces or line breaks into the input, which can change the result.
- Assuming one character equals one byte — Bangla letters and emoji use several bytes in UTF-8.
- Decoding text that was encoded with a different character set (such as old ANSI/Bijoy files).
What is URL Encoding?
URL encoding (percent-encoding) replaces unsafe characters with % followed by hex digits so text can be used safely in web addresses and query strings.
Common uses
- Programming, debugging and API development
- Computer science and ICT homework
- Sharing data safely between systems
- Puzzles, games and learning how computers store text
Frequently asked questions
Does it support Bangla text?
Yes. Text is processed as UTF-8, so Bangla, Arabic, emoji and all Unicode characters work.
Is my text sent anywhere?
No, everything is processed instantly in your browser.
Can I convert large text?
Yes, you can paste long documents; conversion is instant.
Is URL Encoding a form of encryption?
No. It is an encoding — a reversible way of representing data. Anyone can decode it, so never use it to hide passwords or secrets.
Can I reverse the conversion?
Yes. Click the swap button to switch between encoding and decoding instantly.