एन्कोडिंग
Punycode encode/decode
यूनिकोड कैरेक्टर्स (IDN) वाले डोमेन नामों को ASCII-कम्पैटिबल Punycode फ़ॉर्मेट (xn--) में एन्कोड करना और वापस।
The DNS system historically only supports ASCII characters, so domain names with Cyrillic, CJK, or other non-ASCII characters (IDN) are encoded as Punycode — an ASCII-compatible form prefixed with xn--. This tool encodes and decodes such domains.
How to use it
- Encode: enter a domain with Cyrillic or other Unicode characters (e.g. пример.рф) to get its ASCII form as xn--....
- Decode: paste a domain in xn--... form to see the original characters.
- Works on both a single domain label and a full multi-level domain name.
Common uses
- Checking what real domain is hiding behind a confusing xn--... string in an email or link.
- Registering or setting up DNS for a domain with national characters when the registrar requires an ASCII form.
- Spotting a homograph attack — a domain visually mimicking a known brand using characters from a different script.
Things to keep in mind
Visually similar characters from different scripts (like Cyrillic "а" and Latin "a") can form a domain that looks identical to a known brand — this is the basis of homograph phishing.
Not every browser shows decoded Unicode the same way: when a domain label mixes scripts, browsers often deliberately show the raw xn-- form as a warning sign.
इस टूल के बारे में लेख: Punycode: DNS में अंतरराष्ट्रीय डोमेन कैसे काम करते हैं
अक्सर पूछे जाने वाले प्रश्न
xn-- प्रीफ़िक्स का क्या मतलब है?
यह बताता है कि डोमेन का यह हिस्सा Punycode में एन्कोड किया हुआ है — असल में यह किसी यूनिकोड लेबल (जैसे münchen) का ASCII-कम्पैटिबल रूप है, जिसे DNS सिस्टम समझ सकता है।
IDN डोमेन में स्पूफिंग या होमोग्राफ अटैक का खतरा क्या है?
अलग-अलग स्क्रिप्ट्स के कैरेक्टर्स एक जैसे दिख सकते हैं (जैसे सिरिलिक "а" और लैटिन "a"), इसलिए कोई नकली डोमेन असली जैसा दिखा सकता है — Punycode डिकोड करके देखने से यह पता चल जाता है कि डोमेन में असल में कौन से कैरेक्टर्स हैं।
क्या डोमेन नाम कहीं सर्वर पर भेजा जाता है?
नहीं, एन्कोडिंग और डिकोडिंग पूरी तरह ब्राउज़र में होती है, कोई लुकअप या डेटा ट्रांसफ़र सर्वर पर नहीं होता।
कैसे पता चले कि कोई लिंक Punycode इस्तेमाल कर रहा है?
एन्कोड किए गए डोमेन में हर उस लेबल से पहले हमेशा xn-- प्रीफ़िक्स होता है जिसमें नॉन-ASCII कैरेक्टर्स हों। अगर एड्रेस बार या ईमेल में xn-- से शुरू होने वाला डोमेन दिखे, तो यह IDN का संकेत है — यह जांच लेना बेहतर है कि इस एन्कोडिंग के पीछे असल में कौन-सा टेक्स्ट छिपा है।
क्या सभी ब्राउज़र एड्रेस बार में सिरिलिक को एक जैसा दिखाते हैं?
नहीं। कुछ ब्राउज़र डिकोड किया गया यूनिकोड तभी दिखाते हैं जब डोमेन के सभी कैरेक्टर्स एक ही अल्फ़ाबेट के हों, और अलग-अलग अल्फ़ाबेट मिलने पर (जो होमोग्राफ़ अटैक का संकेत है) वे जानबूझकर असली कैरेक्टर्स के बजाय कच्चा xn-- रूप दिखाते हैं।