Dev Tools
  1. All dev tools
  2. URL encode and decode

URL encode and decode

Percent-encode text so it is safe in a URL or query string, or decode %-escaped text back to normal. Paste a full URL to see its query parameters.

How to use the uRL encode and decode

  1. Choose Encode or Decode.
  2. For encoding, pick "a value" for query parameters, or "a whole URL" to keep / ? & = as they are.
  3. Copy the result.

Questions

Which mode should I use?

"A value" (encodeURIComponent) escapes everything except letters, digits and - _ . ! ~ * ' ( ), which is right for one query parameter. "A whole URL" (encodeURI) leaves : / ? # & = alone so the URL still works.

Why does + become a space when decoding?

In form submissions and many query strings, + means a space. Untick "Treat + as a space" if your + signs are real plus signs.

Is my data sent anywhere?

No. Everything runs in your browser with JavaScript. What you paste is never sent to a server, and the site's security policy stops the page from connecting to any other website. That matters for tokens, keys and customer data, which people paste into tools like this every day.