A Punycode converter on Mac can encode Unicode domain labels into ASCII Punycode or decode xn-- labels back to Unicode, entirely in the browser. This makes it useful for preparing an internationalized domain name for a DNS or certificate field, or for inspecting an encoded name before you use it.
The Punycode Converter expects a domain name rather than a complete web address. It separates that name into labels, converts the relevant labels with the RFC 3492 Bootstring algorithm, and displays a deterministic result that can be copied for later validation.

What the Mac browser tool converts
The converter handles two directions. Unicode-to-ASCII adds the xn-- prefix to each label containing non-ASCII characters. ASCII-Punycode-to-Unicode removes and decodes that prefix on labels that carry it. Ordinary ASCII labels are not Bootstring-decoded; they remain ASCII, with ordinary ASCII labels lowercased and otherwise unchanged.
This is deliberately narrower than a browser URL parser. A complete URL can contain a scheme, hostname, port, path, query, and fragment, but this tool accepts only the domain-name portion. It also does not percent-decode URL data, resolve DNS, check registration availability, or contact a registry.
| Task on the Mac | Conversion direction | What to confirm |
|---|---|---|
| Prepare a Unicode domain for a DNS or certificate field | Unicode-to-ASCII | Every non-ASCII label starts with xn--, while ordinary ASCII labels remain ASCII. |
| Inspect an xn-- name before opening it | ASCII-Punycode-to-Unicode | The represented Unicode spelling, its script, and any potentially misleading look-alike characters. |
| Check a domain containing several labels | Match the direction to the source text | Every dot-separated label and the location of each xn-- boundary. |
| Compare browser, library, or registrar output | Either direction | Whether normalization or contextual IDN rules produced a different result. |
The copy button copies only the converted domain. It does not add a scheme or trailing slash, which keeps the output suitable for a hostname field rather than a full navigation URL.
Convert a domain on your Mac
Use this browser workflow when you need a raw Punycode conversion on a Mac.
- Open the Punycode Converter page in your Mac browser. The conversion runs locally in the browser, so the submitted domain does not need to be processed by a remote conversion service.
- Paste only the domain name. For example, enter bücher.example without https://, a path, port, query string, or fragment. A leading www. is acceptable when it is genuinely part of the domain being converted.
- Choose the matching conversion direction and run the conversion. Select Unicode-to-ASCII when a DNS or certificate field requires ASCII. Select ASCII-Punycode-to-Unicode when starting with an xn-- domain.
- Inspect every label in the result. In encode mode, each non-ASCII label should have received xn--. In decode mode, only labels carrying that prefix should have been Bootstring-decoded. For example, bücher.example becomes xn--bcher-kva.example, while an ordinary ASCII label is not given the prefix.
- Copy the converted domain. Use the copy button so the result contains the domain alone, without a scheme or trailing slash.
- Validate the output with its intended consumer. Submit the ASCII form to the target registry or a standards-compliant URL library. If you decoded a name for inspection, compare the Unicode spelling with the official source you trust.
- Check the organization and writing system separately. A valid conversion confirms the encoding relationship, not the identity or trustworthiness of the destination. Look-alike characters from different scripts can make unrelated domains appear similar.
Keep the original Unicode and converted ASCII forms side by side while checking the result. This makes it easier to identify an unexpected label change without editing characters blindly.
See how each label is processed
Dots are split before conversion, so xn-- handling occurs independently within each label rather than across the entire domain. Unicode full stops commonly used in CJK text are normalized to ASCII dots before the labels are separated. This preserves the domain’s label boundaries during conversion.
During encoding, existing ASCII characters are copied first. Non-ASCII code points are represented by variable-length deltas, and the algorithm adjusts its bias as it processes those values. The implementation uses the fixed RFC 3492 parameters: base 36, tmin 1, tmax 26, skew 38, damp 700, initial bias 72, and initial code point 128. The resulting payload uses basic ASCII letters, digits, and hyphens.
Decoding is narrower still. Only labels carrying the xn-- prefix are Bootstring-decoded, and the resulting Unicode scalar values are validated. The implementation iterates Unicode code points rather than UTF-16 halves, so supplementary characters remain intact. A syntactically correct result can still fail a registry’s character, length, or reserved-name policies.
Punycode is also not a language translator. Decoding reveals the Unicode spelling represented by an ASCII label; it does not explain pronunciation, translation, ownership, or whether the label belongs to the organization it resembles.
Why browser results can differ
Browsers and URL systems may apply Unicode normalization, contextual rules, and UTS #46 mapping before RFC 3492 encoding. The WHATWG URL Standard describes that broader URL-processing context. This converter instead exposes the documented raw label conversion, so its result can differ from a browser’s displayed or submitted form even when both outputs are valid.
That difference does not automatically mean one side is wrong. Use a standards-compliant URL library for full application URLs, and follow the target registry’s IDN policy when it rejects a converted name. Do not alter characters arbitrarily to force agreement, because that can change the intended domain and bypass a security comparison.
If your source is a complete URL rather than a hostname, first isolate the domain portion. The guide Convert a URL to Punycode: Extract the Domain First explains why the URL components must be separated before using this label converter.
Validate the domain before use
Punycode conversion is reversible, but that does not make a domain safe, available, or authoritative. Treat the converted name as a candidate that still needs checking by the system that will consume it.
- Check label length and registry policy. A label may be correctly encoded but still be too long, reserved, blocked, or unavailable for the target registry.
- Review every Unicode label. Compare the writing system and characters with information obtained from a trusted organization rather than relying only on visual similarity.
- Look for cross-script look-alikes. Characters from different writing systems can be nearly identical, creating opportunities for homograph attacks.
- Keep security checks separate. A successful conversion is not evidence that the domain is safe to visit. Use independent security filters and verify the organization’s domain through a trusted channel.
- Validate the final ASCII form. Confirm that the target registry or URL library accepts the exact result that will be configured or submitted.
Limits that matter on Mac
The converter rejects inputs that fall outside its raw label-conversion scope instead of silently repairing them.
- Empty labels, malformed Bootstring digits, incomplete encoded sequences, and invalid Unicode scalar values are rejected.
- Submitted inputs above 1,000 code points are rejected.
- Schemes, paths, ports, query strings, fragments, and percent-encoded URL data are not accepted.
- The tool does not resolve DNS, test registration availability, or contact a registrar or registry.
- Label-length restrictions and registry policies still apply after a successful conversion.
These boundaries keep the output predictable. For a Mac task involving an IDN hostname, use the converter for the reversible encoding step, then let the authoritative registry or URL library make the final acceptance decision.
If you're weighing options, Text to Hexadecimal: A Practical UTF-8 Debugging Workflow covers this in detail.