How url encoder & decoder works
URL encoding (also called percent encoding) converts special characters into a format that can be safely transmitted in a URL. Characters that are not allowed in a URL, like spaces, ampersands, and non-ASCII characters, are replaced with a percent sign followed by their hexadecimal code (e.g. space becomes %20).
This tool uses the standard encodeURIComponent and decodeURIComponent functions. Encoding replaces all unsafe characters. Decoding reverses the process, converting percent-encoded sequences back to their original characters.
URL encoding is essential when building query strings, passing data in URLs, or working with APIs. For example, a search query like "hello world & co" must be encoded to "hello%20world%20%26%20co" before it can be used in a URL.