AI Tools Free

Punycode Converter

Convert a hostname between Unicode characters and its xn-- Punycode representation.

Free to useNo sign-upRuns in your browser
Enter your details

Enter the inputs, then select Calculate.

Your result
Enter your details

Result will appear here

How Punycode Converter works

The converter normalizes a hostname, applies Punycode to its domain labels, and checks the ASCII structure and Unicode round trip.

The result displays both hostname representations. It does not register the domain, check ownership, or perform a complete IDNA policy assessment.

Remove spaces and URL punctuation that belong outside a hostname.

Unicode and ASCII hostname representations connected label by label.
Illustration of the Punycode Converter workflow.

How to use Punycode Converter

Enter a hostname by itself and choose conversion to ASCII or Unicode.

Enter the hostname and direction

Enter a hostname without a scheme, port, path, query, or email address, then choose Unicode-to-ASCII or ASCII-to-Unicode. Include a trailing dot only if it belongs to the intended hostname.

Hostname
Punycode Converter native input panel with the actual Hostname, Direction settings used for this example.
Configure Hostname, Direction; select Calculate.

Convert the hostname labels

Run the conversion and inspect the selected representation. The supporting ASCII and Unicode forms let you compare the same normalized hostname label by label.

xn--fiqs8s.example
Punycode Converter actual result panel showing xn--fiqs8s.example.
Submitted result: xn--fiqs8s.example. ASCII form: xn--fiqs8s.example.

Copy the representation you need

Copy the selected output and compare it with the required hostname field. Review the conversion-only note: the result does not establish registration, ownership, or legitimacy and is not a complete IDNA assessment.

Output and export
Punycode Converter actual output and export region and result note after submitting the pictured settings.
Review the actual Punycode Converter output and visible Copy result controls. Read the result note.

When to use Punycode Converter

Compare hostname representations while keeping the rest of a URL outside the input.

Decode an xn-- domain name

Convert an xn-- hostname from a configuration or message into a readable form. The decoded letters help identify what was encoded, but a readable result alone cannot establish who controls the domain or whether a linked site should be trusted.

Developer input and configuration represented by document cards.
Prepare the input. Concept illustration.

Encode a Unicode hostname for an ASCII field

Obtain an ASCII representation when a configuration field expects it. Confirm the receiving system accepts the result and apply its own domain validation rules. This converter does not configure DNS, check registration, or test whether the host resolves.

A developer example flowing from input to reviewed output.
Inspect an example. Concept illustration.

Compare two representations

Convert a hostname when a document shows Unicode while a log shows ASCII. Compare corresponding labels to investigate whether they refer to the same encoded name. Preserve the full context because paths and ports are outside this conversion.

Developer output handed to the next stage of a workflow.
Use the result in your workflow. Concept illustration.

Read Unicode and Punycode hostname representations

Compare the Unicode and ASCII hostnames label by label before using either representation.

The result is checked for an ASCII label length up to 63 and a hostname length up to 253 without the trailing root dot. These checks do not provide complete IDNA policy validation.

Conversion does not detect every visually similar character or misleading hostname. Treat the output as a representation of the input rather than a security assessment or availability check.

A developer result reviewed alongside its source.
Review the returned output. Concept illustration.

Check a rejected hostname

Enter the hostname alone and check its spelling separately from any URL path, scheme, or query.

Remove spaces and URL punctuation that belong outside a hostname. Labels must not begin or end with a hyphen. The input length is bounded, and invalid encoded labels are rejected.

If another domain system rejects a converted value, check that system rules rather than assuming conversion guarantees acceptance. Registration policies and full internationalized domain processing can impose requirements beyond this tool.

Input format and assumptions reviewed for a developer task.
Check format and assumptions. Concept illustration.

Convert a hostname to ASCII or Unicode

Enter a hostname by itself and choose conversion to ASCII or Unicode.

Convert a hostname

Punycode Converter: common questions

Answers about using Punycode Converter and understanding its results.

Can it process several domain labels?

Yes. Each non-ASCII label is converted separately.

Is a converted domain safe to visit?

Conversion alone does not establish legitimacy or ownership.

Can I paste a complete URL?

No. Enter the hostname without a scheme, port, path, query, or email address.

Does it preserve an ending dot?

A trailing hostname dot is retained in the selected output. The labels themselves are converted and normalized.