This tool performs URL percent encoding, not Punycode. For Punycode, use the Punycode converter.
URL encode and decode text
Text:
example:
hello world & morePercent encoding:
example:
hello%20world%20%26%20moreHow to use the URL encoder?
- Enter text on the left side to URL encode it, or enter percent-encoded text on the right side to decode it
- Spaces become
%20; non-ASCII characters become percent-encoded UTF-8 bytes. - The tool uses
encodeURIComponentanddecodeURIComponenton the whole input. It leaves letters, digits,-,.,_,~,!,',(,), and*unchanged when encoding; the last five are reserved in RFC 3986.
Reading the byte escapes in a URL
Percent-encoding, often called URL encoding, writes a byte as % followed by two hexadecimal digits — the %XX form defined in RFC 3986. A space becomes %20 and an ampersand used as data can become %26; which characters need escaping depends on the URL component. Internationalized URLs use UTF-8 bytes for non-ASCII text before percent-encoding, while internationalized domain names use IDNA and Punycode for the host labels.