Encode or decode URL components and special characters.
Percent-encode text so it can sit safely inside a URL, or decode percent-encoded strings back to readable text. Choose Component mode (encodeURIComponent) for single values such as query parameters, or Full URL mode (encodeURI) for a whole address. It updates live as you type, which suits developers debugging links, redirects and API requests.
URL encoding, also called percent-encoding, replaces characters that have special meaning or are not allowed in a URL with a percent sign followed by two hexadecimal digits of each UTF-8 byte. A space becomes %20, an ampersand %26 and the letter e with an acute accent %C3%A9. Reserved characters such as ? & = # / delimit parts of a URL, so a value containing them must be encoded or the URL will be parsed differently than intended. JavaScript provides two functions: encodeURIComponent, which escapes nearly everything, and encodeURI, which leaves URL structure characters alone.
Component mode uses encodeURIComponent and escapes reserved characters such as / ? & = # and :. Full URL mode uses encodeURI and keeps them, because they are needed for the URL structure.
encodeURIComponent and encodeURI produce %20 for spaces. A plus as a space is a convention of HTML form encoding, which this tool does not apply.
The input was already percent-encoded, and its percent signs were encoded again. Decode once, or encode only the raw text.
Yes. Characters are converted to UTF-8 bytes and each byte is written as a percent sequence.
Encode each value separately in Component mode, then join them with ampersands. To split an existing query string into keys and values, use the Query Params to JSON tool.