URL Encoder and Decoder
Percent-encode a query value or a whole URL, decode one back, and see every query parameter in a table.
Free · No sign-up · Your inputs stay in your browser
Input
Encode or decode a URL
Output
Result
| Query key | Decoded value |
|---|---|
| q | laravel queues |
| sort | new |
Runs in this browser. Nothing you paste is sent to a server.
About this tool
Method, assumptions, practical next steps, and limits.
Which function to use
encodeURIComponent escapes &, =, ? and /, so it is the one for a single query value or path segment. encodeURI leaves them alone so a full URL keeps its structure. Encoding a value with encodeURI is the classic bug: an & inside the value splits it into two parameters.
Spaces: %20 or +?
Both appear. %20 is the URL encoding of a space; + means a space only in application/x-www-form-urlencoded data, such as an HTML form submission. PHP's urlencode() produces + and rawurlencode() produces %20.