What is URL Encoding?
URL encoding (also known as Percent-encoding) is a mechanism for encoding information in a Uniform Resource Identifier (URI). Since URLs can only be sent over the Internet using the ASCII character-set, special characters outside this set must be converted into a valid format.
Why do we need it?
If your URL contains characters like spaces, symbols, or non-ASCII letters, the browser might misinterpret them. Encoding converts a space into %20 or +, ensuring the web server processes the link correctly.