Punycode converter
Choose Encode to get xn-- labels, or Decode to restore the domain characters. In a URL, the rest stays in place. Processing stays in your browser.
Result
https://xn--mnich-kva.example/été?q=caféPunycode domain
Inputs
- Action
- Encode
- Domain or URL
- https://münich.example/été?q=café
How it is calculated
Only the hostname is converted; the protocol, port, path and query are preserved.
Result
Punycode domain
How it is calculated
- Only the hostname is converted; the protocol, port, path and query are preserved.
- Unicode domains use the browser’s IDNA processing; xn-- labels are decoded to Unicode.
- Conversion runs locally in your browser.
Example
https://münich.example/été?q=café becomes https://xn--mnich-kva.example/été?q=café.
Good to know
- Punycode applies to domain names, not URL paths or query text.
- Invalid domains or Punycode labels are rejected.
Frequently asked questions
What is this tool used for?
Choose Encode to get xn-- labels, or Decode to restore the domain characters. In a URL, the rest stays in place. Processing stays in your browser.
How is the result calculated?
Only the hostname is converted; the protocol, port, path and query are preserved.
What should I check before using the result?
Punycode applies to domain names, not URL paths or query text.