Many URL bugs are caused by treating a complete URL and a single query value as if they require the same transformation.
Encode a query value before inserting it…
Encode a query value before inserting it into a query string. Keep structural characters such as the scheme separator and path separators under the control of the URL builder.
Spaces, ampersands, question marks, and non-ASCII characters…
Spaces, ampersands, question marks, and non-ASCII characters have special meaning in URLs. Component encoding prevents a value from accidentally being interpreted as new URL structure.
Encoding does not make a link trustworthy.…
Encoding does not make a link trustworthy. Validate destinations, use HTTPS where appropriate, and treat user-provided URLs as untrusted data.
Use the related tool carefully
This guide is paired with a browser-only utility. The tool is a practical aid for small examples and inspection; it is not a substitute for application testing, a formal data pipeline, or professional review where the decision has higher consequences.
Open the related URL Encoder and Decoder