How to use URL Encoder, Decoder and Query Editor
- Choose component encoding, form-query encoding or decoding, then paste the value to convert.
- Use component encoding for a value inside an address, not to encode the separators of a complete URL. Form-query mode writes spaces as +.
- To edit a query parameter, enter a complete http or https address, a parameter name and a nonempty new value. Matching duplicate names are all updated.
- Check the converted text or rebuilt address before copying it. Decode mode treats + as a space; use %2B for a literal plus.
Example: URL Encoder, Decoder and Query Editor
Encode tea & coffee as one query value: tea%20%26%20coffee.
Options
- What do you want to do
- Component encoding writes spaces as %20 and escapes separators inside the supplied value. Form-query encoding writes spaces as +. Decode always treats + as a space, so it is not a literal-plus-preserving path decoder.
- Parameter to change and New parameter value
- Fill in both and the tool rewrites that parameter in place, keeping the other pairs, their order and the fragment. A missing name is added at the end.
- Value or web address
- Paste one value, or a complete http or https address to inspect. The page never opens or fetches the address.
- Parameter to change
- Optional. With a parameter name and a new value, that parameter is updated in place.
- New parameter value
- Used with the parameter name. An ampersand in this value is encoded as %26 so it cannot start a new parameter.
Supported inputs and limits
- A full address can be up to 8,000 characters, and a single value up to 500,000.
- Only complete http and https addresses are read, with the scheme and the site name, or the parser refuses them.
- Encoding a component, encoding for a form and decoding are separate jobs, so pick one.
- Duplicate keys, blank values, pair order and the fragment are preserved.
- A percent sign must be followed by two hexadecimal digits, and a stray one is reported with its position.
More details
Live preview uses the selected text operation.
Batch conversion of separate address lines is not provided.
Where your input is processed
This tool does not upload your inputs. See the limits for anything saved on your device.
The parts of one address
In https://shop.example.com/search?tag=tea&tag=coffee&page=2#results, the host is shop.example.com, the path is /search, the query has three pairs and the fragment is #results. Repeated tag keys are intentional. Browsers omit the fragment from the HTTP request, but page scripts can read it, so it is not a safe place to hide private values.
Questions about URL Encoder, Decoder and Query Editor
Why did my encoded value come back as %2520?
The value was encoded twice. The first pass turned a space into %20, and the second wrote a percent sign for the % character, giving %2520. Decode once and look before decoding again.
Can I add a parameter that is not in the address yet?
Yes. Enter the name and value and the pair is appended. When the name already exists, every matching pair is updated instead, which matters for addresses that repeat a key.
When should a space be a plus sign instead of %20?
Only inside a form-style query string, because that is the rule form submissions follow. In a path, a fragment or a value that will be encoded again, use %20, and write a literal plus as %2B.
Does this page visit the address I paste?
This tool never opens or fetches an entered address. It reads the text you paste and rebuilds it, so the tool itself makes no request to that host.