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.

When to use it

  • Find the xn-- form of a domain name with accents before setting up DNS.
  • Read a strange xn-- address seen in a log or a certificate.
  • To encode the rest of the address, use the URL encoder and decoder.

Frequently asked questions

Why does a domain start with xn--?

The DNS only accepts plain letters, digits and hyphens. The xn-- prefix marks a label that holds other characters in Punycode form.

Can a lookalike domain be a scam?

Yes. Some letters from other scripts look like Latin ones, such as the Cyrillic а. Converting the domain shows its real xn-- form.

Does the part after the domain use Punycode?

No. Only the domain name does. The path and the query use percent-encoding instead.

Updated October 11, 2026

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