Why URLs need encoding
URLs can only safely contain a limited set of characters — spaces,
ampersands, question marks and other symbols have special meaning in a URL
or break it outright, so they need to be "percent-encoded" (like
%20 for a space) before being placed in a query string or
path. This tool uses JavaScript's encodeURIComponent and
decodeURIComponent, which correctly handle Unicode text as
well as plain ASCII — useful when building links, debugging query
parameters, or working with redirect URLs that have been encoded once (or
sometimes twice) already.