Domain to Punycode (ASCII) Converter

Type a domain name with letters beyond plain English and get its plain-letter spelling, the one that starts xn--.

FluffyShield Protected workspace
FluffyShield

Isolated workspace: other page scripts can't read your files. How FluffyShield works

Free · No upload · No sign-up · No usage quotas

What does xn-- at the start of a web address mean?

It flags a name that had letters beyond plain English. You can still read most of it: the plain letters come first, and a short code at the end puts the others back.

How a name is spelled out
  1. Lower any capitals and check each letter is allowed
  2. Leave every part between dots that's already plain
  3. Write each other part as xn--, its plain letters, a hyphen and the code

What it does

The code starts after the last hyphen

bäckerei-müller.example becomes xn--bckerei-mller-bfb28a.example. The name's own hyphen stays where it was.

No plain letters, no hyphen

пример.example is all code: xn--e1afmkfd.example.

Limits Nothing is looked up, so a name that converts may not exist or be anyone's.

A bakery's address that reads xn--bckerei-5wa

A bakery has registered the name bäckerei.example, and a settings form wants the domain in "ASCII form". Or a link in an email reads xn--bckerei-5wa.example where you expected the ä. It's the same name both times.

A domain name has to be looked up before a browser can reach the site, and the lookup accepts names made of plain English letters, digits and hyphens. A name with any other letter is sent in a stand-in spelling made from those characters alone. The xn-- at the front of a part is a flag that says: this part is coded, and can be decoded back into letters.

The plain letters first, the rest after the hyphen

The coding is called Punycode, and it's less mysterious than it looks. It copies every plain letter of the part, in order, so bäckerei gives bckerei. Then comes a hyphen, and after it a few letters and digits that say which letter is missing and where it goes.

The namebäckereiFlagxn--Plain lettersbckereiHyphen-Code for ä5waTogetherxn--bckerei-5wa

The name, taken apart

Everything up to the last hyphen can be read by eye. Only the last three characters need decoding. How we checked

It works like a word typed on a keyboard with no ä, with a footnote: put an ä after the first letter. The 5wa at the end is that footnote, written so that a machine can read it back exactly.

The ending .example has nothing to code, so it stays as it was.

Getting the xn-- spelling of your name

This box is the Unicode domain to Punycode setting of FluffyBench's URL encoder, where the way back, from Punycode to Unicode domain, is one choice away.

  1. Type the name into the Input box, with nothing before it or after it.

  2. Find its xn-- spelling in the Punycode box; on a phone, it's under Result.

    The Punycode box, headed 23 characters, holding xn--bckerei-5wa.example, with Copy and Download above it.
    The Punycode box, headed 23 characters, holding xn--bckerei-5wa.example, with Copy and Download above it.
  3. Press Copy to carry the xn-- spelling to wherever it was asked for.

Paste a whole address instead, such as https://bäckerei.example/brot, and it stops with "Enter a domain name only, without a URL scheme, path, port, credentials or whitespace." Delete the https:// and everything after the name, then try again.

When you have more than a name

You want the coded name out of a whole web address

URL encoder

With From on URL and To on Parts, it takes the address apart, and the host line already reads xn--bckerei-5wa.example.

The letters beyond plain English are in the page's part of the address, after the name

URL Slug Generator

It folds accented letters to plain a–z, so the page's part of the address needs no % codes.

Search FluffyBench