Encoding
Convert Unicode domain names to xn-- Punycode and back — both directions, full domains supported.
Encoding and decoding run locally in your browser. Nothing is uploaded, logged, or stored.
The DNS only understands ASCII, but people want domain names in their own scripts. Punycode (RFC 3492) solves this by encoding non-ASCII characters into an ASCII suffix: the basic characters are copied to the front, a hyphen delimiter follows, and the non-ASCII part is compressed into a bootstring sequence. Browsers show the friendly Unicode form, while the wire format is always xn--….
This tool implements the full RFC 3492 algorithm — including bias adaptation — so it handles any Unicode input, not just common cases. Decoding validates the input and reports malformed sequences instead of producing garbage. Related encoding tools: Base64 and URL Encoder / Decoder.
See the exact xn-- form your registrar will store before you buy an internationalized domain.
Decode an xn-- hostname from an email to reveal the Unicode name it actually displays — useful for spotting homograph phishing.
Encode and decode Base64 with full Unicode support. URL-safe mode included.
Percent-encode and decode URLs and query parameters, component or full-URL mode.
Encode and decode Base32 (RFC 4648) — the encoding used by TOTP authenticator secrets.
Escape quotes, backslashes, and newlines so text can be embedded safely inside a JSON string.
Looking for something else? Browse all tools