LinuxCommandLibrary

idn

converts internationalized domain names

TLDR

Encode to Punycode

$ echo "münchen" | idn
copy
Decode from Punycode
$ echo "xn--mnchen-3ya" | idn -d
copy
Convert domain
$ idn [example.日本]
copy
Use IDNA 2008
$ idn --idna2008 [domain]
copy
Quiet mode
$ idn -q [domain]
copy

SYNOPSIS

idn [options] [strings]

DESCRIPTION

idn converts internationalized domain names. It encodes Unicode domains to ASCII-compatible Punycode and decodes back.
The tool implements IDNA standards for domain name internationalization. It handles non-ASCII characters in domain names.

PARAMETERS

STRINGS

Strings to convert.
-d, --decode
Decode from Punycode.
-a, --ascii
Output ASCII only.
--idna2008
Use IDNA 2008 standard.
-q, --quiet
Quiet mode.
--help
Display help information.

CAVEATS

Part of libidn. IDNA2003 vs IDNA2008 differences. Punycode prefix is xn--.

HISTORY

idn is part of GNU Libidn for internationalized domain name handling.

SEE ALSO

host(1), dig(1), idn2(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community