Percent-encode text for URLs — with the component/full-URL distinction that most encoders get wrong.
Ctrl + Enter to run
Percent-encoding escapes the characters that would otherwise be read as URL structure rather than as data. A query value containing `&`, `?`, `/` or a space changes the meaning of the URL around it, and the failure is silent: the request succeeds and the server receives something other than what you sent.
Encode the value, never the whole URL — running a complete address through an encoder escapes the separators that make it a URL at all. Note also that a space becomes `%20` in a path and may be `+` in a form-encoded query body, which is a genuine difference rather than a matter of taste.