URL Encoder / Decoder
Encode or decode URLs and query string parameters using percent-encoding (RFC 3986).
What is URL Encoding?
URL encoding (also known as percent-encoding) converts characters that are not allowed in URLs into a format that can be transmitted over the internet. Special characters are replaced with a percent sign (%) followed by two hexadecimal digits representing the character's ASCII code. For example, a space becomes %20.
How to Use
- 1.Choose Encode to convert a URL/text to percent-encoded format, or Decode to reverse it.
- 2.Paste your URL or query string into the left box.
- 3.The result appears instantly in the right box.
- 4.Use Swap to flip input and output.
Common Use Cases
Query String Parameters
Encoding search queries and filter values in API request URLs.
Form Data Submission
HTML forms encode data as application/x-www-form-urlencoded before sending.
Bookmark & Share URLs
Safely encode URLs with special characters for sharing in emails or messages.
API Development
Building REST API clients that pass complex data in URL parameters.
FAQ
What's the difference between encodeURI and encodeURIComponent?
encodeURI encodes a full URL (preserving :, /, ?, #, etc.) while encodeURIComponent encodes a URL component (parameter value), encoding those characters too. This tool uses encodeURIComponent.
Why is space encoded as %20 or +?
In query strings, spaces can be represented as either %20 (standard percent-encoding) or + (form encoding). This tool uses %20 (encodeURIComponent standard).
Is this tool safe to use with passwords?
Yes — all processing happens in your browser. Nothing is sent to our servers.