This tool lets you URL encode text so it is safe to use in a web address, and URL decode encoded links back into readable text. A space becomes %20, an ampersand becomes %26, and Urdu or other non-English letters become a series of percent codes. It is the quickest way to fix broken links and build clean query parameters.
How do I URL encode text?
- Choose Encode or Decode.
- Choose component mode or full URL mode.
- Paste your text or link.
- Copy the result.

What is percent-encoding?
URLs may only contain a limited set of characters. Anything else, such as spaces, quotes or letters from other scripts, must be written as a percent sign followed by its hexadecimal code. This is called percent-encoding. Non-English letters are first turned into UTF-8 bytes, and each byte is encoded.
| Character | Encoded |
|---|---|
| space | %20 |
| & | %26 |
| = | %3D |
| ? | %3F |
| / | %2F |
| # | %23 |
| پ (Urdu) | %D9%BE |

Component mode vs full URL mode
Component mode works like JavaScript's encodeURIComponent. It encodes everything that has a special meaning in a URL, including / ? & = and #. Use it for single query parameters, such as a search term or a redirect address.
Full URL mode works like encodeURI. It leaves the structure of the address alone and only encodes characters that are never allowed, such as spaces. Use it when you have a whole link with a few unsafe characters.
Encoding query parameters
When you build a link like /search?q=red shoes&size=10, the space and any & inside a value would break it. Encode each value separately:
- q = red shoes → red%20shoes
- size = 10 → 10
The finished link becomes /search?q=red%20shoes&size=10. For campaign links with source and medium values, the UTM builder does this for you.
URL decode to read messy links
Links copied from emails, ads and analytics reports are often full of percent codes. URL decode turns them back into readable text so you can see where a link really goes. To split a long link into its parts, use the URL parser.
Why encoding matters for SEO and sharing
Unencoded spaces and symbols can break a link when it is pasted into an email, chat or social post. Part of the address may be cut off, sending people to an error page. Search engines also read encoded and unencoded versions as different addresses. Encoding values once, correctly, keeps links working and your analytics tidy.
Common mistakes
- Double encoding. Encoding an already encoded value turns %20 into %2520. Decode first if you are unsure.
- Plus signs. In some forms, + means a space. In paths it means a literal plus. Check how your system reads it.
- Encoding the whole URL in component mode. That encodes the slashes and breaks the link.
Related developer tools
For binary data such as images, use Base64 encode and decode. To escape characters for HTML, use the HTML entity encoder, and for JSON strings, JSON escape and unescape. Clean, readable page addresses are easy to make with the slug generator.
