Why "café & crème" becomes caf%C3%A9%20%26%20cr%C3%A8me
A URL is plain text with a grammar. The scheme ends at ://, the path is split by /, the query starts at ?, its pairs are split by &, each name is split from its value by =, and # starts the fragment. Those characters are the URL’s punctuation, and the rules that define URLs (RFC 3986) only allow a small set of other characters next to them: letters, digits and - . _ ~. Anything else has to be written as a percent sign followed by two hex digits, one escape per byte. That is percent-encoding.
Take a search for "café & crème". The letters c, a and f are allowed as they are. The é is not ASCII, so it is first turned into its UTF-8 bytes, C3 and A9, and each byte is written as an escape: %C3%A9. The space is byte 20, so it becomes %20. The ampersand is allowed in a URL, but inside a value it would end the value and start a new pair, so it is escaped as %26. Putting it together gives caf%C3%A9%20%26%20cr%C3%A8me, where the è of crème is C3 A8. A server decoding that gets back exactly the text that was typed.
This is the difference between the two modes. Part of a URL escapes the ampersand, the slash, the equals sign and the rest, because you are building one value and none of them may leak out. Whole URL leaves them alone, because they are already doing their job in the address. Encoding a whole address as if it were a part would turn https://example.com/ into https%3A%2F%2Fexample.com%2F, which is no longer a link. Encoding a value as if it were a whole URL would leave an & inside it, and the server would split the value in two. In JavaScript these are encodeURIComponent() and encodeURI(), and choosing the wrong one is one of the most common URL bugs there is.
Decoding has a matching subtlety. In whole URL mode, escapes for the punctuation characters are left as they are: /a%2Fb is a path with one segment named "a/b", while /a/b has two segments, so decoding %2F would change the address. The plus sign is the other trap. HTML forms send a space as +, so in a query string a + means a space, and this tool reads it that way when decoding a part. In a path, though, + is just a plus sign, which is why the encoder always writes %20 for a space: it is the only spelling that means a space everywhere.
Two failures are worth recognising. If decoding complains that an escape is not UTF-8, the text was probably produced by an old system that used Latin-1, where é was the single byte E9 and was written %E9. That cannot be read as UTF-8, and guessing would risk turning it into the wrong letter, so the tool reports it. And if you see %25 in a URL, look twice: %25 is an escaped percent sign, and %2520 is a space that was encoded once to %20 and then again. Double encoding is the most common bug in hand-built URLs, and decoding once more usually reveals it.