Punycode
Domain to encode, or xn-- domain to decode.
Encode internationalized domain names like münchen.de into Punycode (xn--mnchen-3ya.de) or decode them back. Implements the RFC 3492 algorithm label by label.
Domain to encode, or xn-- domain to decode.
Punycode compresses Unicode characters into an ASCII string using a clever variable-length encoding defined in RFC 3492. Each domain label containing non-ASCII characters gets an xn-- prefix, so münchen.de becomes xn--mnchen-3ya.de. The DNS system only understands ASCII, which is why this translation exists.
Browsers show the xn-- form in the address bar for suspicious domains as a phishing defense, email systems use it for internationalized addresses, and SSL certificates list it in subject alternative names. Developers meet it when configuring DNS for non-ASCII brands.