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
- Paste a URL or a piece of text into the input.
- Choose Encode component to encode a single value, Encode full URI to encode a complete address while keeping
:/?&=#intact, or Decode. - Copy the output.
- 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++ & rustwith Encode component givesc%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_campaignand 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:
%2520means a%20was 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 byencodeURIComponent.