Formatting
URL decoder starts on decode and uses decodeURIComponent, which is the function that undoes a query value. a%20b%2Fc%3Fd%3De%26f becomes a b/c?d=e&f. The space, the slash, the question mark, the equals sign and the ampersand were all encoded, so they all come back. A plus sign is not a space here. decodeURIComponent does not treat + as a space; the query-string parser does.
That distinction is why a value copied from a query string sometimes still shows plus signs after a visit to this page. If the encoder was URLSearchParams, spaces left as +. If the encoder was encodeURIComponent, spaces left as %20. Decode the form you actually have. A stray % that is not followed by two hex digits throws.
The encoder page is the same pair of functions with Direction starting on encode. encodeURI, the looser function that leaves / ? & = alone, is not what either page runs.
Direction decode. a%20b%2Fc%3Fd%3De%26f
a b/c?d=e&f
Plus signs stay plus signs. If this page turned them into spaces, it would disagree with decodeURIComponent and hide which encoder was used.
This page calls decodeURIComponent. Plus is a literal plus. In a query string built with URLSearchParams, + means space, and the query parser is the page that applies that rule.
encodeURI leaves / ? # & = and a few other characters alone, so it can encode a whole URL. encodeURIComponent encodes those characters, so it is safe for one component. This decoder undoes encodeURIComponent. a%20b%2Fc%3Fd%3De%26f is a component, and it decodes to a b/c?d=e&f.
A % that is not followed by two hex digits throws. The page does not skip it.
%2520 becomes %20, not a space. Decode again if the value was encoded twice.