How to use this tool
Choose URL component for an individual path segment or query value, or complete URL to preserve URL delimiters. Select Encode or Decode, then copy, swap or clear. Entered URLs are treated as text and are never opened.
How it works
Component mode uses encodeURIComponent/decodeURIComponent. Complete URL mode uses encodeURI/decodeURI, preserving reserved URL delimiters such as : / ? & = #. Standard percent encoding represents Unicode through UTF-8 bytes.
A QUICK EXAMPLE
Put it into practice.
In component mode, a space becomes %20 and & becomes %26. In complete URL mode, https://example.com/?q=hello world keeps URL separators and encodes the space.
Good to know
Input is limited to 1,000,000 UTF-16 code units. Malformed percent escapes, invalid UTF-8 escapes and lone surrogate input are rejected. This tool does not validate a destination or automatically treat + as a space; form encoding has different rules.
Common questions
Which mode should I use for one query parameter?
Choose URL component. Encoding a complete URL preserves separators and can change the meaning of a query value that contains reserved characters.