How to Use the Punycode Encoder Online
- 1Paste the hostname you want to encode. Include the scheme, such as https://, when you want the returned value to include the full URL.
- 2Inspect labels separated by dots. An internationalized label may appear with the xn-- prefix, while an ordinary ASCII label can stay readable.
- 3Copy the resulting hostname for a hostname field, or use the returned full URL when your setting also needs the scheme and path.
- 4Use the Punycode Decoder on the resulting hostname when you want to check its Unicode spelling.
Input & Output Examples
The first label gains a Punycode prefix and the ASCII suffix stays as written.
bücher.examplexn--bcher-kva.exampleThe hostname becomes ASCII while the URL keeps its scheme, path, and query.
https://café.example/menu?day=1https://xn--caf-dma.example/menu?day=1Practical Developer Workflows
- Compare a human-readable hostname with the ASCII spelling used in a configuration or troubleshooting log.
- Prepare test fixtures for clients that receive domain names typed in several languages.
- Inspect how a browser-style URL parser serializes the hostname before copying it into a callback or integration setting.
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.