libidn2

IDNA2008 and Punycode library for international domain names

brewmacoslinux
Try with needOr install directly
Source

About

International domain name library (IDNA2008, Punycode and TR46)

Commands

idn2

Examples

Convert Unicode domain name to ASCII-compatible encoding (Punycode)$ idn2 münchen.de
Convert Punycode domain back to Unicode$ idn2 -d xn--mnchen-3ya.de
Validate international domain name using IDNA2008 rules$ idn2 --check-bidi 日本.jp