Home › Developer Tools › Punycode Converter

Punycode Converter

Turn internationalized domain names like münchen.de into the xn-- ASCII form that DNS uses, or decode xn-- names back to readable Unicode. Paste whole lists, email addresses or URLs; the conversion runs entirely in your browser.

Last updated:

Label by label

Advertisement

How to use the Punycode Converter

  1. Paste your domains, email addresses or URLs, one per line (or press Load examples).
  2. Keep Auto-detect or force Unicode → Punycode or Punycode → Unicode.
  3. Press Convert. The converted list appears on the right and updates as you type.
  4. Check the label breakdown and any warnings, such as possible look-alike domains.
  5. Copy the result or download all lines as a CSV file.

Punycode examples

Unicode (what people see)ASCII / Punycode (what DNS stores)
münchen.dexn--mnchen-3ya.de
bücher.examplexn--bcher-kva.example
straße.dexn--strae-oqa.de
日本語.jpxn--wgv71a119e.jp
例え.テストxn--r8jz45g.xn--zckzah
info@bücher.de[email protected]

How the Punycode algorithm works

  1. Copy the basic characters. All ASCII characters of the label are written first, in order, followed by a hyphen if there were any: münchen gives mnchen-.
  2. Encode the rest as numbers. The non-ASCII code points are processed from smallest to largest. For each one, the encoder counts how many positions it has to move through the string (a delta) to reach where the character belongs.
  3. Write each delta as a variable-length number in base 36 with the digits a–z and 0–9, using thresholds that adapt to the data (the bias), so typical text stays short. For münchen the single ü becomes 3ya.
  4. Add the ACE prefix. IDNA puts xn-- in front so software can tell an encoded label from a normal one.

Decoding does the opposite: it reads the deltas and inserts each character back at the right position. The algorithm parameters from RFC 3492 are base 36, tmin 1, tmax 26, skew 38, damp 700, initial bias 72 and initial n 128.

Limits and rules for domain labels

  • Each label can be at most 63 characters in its ASCII (xn--) form, and the whole domain at most 253 characters.
  • Labels may not start or end with a hyphen, and a hyphen in positions 3 and 4 (like ab--c) is reserved for prefixes such as xn--.
  • Registries decide which scripts they allow under each top-level domain, and many forbid mixing scripts within one label.
  • For the rest of a URL, non-ASCII path and query characters are percent-encoded, not Punycode-encoded; see the URL Encoder Decoder and URL Parser.

Frequently asked questions

What is Punycode?

Punycode (RFC 3492) is a way to write any Unicode text using only the letters a–z, digits and hyphens. Internationalized domain names (IDNs) use it because DNS only supports ASCII: each non-ASCII label is converted to Punycode and prefixed with xn--, so münchen.de becomes xn--mnchen-3ya.de.

Why does each part of the domain convert separately?

IDNA converts each label (the parts between dots) on its own. ASCII labels such as com or www stay unchanged, and only labels with non-ASCII characters get an xn-- form. That is why the tool shows the domain label by label.

Can I convert email addresses?

Yes, the domain part after @ is converted, for example info@bücher.de becomes [email protected]. The part before @ cannot be Punycode-encoded; a non-ASCII local part requires mail servers that support SMTPUTF8 (RFC 6531).

What is an IDN homograph attack?

Attackers register domains with letters from other scripts that look identical to Latin ones, such as Cyrillic а and р in аррӏе.com (xn--80ak6aa92e.com). Browsers often show such names in xn-- form. This converter warns when a label mixes scripts or consists only of Latin look-alike letters.

How is ß handled?

This tool follows current IDNA2008 / UTS #46 non-transitional processing used by modern browsers: ß is kept, so straße.de becomes xn--strae-oqa.de. Older IDNA2003 software mapped ß to ss instead, which gives strasse.de.

Are uppercase letters allowed?

Domain names are case-insensitive. Unicode labels are lowercased (and normalised with NFKC, which also turns full-width letters and the ideographic full stop 。 into normal ones) before encoding, as IDNA requires.

