Loona Automation logoLoona Developer Tools
Home › Encoders & Decoders

Punycode Encoder — Domain to xn--

In short: convert an international domain name into the ASCII form DNS actually stores: every non-ASCII label becomes xn-- plus its punycode (RFC 3492) encoding.
🔒 Private by design: everything runs in your browser on this device. Your input is never uploaded to a server.

Example

Input:

münchen.de

Output:

xn--mnchen-3ya.de

About this converter

DNS was built for ASCII letters, so internationalized domain names (IDNs) are stored as punycode: an encoding that squeezes Unicode into lowercase letters and digits, prefixed with xn-- so software knows to decode it for display. Punycode is clever about size — it copies the plain ASCII characters verbatim, then encodes only the positions and values of the non-ASCII ones, which is why bücher becomes the short bcher-kva. Registries, SSL certificate tools, email systems (SMTPUTF8 aside) and server configs all want the xn-- form, while browsers show users the Unicode form — converting between them is a daily DevOps and localization chore, and the source of classic phishing lookalikes (homoglyph domains) that security teams check with exactly this conversion.

Frequently Asked Questions

Is the whole domain encoded or each part?

Each dot-separated label is encoded independently; labels that are already pure ASCII pass through unchanged.

Why do some characters vanish in the encoded form?

They do not vanish — their positions and code points are folded into the suffix after the hyphen. Decoding restores them exactly.

Can I register the name I typed here?

This page only converts. Availability and registration are your registrar's job — and note that many registries restrict which scripts may be mixed in one label.

Related Developer Tools

Embed this tool on your website — free

Add this tool to your own website or blog — it is completely free, needs no sign-up, and always shows the latest version. Copy the code below and paste it into your page where you want the tool to appear. Keeping the small “Powered by Loona Automation” credit line under the embed helps keep this tool free — but you are free to style or remove it; the tool works either way.