What is URL encoding?
URL encoding (percent-encoding) replaces special characters with a % sign followed by two hexadecimal digits. For example, a space becomes %20 and & becomes %26. This ensures URLs are valid and can be safely transmitted over the internet.
URL decoding reverses this process, converting percent-encoded sequences back to their original characters. This is commonly used when parsing query strings, handling form submissions, or debugging API requests.
This tool uses the standard encodeURIComponent / decodeURIComponent functions, which encode all characters except letters, digits, -, _, ., and ~.