What encoding does
Unsafe or reserved characters become %HH sequences so they travel safely in a URL. Decoding reverses the percent escapes to plain text.
Encode values you place in query parameters. Do not double-encode already escaped strings unless you mean to.
Example
A space becomes %20 (or + in some form encodings). “café” becomes caf%C3%A9 in UTF-8 percent encoding.
Decoding %3F yields “?”.
Questions people ask
encodeURI vs encodeURIComponent?
This tool follows component-style encoding suitable for query values, not whole URLs with :// kept intact.
+ vs %20?
Forms often use + for spaces in query strings. %20 is the generic percent-encoding.
Unicode?
Characters are encoded as UTF-8 bytes then percent-escaped.