Web & Developer Utilities100% Client-Side

IDN and Punycode Encoder

Paste an internationalized domain name to see the ASCII representation used for hostnames. The URL parser converts eligible non-ASCII labels to Punycode with an xn-- prefix. You can enter a bare hostname to get only the host, or include a scheme to get back a normalized URL. This is useful when a configuration, test, or diagnostic command expects ASCII and you need to compare it with the name people read.

Input
10 chars•1 lines
Output

Reverse tool

Punycode Decoder

Decode xn-- domain labels to their Unicode spelling. Inspect internationalized hostnames from browser tools, configuration files, test fixtures, or logs.

Open Punycode Decoder
Example input
xn--mnchen-3ya.de
Example output
münchen.de

How to Use the Punycode Encoder Online

  1. 1Paste the hostname you want to encode. Include the scheme, such as https://, when you want the returned value to include the full URL.
  2. 2Inspect labels separated by dots. An internationalized label may appear with the xn-- prefix, while an ordinary ASCII label can stay readable.
  3. 3Copy the resulting hostname for a hostname field, or use the returned full URL when your setting also needs the scheme and path.
  4. 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.

Input Sample
bücher.example
Expected Output
xn--bcher-kva.example

The hostname becomes ASCII while the URL keeps its scheme, path, and query.

Input Sample
https://café.example/menu?day=1
Expected Output
https://xn--caf-dma.example/menu?day=1

Practical 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.

Notice a bug, calculation error, or outdated info?

Let us know directly so our engineering team can fix it.

Frequently Asked Questions

With an explicit scheme, the tool returns the URL parser’s serialized result. That can include other normalization, such as a lowercased hostname or percent escapes for some path characters. Compare the complete result when exact spelling elsewhere matters.

Explore Other Tools

12 suggested tools

View all tools