Skip to main content
Preparing workspace

URL Encoder Decoder Tool

Percent-encode and decode URL text. Export query parameters as JSON objects, grouped values, or ordered pairs. Runs in your browser.

Still loading. If the tool doesn’t appear, reload this page.

Modes with their own page

About this tool

URL Encoder and Decoder

Encode and decode URLs instantly for safe web usage.

Encode or decode a URL component, or inspect its query string in the browser. Encode turns a space into %20, an ampersand into %26 and a slash into %2F. Query JSON displays parameters as a last-value object, grouped arrays, or ordered pairs. The inspector also shows the decoded and re-encoded value of each parameter.

How to use URL Encoder Decoder Tool

  1. Paste the URL, encoded text or query string into the input box. The Sample button loads a test URL containing spaces and an ampersand if you want something to try first.

  2. Pick Encode, Decode or Query JSON. If you use Query JSON, select how to represent repeated parameters.

  3. Copy or download the output. To check an encode or decode round trip, select Use output to feed it back into the input.

Why use URL Encoder Decoder Tool

  • Component encoding, done correctly

    Encode mode uses encodeURIComponent, which escapes : / ? & = # along with spaces — the encoding a value needs before it can sit safely inside a query parameter.

  • Three query export formats

    Export a compact object with one value per key, group all values by key, or keep the parameter sequence as ordered pairs.

  • One-click round trips

    Use output pushes the result back into the input box and flips encode to decode, so you can confirm a string survives the trip unchanged. Copy and a .txt download are one click away.

  • Nothing leaves the page

    Encoding, decoding and query parsing all run on browser built-ins — encodeURIComponent, decodeURIComponent and the URL API. No upload, no server call, no stored history.

Common use cases

  • Escaping a search term or redirect target before it goes into a query parameter, so spaces, ampersands and slashes don't break the link
  • Reading a %-mangled URL out of a server log, an email tracking link or an OAuth redirect_uri to see where it actually points
  • Dumping the UTM and campaign parameters of a long marketing URL to indented JSON to check exactly what is being tracked

Frequently asked questions

Can Query JSON keep repeated URL parameters in order?

Yes. Choose Ordered pairs in Query JSON format to keep each key and value in the order it appeared. All values by key groups repeats into arrays. Last value per key is the default. The preview, copy and JSON download use the selected format.

Link to answer
Which mode options does this tool cover?

1 plus the general encode / decode mode: Escape / unescape. Pick one at the top of the tool; the page link updates (for example ?v=escape-unescape) so you can bookmark or share that exact view.

Link to answer
How do I encode a URL online?

Paste the text into the input box and choose Encode. The tool runs encodeURIComponent on it, so https://example.com/a b comes back as https%3A%2F%2Fexample.com%2Fa%20b. Copy the result, download it as a .txt file, or hit Use output to feed it straight back in for a decode check.

Link to answer
What does %20 mean in a URL?

%20 is a space. Percent-encoding writes a character as % followed by its byte value in hexadecimal, and the space character is 0x20. Paste any string with %20 into Decode mode and you get the readable text back — %26 is &, %3F is ?, %2F is /.

Link to answer
Why does encoding my whole URL turn https:// into https%3A%2F%2F?

Because Encode mode uses encodeURIComponent, which is designed for a single value inside a URL rather than a complete address, and it treats : and / as characters that need escaping. That output is correct when you're embedding one URL inside another — a redirect_uri or a ?url= parameter. If you only want the parameter value escaped, paste just that value instead of the full address.

Link to answer
Why does my encoded URL fail to decode?

Decode mode shows "Input could not be processed for this mode" when the string contains a % that isn't followed by two valid hex digits — decodeURIComponent throws a URIError on sequences like 100% off or a truncated %E2%. A literal percent sign has to be written as %25 before it can be decoded.

Link to answer
How do I see all the parameters in a long URL?

Switch to Query JSON and paste a URL or a query string such as utm_source=news&utm_medium=email. The inspector table shows every parameter. Choose All values by key or Ordered pairs to include repeated keys in the downloaded JSON.

Link to answer
Does a plus sign mean a space when decoding?

It depends on the mode, and this catches people out. Query JSON uses URLSearchParams, which follows form-encoding rules and reads + as a space. Decode mode uses decodeURIComponent, which leaves + exactly as it is. If a value looks wrong in Decode, try it in Query JSON.

Link to answer
What characters does this tool encode?

Everything except the 71 characters encodeURIComponent leaves alone: A–Z, a–z, 0–9 and - _ . ! ~ * ' ( ). Anything else becomes one or more %XX pairs based on its UTF-8 bytes, so é encodes to %C3%A9 and an emoji expands to four pairs. Character counts for both the input and the output are shown above each box.

Link to answer
Is this URL encoder free, and are my URLs uploaded anywhere?

The tool is free and runs encoding, decoding and query parsing in your browser. Text and JSON downloads are created from the output on your device.

Link to answer