Utilo

URL Encode / Decode

Encode or decode URLs and URI components with percent-encoding, and parse query strings into readable key/value pairs.

What this URL encoder does

URLs may only contain a limited set of ASCII characters. Spaces, accented letters, emoji and reserved characters such as &, ? and # must be percent-encoded, for example a space becomes %20. This tool encodes text with either encodeURIComponent (for individual query values) or encodeURI (for complete URLs), decodes percent-encoded strings, and breaks any URL into a readable table of query parameters.

How to use it

  1. Paste a URL or a piece of text into the input.
  2. Choose Encode component to encode a single value, Encode full URI to encode a complete address while keeping :/?&=# intact, or Decode.
  3. Copy the output.
  4. If the input or output is a full URL, the query parameters appear below as key-value pairs.

Practical examples

  • Building a search link: encoding the value c++ & rust with Encode component gives c%2B%2B%20%26%20rust, which is safe to place after ?q=.
  • Reading tracking links: decode a long marketing URL to see its utm_source, utm_campaign and redirect target in plain text.
  • Redirect parameters: when a URL is itself a parameter (?next=https://...), it must be encoded as a component, or its own & characters will break the outer URL.
  • International domains and paths: encode /café/menü for systems that do not accept raw Unicode.

Tips and edge cases

  • Use component encoding for values, never for the whole URL; it would encode the :// too.
  • HTML forms encode spaces as + instead of %20. The decoder converts + to a space for convenience.
  • Double encoding is a common bug: %2520 means a %20 was encoded again. Decode twice to recover the original.
  • Invalid sequences such as a lone % produce a "Malformed URI" error rather than a partial result.
  • Characters -, _, ., !, ~, *, ', ( and ) are never encoded by encodeURIComponent.

Frequently asked questions

What is the difference between encodeURI and encodeURIComponent?

encodeURI leaves characters that have meaning in a URL structure, such as /, ?, & and #, untouched. encodeURIComponent encodes them, which is what you need for a single parameter value.

Why does a space sometimes become + and sometimes %20?

%20 is the URL standard. + comes from the application/x-www-form-urlencoded format used by HTML forms. Both are widely understood in query strings, but only %20 is valid in paths.

Is URL encoding the same as Base64?

No. Percent-encoding keeps readable characters as they are and escapes only unsafe ones. Base64 transforms all bytes and is not human-readable.

Does the tool send my URLs anywhere?

No. Encoding and decoding use the browser's built-in functions locally.

Yes. All processing happens directly in your browser using JavaScript, Web Workers and Web APIs. Nothing you type, paste or upload is sent to our servers.