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.

Punycode converter

Action
A full URL can include its protocol, port and path.

Result

https://xn--mnich-kva.example/été?q=caféPunycode domain

Punycode converter

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

https://xn--mnich-kva.example/été?q=café

How it is calculated

  1. Only the hostname is converted; the protocol, port, path and query are preserved.
  2. Unicode domains use the browser’s IDNA processing; xn-- labels are decoded to Unicode.
  3. 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.

Updated October 11, 2026

Indicative result. For an important decision, check with a professional.