The Punycode Converter is a local tool that converts Unicode domain labels to ASCII Punycode and back entirely in your browser.
Use it when a DNS or certificate field needs an ASCII hostname, or when you want to inspect an xn-- name before relying on it. The converter handles a domain name, not a complete URL, and its output still requires validation by the system that will use it.

Local label conversion
Paste a domain, select a direction, convert, and copy.
The computation happens locally. Every label is processed in the browser with the RFC 3492 Bootstring algorithm rather than being submitted to a remote conversion service. The result is deterministic for the tool’s declared raw-label convention, so the same accepted input and mode produce the same converted domain. The underlying encoding is defined by RFC 3492.
Know what goes into the converter
Paste only a domain name, such as bücher.example or xn--bcher-kva.example. A domain can contain one label or several labels separated by dots. The tool deliberately stops at the hostname boundary and does not accept a scheme, path, port, query string, or fragment.
- Empty labels are rejected.
- Malformed encoded digits and malformed Bootstring sequences are rejected.
- Invalid Unicode scalar values are rejected.
- Input above 1,000 code points is rejected.
The converter does not perform percent decoding, DNS resolution, WHOIS requests, registrar checks, or domain-availability testing. It also is not a complete browser URL parser, so an address copied from a browser’s address bar may need to be reduced to its hostname first.
Convert a domain name in four steps
Use this workflow for either a Unicode internationalized domain or an ASCII name containing xn-- labels.
- Isolate the hostname. Remove the scheme, port, path, query, and fragment. For example, retain only example.com from a complete web address. The guide Convert a URL to Punycode: Extract the Domain First provides a focused way to identify that boundary.
- Select the conversion direction. Choose Unicode-to-ASCII when starting with a readable Unicode domain. Choose ASCII-Punycode-to-Unicode when starting with an ASCII domain whose labels use the xn-- prefix. Decode mode applies Bootstring decoding only to labels carrying that prefix.
- Convert and inspect every label. Run the conversion, then check each part of the result separately. For example, bücher.example becomes xn--bcher-kva.example. The xn-- prefix is added or consumed only at label boundaries, so a multi-label domain can contain both ordinary ASCII labels and encoded labels.
- Copy and validate the output. Copy the converted domain, which contains no scheme or trailing slash. Pass it to the target registry or a standards-compliant URL library, and compare each label carefully for look-alike characters before using it.
Do not move an xn-- prefix between labels by hand. It is part of the encoded label, and the conversion tool handles that boundary consistently.
Select the mode that matches your task
Encoding prepares non-ASCII labels for an ASCII-only field, while decoding reveals the Unicode spelling represented by an xn-- label.
| Mode | Expected input | Output behavior | Practical use |
|---|---|---|---|
| Unicode-to-ASCII | A Unicode domain name | Adds xn-- to labels containing non-ASCII code points; ordinary ASCII labels are lowercased and otherwise unchanged. | Preparing a hostname for a DNS or certificate field that requires ASCII. |
| ASCII-Punycode-to-Unicode | An ASCII domain with xn-- labels | Consumes the prefix and Bootstring-decodes only qualifying labels. | Inspecting an encoded domain before visiting or comparing it. |
Use encoding when an authoritative consumer requires ASCII, and use decoding to understand what an encoded name represents. Punycode is not a language translator: decoding exposes the represented Unicode spelling but does not provide pronunciation, translation, or evidence that the name belongs to a particular organization.
How labels and prefixes are handled
Domain labels are separated before conversion, so each label is processed independently. Unicode full stops commonly used in CJK text are normalized to ASCII dots. During encoding, a label containing non-ASCII code points receives the xn-- prefix after its content is converted.
- Existing ASCII characters are copied first, while non-ASCII values are represented with variable-length deltas.
- The Bootstring algorithm adjusts its bias as values are processed.
- The implementation iterates Unicode code points rather than UTF-16 halves, which keeps supplementary characters intact.
- Decode mode validates the encoded payload and rejects malformed Bootstring input.
The prefix belongs to an individual label, not to the complete hostname. For example, in a mixed domain, one label may remain ordinary ASCII while another becomes an xn-- label. This separation is central to preserving the domain’s label boundaries.
Why another system may show another result
This page performs raw RFC 3492 label conversion. Browsers may instead apply Unicode normalization, contextual rules, and UTS #46 mapping before running Punycode encoding. Full URL systems also handle components that this converter deliberately excludes. The WHATWG URL Standard describes that broader application context.
As a result, a browser, certificate service, or registry can produce a different representation or make a different acceptance decision from the raw conversion shown here. The tool does not promise identical acceptance decisions across those systems. Registries may also enforce label-length, reserved-name, and other IDN policies after conversion.
If a registrar rejects a result, follow that registry’s IDN policy rather than altering characters blindly. Punycode conversion and registry validation solve different parts of the task.
Validate the domain before relying on it
A successful conversion establishes only that the input could be transformed under the documented raw-label rules. It does not prove that the domain exists, is available, is trustworthy, or will be accepted by a particular service.
- Check availability with the authoritative source. Use the target registry or registrar because the converter makes no availability request.
- Inspect every label and writing system. Characters from different writing systems can look nearly identical, so compare the spelling and organization independently.
- Use a URL library for complete addresses. Let a standards-compliant implementation handle schemes, paths, ports, queries, fragments, and application-specific mapping rules.
- Keep security checks separate. A valid encoding is reversible encoding, not a security verdict; retain separate filters and trust checks for suspicious domains.
Label-length limits and registry policies still apply after conversion. A syntactically encoded label may be too long, reserved, blocked, or unavailable. Decoding an xn-- name helps with inspection, but the resulting Unicode text can still be deceptive if it imitates a familiar organization or writing system.
Related reading: Text to Hex on Windows: Paste, Encode, Copy.