Skip to main content
L
Loopaloo
Buy Us a Coffee
All ToolsImage ProcessingAudio ProcessingVideo ProcessingDocument & TextPDF ToolsCSV & Data AnalysisConverters & EncodersWeb ToolsMath & ScienceGames
Guides & BlogAboutContact
Buy Us a Coffee
L
Loopaloo

Free online tools for developers, designers, and content creators. Your files are processed in your browser and are never uploaded - no accounts required. A few network utilities (like What's My IP and Currency Converter) call public APIs to do their job and say so on their pages.

support@loopaloo.com

Tool Categories

  • Image Tools
  • Audio Tools
  • Video Tools
  • Document & Text
  • PDF Tools
  • CSV & Data
  • Converters
  • Web Tools
  • Math & Science
  • Games

Company

  • About Us
  • Contact
  • Blog
  • FAQ

Legal

  • Privacy Policy
  • Terms of Service
  • Disclaimer

Support

Buy Us a Coffee

© 2026 Loopaloo. All rights reserved. Built with privacy in mind.

Privacy|Terms|Disclaimer
  1. Home
  2. Converters & Encoders
  3. Punycode Converter
Add to favorites

Punycode Converter

Convert internationalised domain names to and from their xn-- punycode form, check they can resolve, and spot lookalike characters.

Runs locally in your browserMore converters & encodersJump to full guide

Initializing in your browser…

You might also like

Unix Timestamp Converter

Convert Unix timestamps to dates and dates to timestamps in any time zone, with seconds, milliseconds, microseconds and nanoseconds detected automatically.

Audio Format Converter

Convert audio between MP3, M4A, WAV, FLAC, OGG and AAC in your browser, with a choice of quality, sample rate, channels and bit depth.

Color Converter

Convert colours between HEX, RGB, HSL, OKLCH, Lab and five more formats, check WCAG contrast, and preview colour-blind vision.

An example conversion

A link in an email points at what looks like apple.com, and you want to know whether it really is.

Domain from the link

аpple.com
What Punycode Converter produces

Both forms, plus what the characters really are

Unicode    apple.com
Punycode   xn--pple-43d.com

This label is written to read as "apple" without being it:
position 1 is U+0430 (Cyrillic) imitating "a".
This label mixes Cyrillic and Latin in one word.

The two names look identical on screen, which is the whole trick, so the useful information is the code point. The first letter is U+0430, the Cyrillic small a, not the Latin U+0061. Because one character is outside ASCII, the label is encoded: the four Latin letters pple are kept as they are, a hyphen separates them, and 43d records which character goes where. The DNS is therefore asked for xn--pple-43d.com, a different domain that has nothing to do with Apple. The real apple.com is plain ASCII and has no xn-- form at all.

What this converter does

The DNS only handles letters, digits and hyphens, so a domain name such as münchen.de or 日本語.jp travels in an encoded form called punycode: xn--mnchen-3ya.de and xn--wgv71a119e.jp. Type or paste a name in either form, or a whole link, and this converter shows both versions at once, checks that the name can actually be looked up, and points out lookalike characters used to imitate other sites.

How it works

Internationalised domain names let a web address use any script, but the DNS underneath still only accepts a narrow set of ASCII characters. The bridge is punycode, defined in RFC 3492, which rewrites a label such as münchen as mnchen-3ya and adds the xn-- prefix so software knows to decode it. Each label is encoded on its own, so in москва.рф both halves are converted, while in münchen.de only the first one is.

There is no direction to choose. Whatever you type, the readable form and the encoded form both appear, each with a copy button. A pasted URL is reduced to its host, dropping the scheme, any user name and password, the port and the path. Before encoding, the name is lowercased and normalised to NFC, so an ä typed as a single character and one typed as a plus a combining mark give the same result. Characters outside the Basic Multilingual Plane, such as emoji, are handled as single code points.

Browsers apply an extra mapping step, part of the IDNA rules known as UTS-46, that turns some characters into simpler ones before encoding: the circled letter ⓐ becomes a plain a, for example. The tool compares its result with the conversion your own browser performs and tells you when they differ, and which name will really be looked up.

It then checks the rules that decide whether a name can work at all. Each label may be at most 63 bytes once encoded, and the whole name 253; an all-ä label fits at 57 characters and breaks at 58, and browsers do not warn you. Empty labels, a hyphen at the start or end of a label, hyphens in the third and fourth positions of an ordinary label, characters that cannot appear in a host name, and xn-- labels that are not valid punycode are all reported by name. So is an xn-- label that decodes to something which encodes back differently: punycode has exactly one encoding for any string, so such a label cannot belong to a registered name.

The last check is for phishing. A label that mixes scripts, such as Latin letters with one Cyrillic letter, is flagged, and every character outside plain ASCII is listed with its Unicode code point, its script and the Latin letter it imitates. The lookalike list covers the Cyrillic, Greek and Armenian letters most often used in fake domains, not every confusable character in Unicode, so a clean result is reassuring rather than a guarantee.

How to use

  1. 1Type or paste a domain name, readable or xn--, or paste a whole link.
  2. 2Read the two results: Unicode is what people see, Punycode is what the DNS is asked for. Copy whichever you need.
  3. 3Check the line below them. Green means your browser converts the name the same way and it fits the DNS limits.
  4. 4Read any warnings: they name each reason a name will not resolve, and any character that imitates a Latin letter.
  5. 5Open Label by label to see each part of the name with its encoded length out of 63 bytes.

Key features

  • Both directions at once, with no mode to select
  • Accepts a full URL and uses only its host
  • Lowercasing and NFC normalisation before encoding, so equivalent spellings give the same result
  • Correct handling of emoji and other characters beyond the Basic Multilingual Plane
  • A comparison with your browser's own IDNA conversion, with any difference explained
  • Checks for the 63-byte label and 253-byte name limits that browsers skip
  • Named errors for empty labels, misplaced hyphens, disallowed characters and broken xn-- labels
  • Mixed-script and lookalike detection, with each suspicious character shown by code point
  • A label-by-label table with script and encoded length
  • A share link that opens the tool with the same domain filled in

Tips & best practices

  • Copy the Punycode form for DNS records, certificate requests and server configuration files, which generally expect ASCII.
  • A domain shown as xn-- in your address bar deserves a second look. Paste it here to see which characters it contains.
  • Uppercase does not matter in domain names; the tool lowercases before encoding, as browsers do.
  • Japanese and Chinese names may use the ideographic full stop 。 between labels. It is treated as a normal dot.

Where this fits

  • Checking a suspicious link

    Paste the link from an email or message. If a letter in the domain comes from another alphabet, the tool shows its code point and the letter it is pretending to be.

  • Configuring DNS, certificates and servers

    Zone files, TLS certificate requests and many web server configurations need the xn-- form. Paste the readable name and copy the encoded one.

  • Reading an encoded name from a log

    Server logs and certificate details show internationalised names in their xn-- form. Paste one in to see the name a person would actually read.

  • Choosing a domain to register

    Before buying a long name in a non-Latin script, check that each label stays within 63 bytes once encoded and that no registry rule about hyphens rules it out.

Frequently asked questions

What does the xn-- prefix mean?

It marks a label as encoded with punycode. Software that sees xn-- at the start of a label knows to decode the rest to get the readable name. A label without it is taken as plain ASCII.

Why does my browser show some domains as xn-- instead of the readable name?

Browsers display the encoded form when a name looks risky, most often when a single label mixes scripts or uses characters that imitate Latin letters. It is a deliberate defence against lookalike domains, and this tool flags the same patterns.

Why is my name too long when it only has a few characters?

The DNS limit of 63 bytes applies to the encoded label, and punycode needs several ASCII characters for each non-ASCII one. Long labels in Chinese, Japanese or Arabic can pass the limit with far fewer than 63 visible characters. The label table shows the encoded length of each part.

Why does the tool say my browser gives a different answer?

Browsers map some characters to simpler equivalents before encoding, following the UTS-46 rules. A circled letter, a full-width letter or certain ligatures become plain letters, so the name actually looked up is different from a literal encoding of what you typed. The tool shows which one will be used.

Can I trust a domain if the tool shows no warnings?

A clean result means the name is well formed and contains none of the common lookalike characters. It does not prove who owns the site. The lookalike list covers the characters most often abused, not every confusable symbol in Unicode, so still check the certificate and the context of the link.

Is the domain I type sent anywhere?

No. The conversion and checks run in your browser and no DNS lookup is made. The domain is placed in the page address so that the share button can link to it, so avoid pasting anything private.

Private by design

Conversions run on your device in JavaScript. The values you enter are never sent over the network.