Convert an internationalized domain name to and from its Punycode (xn--) form, in your browser.
Updated
/ 5 - Be the first to rate this tool Thanks for rating!
Verification failed - please try again.
Quick check
Please verify you're not a robot to submit your rating.
Give feedback
Tell us what you think about Encode or decode a Punycode domain.
- Runs entirely in your browser — your domain is never sent to a server
- Converts internationalized domain names to and from xn-- form
- Free, no account required
How it works
-
1
Paste the text, code, or token you want to encode or decode.
-
2
Conversion happens instantly as you type.
-
3
Review the result, including any decoded structure.
-
4
Copy the result to your clipboard.
Why use this tool
Every dev utility, one place
Format, convert, encode, decode, and generate — no more juggling ten tabs.
100% private, always
Every tool runs in your browser — your code and data are never sent anywhere.
Works on any device
Runs on Windows, Mac, Linux, iOS, and Android — nothing to install.
Instant results
No queues, no build step — results update as you type.
Built to handle real data
Full Unicode support and RFC-compliant parsing, edge cases included.
Free, always
Free to use, with no rate limits, sign-up, or trial period.
Frequently asked questions
The fundamental DNS system only understands basic ASCII; this translates international characters so routers can parse them.
Yes, the prefix is added universally to signal to browsers that the domain contains encoded characters.
Only the specific hostname components (the domain) should be translated, never the path or protocol.
Yes, emojis are valid Unicode characters and will translate into a standard xn-- string.
No, modern security appliances resolve the encoding and will block the site based on its actual destination.
From the blog
Reading a JWT Without Trusting It: Claims, Expiry, and the Signature Trap
Decoding a JWT takes a second. Verifying one is a different job entirely — and confusing the two is how auth bugs ship. Here is how to read a token safely while you debug.
Mastering Base64: What It Is, How It Works, and When Not to Use It
Base64 is everywhere in modern web development, from data URIs to authentication headers. Here is a deep dive into how it works and common pitfalls to avoid.
Demystifying JSON: How to Troubleshoot Common Parsing Errors
JSON is the backbone of web APIs, but syntax mistakes can halt your code. Here is how to identify and fix missing commas, unescaped strings, and trailing characters.
Related tools
Base64 encode or decode text online
Convert text to and from Base64 instantly in your browser, with full Unicode support.
Encode or decode ROT13 and Caesar cipher text
Shift letters by any amount, including the classic ROT13, instantly in your browser.
Encode or decode HTML entities online
Convert text to and from HTML entities instantly in your browser.
Decode a JWT online
Paste a JSON Web Token to instantly view its decoded header and payload in your browser.
Build and sign a JWT online
Build and HMAC-SHA256-sign a JWT from a header, payload, and secret, instantly in your browser.
Escape or unescape a string online
Escape or unescape a string for JS/JSON string literals instantly in your browser.
Generate a QR code for free
Create a static QR code for a URL, text, Wi-Fi, or contact card in seconds.
Scan a QR code online for free
Upload or paste a QR code image to instantly decode its content.
Add a logo to your QR code for free
Generate a QR code with your logo in the center, right in your browser.
Generate random numbers online
Generate one or many cryptographically random integers in a range, optionally unique, in your browser.
Reorder PDF pages for free
Drag and drop page thumbnails to put your PDF pages in a new order.
Redact a PDF for free
Black out text and images in a PDF by drawing boxes or searching for words, with the hidden content removed for good, not just covered.