Spaces, ampersands, and unicode in URLs
Encode applies encodeURIComponent to the entire input string, turning spaces into %20 and escaping characters that break query parsing. Decode runs decodeURIComponent on the pasted value. Work happens locally in your session.
Not the same as HTML form encoding
HTML forms sometimes send spaces as + in application/x-www-form-urlencoded bodies. This tool follows URI component rules (%20 for spaces). Match the encoding your API or framework expects.
Questions
Should I encode the whole URL?
Usually you encode individual parameter values, not scheme or host segments. Encoding an entire URL can double-escape slashes you still need as path separators.
How do I build a full query string?
Parse or assemble key/value pairs with the query string parser, then encode specific values here if a partner expects manual escaping.