How it works
URLs only safely carry a small set of characters; everything else, spaces, ampersands, equals signs and non-Latin letters, must be percent-encoded before it can ride inside a link or a query string. This page uses the component-safe rules, so an encoded value never breaks the address around it. Decode reverses the process and refuses malformed input instead of guessing.
Formula
A space inside a component is %20, an ampersand %26, an equals sign %3D.
Example
Example in plain words. The text a b&c=100.
Encoded: a%20b%26c%3D100, nine characters in, twenty-one out.
Decoding that string returns the original exactly.
Frequently asked questions
When do I need encoding?
Whenever you put user text into a link: search queries, share links, redirects. Without it an ampersand in the text silently splits your parameters.
Is %20 the same as +?
Only inside traditional form query strings is + read as a space. In paths and in component encoding, always use %20.