How to Use the Punycode Encoder for Unicode Domains
- 1Paste the hostname, keeping the dots between its labels.
- 2Check which labels start with xn-- in the result. Each such label represents an internationalized portion of the hostname.
- 3Copy the ASCII hostname into the field or fixture that expects it.
- 4Paste the result into Punycode Decode to compare it with the intended Unicode spelling.
Input & Output Examples
The middle label is encoded while the surrounding ASCII labels remain in place.
www.bücher.dewww.xn--bcher-kva.deBoth labels contain Japanese characters and get their own xn-- prefix.
例え.テストxn--r8jz45g.xn--zckzahPractical Developer Workflows
- Prepare an internationalized hostname for a configuration field that expects the ASCII version.
- Build a test case that checks whether an application's domain display handles both Unicode and Punycode labels.
- Compare the hostname shown to a visitor with the ASCII name stored in an exported record.
Zero Server Uploads & Complete Privacy
Runs 100% in your browser; no data is uploaded to any server.
Let us know directly so our engineering team can fix it.