URL Encoder Decoder
URL Encoder Decoder — Encode text for links and decode percent-encoded URLs back to Free to use online, no sign-up; runs 100% in your browser on ScopeTreasure.
In short: Encode text for links and decode percent-encoded URLs back to readable text. Free to use in your browser — no sign-up.
What is URL Encoder Decoder?
URL Encoder Decoder turns text into the percent-encoded form links need — spaces become %20, & becomes %26 — and turns encoded text back into readable text. It works as you type, on your device.
How to use this tool
- Paste or type your text into the box.
- Pick Encode to make it link-safe, or Decode to turn % codes back into characters.
- Read the result below — it updates as you type.
- Press Copy to use it in a link, a form or a message.
- If decoding shows an error, check for a % that is not followed by two hex digits.
About this tool
Links cannot carry spaces, &, ?, # or non-English letters as they are — a browser would read them as part of the address and the link would break. URL encoding fixes that: every unsafe character becomes a % sign followed by two hex digits for its code. A space becomes %20, because 20 is the hex code for 32, and & becomes %26. This tool does the encoding and the reverse decoding, live, as you type.
Non-English letters take more than one code each. The letter é, for example, is stored as two bytes in UTF-8, so it encodes as %C3%A9 — two codes, not one. That is why a short Urdu or Arabic word can look long once encoded, and why decoding it back needs the exact same UTF-8 rule. The tool handles all of that for you.
Decoding can fail for one simple reason: a % sign that is not followed by two hex digits, such as “100% sure” or a cut-off link. The tool says so in plain words instead of showing a technical error, so you can fix the text and try again. A % that is meant as a percent sign should be written as %25.
This tool encodes with the encodeURIComponent rule, which encodes everything except letters, digits and - _ . ! ~ * ’ ( ). That is the safe choice for a value inside a link, such as a search word or a file name. A whole address keeps its : / / ? & = signs, so paste only the part you want encoded — a single word, a file name or a search phrase.
Everything runs on your device: the text is encoded locally and never sent anywhere, so links with private words, file names or search terms stay private. The tool does not fetch the link or check whether it opens — it only changes the characters.
Example — a search phrase and a file name:
Type “Hello World!” and pick Encode: the result is Hello%20World! — the space becomes %20 and the ! stays as it is. Type “café & tea?” and it becomes caf%C3%A9%20%26%20tea%3F: the é takes two codes, the space one, the & one and the ? one. Paste either result back, pick Decode, and the readable text comes back exactly.
A file named “my notes (final).pdf” becomes my%20notes%20(final).pdf — the brackets stay, the spaces become %20 — so it works inside a link. Decode it and the file name returns unchanged.
Frequently asked questions
- How do I encode text for a URL?
- Paste the text into the box and pick Encode. Spaces become %20, & becomes %26, and the result updates as you type. Press Copy to use it.
- What does %20 mean?
- It is the code for a space. 20 is the hex code for 32, the space character. Every % code works the same way: % plus two hex digits.
- Why does é become two codes?
- Non-English letters are stored as two bytes in UTF-8, so é becomes %C3%A9 — one code per byte. Urdu and Arabic letters work the same way.
- Can I decode a whole link?
- You can paste a whole link and decode it, but the result keeps the : / / ? & = signs of the address. For clean results, decode only the encoded part — a word, a file name or a search phrase.
- What if decoding shows an error?
- It means a % sign is not followed by two hex digits — for example “100% sure” or a link cut off in the middle. Fix the % part and try again.
- Is my text private?
- Yes. The encoding runs in your own browser and the text never leaves your device.
- What is the difference from encodeURI?
- encodeURIComponent encodes everything except letters, digits and - _ . ! ~ * ’ ( ), which is the safe choice for a value inside a link. encodeURI leaves the address signs : / / ? & = alone, so it suits whole addresses.
- Does it work with Urdu or Arabic text?
- Yes. Every letter is encoded as its UTF-8 bytes, and decoding returns the exact same text.