Turn an international domain into ASCII punycode, or turn xn-- labels back into letters.
DNS labels are ASCII. A name such as münchen or 中文 is stored as a punycode label that starts with xn--. This page converts those labels. It is not a URL encoder: slashes, the query and the hash stay as you typed them. To split a finished address, use URL parser.
https://münchen.example/path going to ASCII.@ is converted. The path, including Chinese characters in it, is left alone.xn-- label shows an error instead of a half-decoded name.Each dot-separated label is converted on its own. ASCII labels such as example stay ASCII. münchen.de becomes xn--mnchen-3ya.de. 中文.com becomes xn--fiq228c.com. The scheme, the path and the query are not punycode. Applying the opposite direction brings the letters back. This is the IDNA encoding used in hostnames, not a general text cipher.
xn-- name from a certificate or a DNS export.Punycode applies to DNS labels, not to the path. A path is encoded with percent-encoding if the next system requires it.
That is the local part. Only the domain is a hostname.