URL Encoder, Decoder and Query Editor

Encode or decode web-address values, edit query pairs and inspect a live conversion preview.

On-device No sign-up Free to use

Build the address controls

Showing an example. Edit to see your own.

?

Paste one value, or a full https:// address to inspect or edit.

?

Optional. With a parameter name and a new value, that parameter is updated in place.

?

Used with the parameter name. An ampersand in this value is encoded as %26 so it cannot start a new parameter.

Processed in your browser. Your inputs stay on this device.

Result

Showing an example.

Encode tea & coffee as one query value: tea%20%26%20coffee.

Encoded 12 characters. Spaces became %20. Use the result as an encoded component, not as a complete address.

Loading the tool. Your result will appear here.

https://usefreetools.net/url-encoder-decoder · 20 November 2026

Was this helpful?

How to use URL Encoder, Decoder and Query Editor

  1. Choose component encoding, form-query encoding or decoding, then paste the value to convert.
  2. Use component encoding for a value inside an address, not to encode the separators of a complete URL. Form-query mode writes spaces as +.
  3. 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.
  4. 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.

You add
What do you want to do: encode-component; Value or web address: tea & coffee
You get
Encoded 12 characters. Spaces became %20. Use the result as an encoded component, not as a complete address.

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.

Page updated · Project managed by Tony Hines · Report a problem with URL Encoder, Decoder and Query Editor

Related reading

All guides