Punycode converter

Views: 829
5/5 (2 votes)

For example, 點看 or l'expérience, or испытание.рф

What is punycode?

Punycode is a special encoding used to convert Unicode characters to ASCII, which is a smaller, restricted character set. Punycode is used to encode internationalized domain names (IDN).

How does punycode work?

In this short example we will show the process of converting the Unicode text string pünycode.com into the ASCII text string xn--pnycode-n2a.com which can in turn be used directly in the Domain Name System (DNS).

  1. Each part of the domain name is treated seperately, in this example only the part pünycode needs encoding, .com is left alone.
    pünycode.com
    pünycode
  2. All ASCII characters in the string are copied from input to output, skipping over any other characters.
    pnycode
  3. Then an ASCII hyphen is added to the end of the output.
    pnycode-
  4. Next the remaining non-ASCII characters are encoded with the punycode algorithm. The result is appended after the hyphen.
    encode(ü) – n2a
    pnycode-n2a
  5. Finally the string is preceded with the characters xn-- to uniquely identify that it is a punyencoded domain part.
    xn--pnycode-n2a
    xn--pnycode-n2a.com
How to use
  1. Enter the text you want to convert to punycode.
  2. It will be automaticly converted.
  3. Copy result to clipboard.