Two kinds of encoding
encodeURIComponent escapes everything that is not a safe URL character, which is what you want for a query parameter value. encodeURI leaves the structure characters, including "/", ":", "?", "&" and "=", intact, which is what you want when passing a whole address along. The checkbox switches between them and is off by default, so component encoding is used unless you opt in.
Options
- Uppercase hex digits turns %2f into %2F, the form RFC 3986 prefers.
- Spaces as plus produces form-style encoding instead of %20.
- Decoding converts %XX sequences and treats "+" as a space.
The round-trip check
After encoding or decoding, the tool re-applies the inverse and compares the result with the original. A "clean" badge means the transform is reversible for this input; "differs" usually signals a lossy choice such as spaces to plus signs. It is a useful warning that form encoding cannot always be undone.
Where it stops
There is no parameter-by-parameter breakdown; the whole string is handled as one value. A malformed escape such as a lone "%" raises an error instead of passing through, and Latin-1 byte escapes are not supported. To split a query string into its parts use the query string parser; to turn text into a clean path segment use the URL slug generator.
Questions people ask
Why did my URL break after encoding?
Component encoding probably escaped the slashes and question mark. Turn on whole-URL mode.
Is "+" always a space?
Only in form data. In a path segment, "+" is a literal plus sign.