Punycode / IDN Converter
Convert internationalized domain names (IDN) — Japanese, German, and any other Unicode domains — to and from Punycode (xn--) notation. Paste a URL and only the hostname is converted. The RFC 3492 algorithm runs entirely in your browser; nothing is sent anywhere.
How to use
Enter a domain name. In auto-detect mode, input containing an xn-- label is decoded to its Unicode form, and input containing non-ASCII characters is encoded to Punycode. Conversion happens label by label (split on dots), and ASCII-only labels pass through unchanged. Paste a URL containing :// and only the hostname is converted — path and query stay intact. The reverse conversion of the result is shown underneath, so you can confirm the round trip matches.
Punycode is what makes domains like 日本語.jp (a Japanese IDN) work on a DNS infrastructure that only understands ASCII: browsers silently translate them to the xn-- form. Seeing that raw form matters in two situations — configuring DNS records or TLS certificates, where the xn-- name is the real name, and inspecting suspicious links, where a lookalike Unicode domain (e.g. using Cyrillic letters that resemble Latin ones) reveals itself once decoded.
Examples
- 日本語.jp →
xn--wgv71a119e.jp - xn--eckwd4c7cu47r2wf.jp →
ドメイン名例.jp - bücher.example →
xn--bcher-kva.example - https://日本語.jp/path?q=1 →
https://xn--wgv71a119e.jp/path?q=1(hostname only) - example.com →
example.com(ASCII-only passes through)