Does the tool check if the domain exists?

No. It only converts text, entirely offline in your browser, and makes no DNS lookups. Use it to prepare DNS records, certificates, redirects or allowlists that require the ASCII form.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

URL Encoder DecoderPercent-encode or decode URLs, query strings and form data.URL ParserBreak a URL into its parts and edit query string parameters with a live rebuild.IPv6 Expander & CompressorExpand IPv6 addresses to full form or compress them per RFC 5952, one or many at once.Text Encoding ConverterDetect and convert text file encodings like UTF-8, UTF-16 and Latin-1.DNS LookupLook up A, AAAA, MX, TXT, NS, CNAME, SOA and CAA records with TTLs over secure DNS.NS LookupFind a domain's authoritative nameservers with their IPs, SOA record and DNS hosting provider.Quoted-Printable Encoder / DecoderEncode or decode quoted-printable email text (MIME) with UTF-8 and 76-character soft line breaks.SSL Certificate DecoderDecode PEM SSL/X.509 certificates: subject, issuer, expiry, SANs, key and fingerprints.Password GeneratorCreate strong passwords and passphrases.Hash GeneratorGenerate MD5, SHA-1, SHA-256 and SHA-512 hashes of text or files.MD5 Hash GeneratorGenerate MD5 hashes of text, lines or files and verify checksums.SHA-256 Hash GeneratorSHA-256 and HMAC-SHA256 hashes of text, lines or files, in hex or Base64.Base64 Encoder DecoderEncode or decode Base64 text and files, and make data URIs.HTML Entity Encoder / DecoderEscape and unescape HTML entities, named or numeric.Bcrypt Hash Generator & CheckerCreate bcrypt password hashes and check a password against a hash.Binary TranslatorConvert text to binary, hex, octal and back.HMAC GeneratorGenerate and verify HMAC signatures with SHA-256, SHA-512, SHA-1 or MD5.CRC32 Checksum CalculatorCalculate CRC-32, CRC-32C, CRC-16 and Adler-32 checksums of text or large files.JWT DecoderDecode JSON Web Tokens, read the claims and expiry, and verify HS256 signatures.JWT GeneratorCreate and sign HS256, HS384 or HS512 JSON Web Tokens in your browser and verify them.Password Strength CheckerSee how strong a password really is, how long it takes to crack and how to improve it.Caesar CipherEncode and decode Caesar shift ciphers and crack unknown shifts with a ranked brute force.Vigenère CipherEncrypt and decrypt Vigenère and Autokey ciphers, and crack unknown keys with frequency analysis.Atbash CipherEncode and decode Atbash ciphers (A↔Z, B↔Y) in Latin or Hebrew, with a live letter mapping table.ASCII TableFull ASCII code chart 0–255 in decimal, hex, octal, binary and HTML, with search and copy.Unicode Character LookupFind Unicode characters by name or code point and copy them with UTF-8, HTML and code escapes.JSON Escape / UnescapeEscape text for a JSON string, unescape \n and \" back to text, or stringify a whole object.Binary to HexConvert binary to hex instantly with steps and signed mode.Hex to BinaryConvert hex to binary instantly with steps and signed mode.Binary CalculatorAdd, subtract, multiply, divide, AND, OR, XOR and shift binary numbers with decimal values.Hex CalculatorHexadecimal + − × ÷ and AND, OR, XOR, NOT, shifts with decimal and binary equivalents.Base32 Encoder / DecoderEncode and decode Base32 (RFC 4648), Base32hex, Crockford and z-base-32 from text, hex or files.Base58 Encoder / DecoderEncode and decode Base58 and Base58Check (Bitcoin alphabet) from text or hex, with checksum verification.Unicode Escape / UnescapeConvert text to \uXXXX, \u{...}, \x, &#...; or CSS escapes and decode them back.File Hash CheckerGet MD5, SHA-1, SHA-256 and SHA-512 checksums of files and verify them against a hash.TOTP GeneratorGenerate 2FA one-time codes from a secret key, create otpauth QR codes and verify codes.RSA Key GeneratorGenerate 2048, 3072 or 4096-bit RSA key pairs as PEM, PKCS#1, JWK or OpenSSH, locally.Text Encryption ToolEncrypt and decrypt text with a password using AES-256-GCM, entirely in your browser.Checksum CalculatorCompute 8-bit sum, two's complement LRC, XOR/BCC, NMEA, Fletcher and Internet checksums of bytes.PBKDF2 Hash GeneratorDerive PBKDF2 keys from a password, salt and iteration count with SHA-1, SHA-256 or SHA-512.Protobuf DecoderDecode raw Protocol Buffers hex or Base64 without a schema, or add a .proto for field names.XML Escape / UnescapeEscape & < > " ' for XML text and attributes, unescape entities back, or wrap text in CDATA.Binary Search Tree VisualizerInsert, delete and find in BST, AVL and red-black trees with animated rotations and traversals.Argon2 Hash GeneratorHash passwords with Argon2id, Argon2i or Argon2d and verify them against an encoded hash.Base64 to PDFDecode a Base64 string to a PDF with preview and download, or encode a PDF to Base64.Bitwise CalculatorCalculate AND, OR, XOR, NOT and bit shifts at 8–64 bits with a bit grid and all bases.CSR GeneratorCreate a certificate signing request (CSR) and private key with SANs, RSA or ECDSA, in your browser.MongoDB ObjectId to TimestampDecode a MongoDB ObjectId to its creation date, or build ObjectIds from dates for range queries.PGP Encrypt / DecryptEncrypt, decrypt, sign and verify PGP messages with your armored keys, entirely offline.PGP Key GeneratorGenerate an OpenPGP key pair (Curve25519, NIST ECC or RSA) with passphrase and expiry, offline.Self-Signed Certificate GeneratorCreate a self-signed SSL certificate and key for localhost or dev servers, as PEM or PFX.SHA-1 Hash GeneratorSHA-1 and HMAC-SHA1 of text or files in hex or Base64, plus Git blob hashes and verify.SHA-512 Hash GeneratorSHA-512 and SHA-384 hashes of text or files in hex or Base64, HMAC and hash verification.SRI Hash GeneratorCreate Subresource Integrity hashes (sha256/384/512) and ready <script> or <link> tags.SSH Key GeneratorGenerate Ed25519 or RSA SSH key pairs in your browser: OpenSSH public key plus private key.String Escape / UnescapeEscape or unescape strings for JavaScript, Java, C#, Python, C, SQL, regex, CSV and shell.UTF-8 Encoder / DecoderConvert text to UTF-8 bytes in hex, decimal, binary, \x or % and decode bytes back to text.UUID Decoder & ValidatorDecode any UUID: version, variant, v1/v6/v7 timestamp and MAC node, plus bulk validation.Base64 to FileDecode Base64 or a data URI to a downloadable file; detects the real file type and previews it.File Encryption ToolEncrypt and decrypt any file with a password using AES-256-GCM, entirely in your browser.Passphrase GeneratorMake strong, memorable diceware passphrases from a 7,776-word list, with entropy in bits.CSR DecoderDecode a PEM certificate signing request: subject, SANs, key size, signature and CA readiness checks.Enigma Machine SimulatorEncrypt and decrypt with a virtual Enigma I, M3 or M4: rotors, rings, plugboard and lampboard.Hex Opacity CalculatorConvert opacity percent to a 2-digit HEX alpha code and full #RRGGBBAA color, with a 0-100% table.Playfair CipherEncrypt and decrypt Playfair ciphers from a keyword, with the 5x5 key square and every digraph step.Pwned Password CheckerCheck if a password appeared in data breaches; only 5 characters of its SHA-1 hash are sent.RSA Encryption ToolEncrypt text with an RSA public key and decrypt it with the private key using RSA-OAEP in your browser.SAML DecoderDecode SAMLRequest and SAMLResponse messages to readable XML, attributes and validity times.
See all 65 Encoders, Hashes & Crypto →