What is URL Encode/Decode?
Free URL encoder and decoder. Encode special characters in URLs and decode encoded URL strings instantly. Supports both encodeURI and encodeURIComponent. Developer utilities built for web developers, software engineers, and programmers. TekPulse's URL Encode/Decode is completely free — no signup, no ads in results, and no data stored on our servers.
How to Use URL Encode/Decode Online
- Paste the URL or query string into the input field
- Click "Encode" to convert special characters to percent-encoded format (e.g. space → %20)
- Click "Decode" to convert percent-encoded characters back to readable text
- Use the "Full URL" mode to preserve slashes and colons while encoding only query parameter values
- Copy the result or use it directly in your API request or browser address bar
URL Encode/Decode Formula & Calculation
Percent-encoding: unsafe byte → %XX, where XX is the byte's hex value (UTF-8 encoded first for non-ASCII)
Reserved and unsafe characters are replaced with a '%' followed by their two-digit hexadecimal byte value. Non-ASCII characters are first converted to UTF-8 bytes, then each byte is percent-encoded separately — so one character can expand to multiple %XX groups.
Example: "hello world & café" → encodeURIComponent → "hello%20world%20%26%20caf%C3%A9". The space becomes %20, '&' (reserved in query strings) becomes %26, and 'é' — a 2-byte UTF-8 character (0xC3 0xA9) — becomes %C3%A9.
Key Factors That Affect Your Result
- encodeURIComponent vs encodeURI — encodeURIComponent escapes everything except A-Z a-z 0-9 - _ . ! ~ * ' ( ) — use it for individual query/path values. encodeURI preserves URL structural characters (: / ? # [ ] @ & = + $ , ;) — use it only when encoding a complete URL that must stay a valid URL.
- Reserved vs unreserved characters — RFC 3986 unreserved characters (letters, digits, - _ . ~) never need encoding. Reserved characters (: / ? # [ ] @ ! $ & ' ( ) * + , ; =) are structural in URLs and must be encoded when they appear inside a value, not as a delimiter.
- Double encoding — Encoding an already-encoded string turns '%20' into '%2520', breaking the URL. Always decode before re-encoding if you're not sure of the current state.
Why Use TekPulse URL Encode/Decode?
Share & Embed
Help others discover this free tool. Share it or embed it on your website.
Free to embed with attribution link to tekpulse.in
Related Guides
Frequently Asked Questions
Was this tool helpful?
