URL Encoder / Decoder
Percent-encode special characters in URLs or decode encoded URL strings back to readable text.
Frequently Asked Questions
What is URL encoding (percent-encoding)?
URL encoding replaces characters that are unsafe in a web address — such as spaces, &, ? and / — with a percent sign followed by their hex code (for example a space becomes %20). This keeps links and query strings valid.
When should I URL-encode text?
Encode any value you place into a URL query string, such as search terms, email addresses or redirect targets. This prevents special characters from breaking the link or being misinterpreted by the server.
What is the difference between encodeURI and encodeURIComponent?
encodeURI keeps characters that form a valid URL structure (like : / ? &), so it is for whole URLs. encodeURIComponent encodes those too, so it is for individual components such as a single query parameter value.
Does this tool decode URLs as well?
Yes. Paste an encoded string to instantly decode it back to readable text, and it all happens locally in your browser with nothing uploaded.