Hex डिकोडर और एनकोडर

किसी भी फ़ॉर्मेट में hex पेस्ट करें और तुरंत टेक्स्ट पाएँ, या टेक्स्ट को hex में बदलें। समझ नहीं आ रहा कि कोई hex स्ट्रिंग क्या है? AI उसे समझाता है और अंदर का Base64, gzip या XOR भी डिकोड करता है।

टैग्स: एन्कोडर हेक्स एन्कोड/डिकोड

🚀 177,388 कुल रूपांतरण (279 इस महीने)
बाइट इंस्पेक्टर
आकार
दशमलव
लिटिल-एंडियन
साइन वाला
बाइनरी
ऑक्टल
UUID
रंग
Base64
Hex डंप

      

कोडिंग चैलेंज के साथ Python का अभ्यास करें

सीधे इस एडिटर में प्रैक्टिकल समस्याएँ हल करें: सैंपल टेस्ट चलाएँ, सबमिट करें, और AI कोड रिव्यू पाएं।

सभी Python चैलेंज
आसान

आयत का परिमाप

आयत की भुजाओं से उसका परिमाप निकालिए।

आप सीखेंगे अंकगणितलौटाए गए मान
शुरुआतीLearning-pathVariables
आसान

दो बिंदुओं के बीच की दूरी

दो बिंदुओं के बीच की सीधी दूरी निकालिए।

आप सीखेंगे पाइथागोरस प्रमेयवर्गमूल
शुरुआतीफ़ंक्शनLearning-pathगणित
आसान

मूल संख्या जांचें

निर्धारित करें कि कोई संख्या मूल है या नहीं।

आप सीखेंगे विभाज्यतालूप को तेज़ करना
शुरुआतीलूपसंख्याएँनए छात्र
आसान

तीन संख्याओं का औसत

तीन पूर्ण संख्याओं का औसत निकालिए।

आप सीखेंगे अंकगणितभाग
शुरुआतीLearning-pathVariables
आसान

दो वेक्टरों का डॉट प्रोडक्ट

दो वेक्टरों के हर तत्व को आपस में गुणा करके परिणाम जोड़ें, यही हर न्यूरॉन की मूल गणना है।

आप सीखेंगे वेक्टरडॉट प्रोडक्ट
न्यूरल नेटवर्कएआईमशीन लर्निंग
आसान

बड़े अक्षर गिनिए

Text में capital अक्षर गिनिए।

आप सीखेंगे अक्षर जाँचनागिनती
शुरुआतीLearning-pathStrings
आसान

Celsius से Fahrenheit

तापमान को Celsius से Fahrenheit में बदलिए।

आप सीखेंगे सूत्रऑपरेटर प्राथमिकता
शुरुआतीLearning-pathVariables
आसान

महीने में दिन

किसी महीने में कितने दिन होते हैं, यह बताइए, लीप वर्ष को ध्यान में रखते हुए।

आप सीखेंगे कैलेंडर के नियमसहायक फ़ंक्शन
शुरुआतीशर्तें (if-else)फ़ंक्शनLearning-path
आसान

Min और Max एक साथ

एक ही बार लिस्ट पर चलकर सबसे छोटी और सबसे बड़ी वैल्यू निकालिए।

आप सीखेंगे एक ही पासकई मान लौटाना
Arraysशुरुआतीफ़ंक्शनLearning-path
आसान

तीन में सबसे बड़ा

Built-in max के बिना तीन संख्याओं में सबसे बड़ी चुनिए।

आप सीखेंगे तुलनाशर्तें जोड़ना
शुरुआतीशर्तें (if-else)Learning-path
आसान

साधारण ब्याज

साधारण ब्याज के बाद कुल रकम निकालिए।

आप सीखेंगे प्रतिशतशब्द समस्याएँ
शुरुआतीLearning-pathVariables
आसान

पहला और आखिरी बदलें

लिस्ट के पहले और आखिरी आइटम की जगह आपस में बदलिए।

आप सीखेंगे सूची इंडेक्सअदला-बदली
ArraysशुरुआतीLearning-path

परिचय

यह ऑनलाइन हेक्साडेसिमल एन्कोडर टूल स्ट्रिंग्स को हेक्साडेसिमल फॉर्मेट में और वापस बदलने को आसान बनाता है। चाहे आप टेक्स्ट के साथ काम कर रहे हों या नंबरों के साथ, यह टूल प्रक्रिया को सरल बनाता है और आपका समय बचाता है।

इस टूल का उपयोग कैसे करें

  1. अपने स्ट्रिंग को सीधे एडिटर में पेस्ट करें या टाइप करें।
  2. अपने स्ट्रिंग को हेक्साडेसिमल फॉर्मेट में बदलने के लिए Encode या Decode बटन पर क्लिक करें।
  3. एन्कोडिंग या डिकोडिंग के बाद, आप:
    • परिणाम डाउनलोड कर सकते हैं।
    • इसे एक शॉर्ट लिंक का उपयोग करके दूसरों के साथ सहेज या साझा कर सकते हैं।
    • Google या GitHub के साथ साइन इन करके अपने खाते में बाद के उपयोग के लिए अपने परिणाम सहेज सकते हैं।

हेक्साडेसिमल क्या है?

हेक्साडेसिमल (या हेक्स) एक बेस-16 नंबरिंग सिस्टम है जो बाइनरी डेटा के प्रतिनिधित्व को सरल बनाता है। यह 16 प्रतीकों का उपयोग करता है: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F। प्रत्येक हेक्स अंक 4-बिट बाइनरी अनुक्रम का प्रतिनिधित्व करता है, जिससे बाइनरी नंबरों को लिखना और पढ़ना बहुत आसान हो जाता है।

उदाहरण के लिए:

  • बाइनरी से हेक्स: 11010100 → D4
  • हेक्स से बाइनरी: FFFF3 → 11111111111111110011

हेक्साडेसिमल का उपयोग क्यों करें?

हेक्साडेसिमल का उपयोग कंप्यूटिंग और डिजिटल सिस्टम में आमतौर पर किया जाता है क्योंकि यह बाइनरी की तुलना में अधिक कॉम्पैक्ट और पठनीय होता है। इसका उपयोग अक्सर मेमोरी एड्रेस, रंग कोड, और ASCII या यूनिकोड कैरेक्टर सेट में डेटा को दर्शाने के लिए किया जाता है।

अधिक विवरण के लिए, इस सहायक गाइड को देखें।

उदाहरण

एन्कोडिंग से पहले

      
Hello, World!
      
    

एन्कोडिंग के बाद

      
48656c6c6f2c20576f726c6421
      
    

Hex को टेक्स्ट में डिकोड करें: समर्थित फ़ॉर्मेट

Hex जैसा मिला वैसा ही पेस्ट करें। डिकोडर स्पेस, कॉमा, कोलन और 0x, \x या % प्रीफ़िक्स हटाता है, फिर हर दो अंकों को एक बाइट में बदलता है।

आप जो hex पेस्ट करते हैंमिलने वाला टेक्स्ट
48656c6c6fHello
48 65 6c 6c 6fHello
0x48 0x65 0x6c 0x6c 0x6fHello
\x48\x65\x6c\x6c\x6fHello
48:65:6c:6c:6fHello
c3 a9 74 c3 a9été
f0 9f 98 80😀

बाइट UTF-8 के रूप में पढ़े जाते हैं, इसलिए हिंदी, एक्सेंट वाले अक्षर, सिरिलिक, चीनी, जापानी, कोरियाई और इमोजी सही डिकोड होते हैं।

क्या hex एक सिफ़र है?

पहेलियों और CTF में इसे अक्सर "hex cipher" कहा जाता है, लेकिन hex एन्क्रिप्शन नहीं, एन्कोडिंग है: अंकों की हर जोड़ी एक बाइट है, और कोई भी इसे इस तरह के डिकोडर से वापस पढ़ सकता है। डेटा छिपाने के लिए असली एन्क्रिप्शन और डेटा बदला नहीं गया यह जाँचने के लिए SHA-256 जैसा हैश इस्तेमाल करें।

Hex को हाथ से कैसे डिकोड करें

Hex को जोड़ियों में बाँटें। हर जोड़ी 0 से 255 तक की संख्या है: पहला अंक सोलह गिनता है और दूसरा इकाई (a = 10 से f = 15)। अक्षर पाने के लिए उस संख्या को ASCII टेबल में देखें।

48 → 4 × 16 + 8 = 72 → "H"
65 → 6 × 16 + 5 = 101 → "e"
6c → 6 × 16 + 12 = 108 → "l"

आपके पास Base64 है? Base64 को hex में बदलें

Hex to ASCII table

Printable ASCII characters by hex value: row is the first digit, column the second. 41 is "A", 61 is "a", 20 is a space.

0123456789ABCDEF
2 ␠ ! " # $ % & ' ( ) * + , - . /
3 0 1 2 3 4 5 6 7 8 9 : ; < = > ?
4 @ A B C D E F G H I J K L M N O
5 P Q R S T U V W X Y Z [ \ ] ^ _
6 ` a b c d e f g h i j k l m n o
7 p q r s t u v w x y z { | } ~ DEL

Decode hex in code

The same conversion in common languages (UTF-8 text):

# Python
bytes.fromhex("48656c6c6f").decode("utf-8")          # 'Hello'
"Hello".encode().hex()                               # '48656c6c6f'

// JavaScript (Node.js)
Buffer.from("48656c6c6f", "hex").toString("utf8")    // 'Hello'
Buffer.from("Hello").toString("hex")                 // '48656c6c6f'

// Go
b, _ := hex.DecodeString("48656c6c6f")               // string(b) == "Hello"

// PHP
hex2bin("48656c6c6f");                               // 'Hello'

// C#
Encoding.UTF8.GetString(Convert.FromHexString("48656c6c6f"));

# Bash
echo 48656c6c6f | xxd -r -p                          # Hello

Hex decoder FAQ

How do I decode hex to text?

Paste the hex into the right box. It turns into text on the left as you type, in any format: 48656c6c6f, 48 65 6c 6c 6f, 0x48 0x65, \x48\x65, 48:65 or a hex dump from xxd. Type text on the left to get its hex.

Why does the decoded text show strange characters?

The bytes are not text in the selected encoding. Try UTF-16 or Latin-1 in "Text encoding". If it still looks like noise, the hex is binary data such as a hash, a key or a file: the byte inspector shows what it probably is, and Explain with AI can tell you more.

What does 0x mean in hex?

0x marks a hexadecimal number in C, Java, JavaScript, Python and most other languages, so 0x41 is 65 in decimal, the letter "A". The decoder removes 0x, \x and % prefixes for you.

How do I convert hex to decimal?

Paste the hex and look at the byte inspector: it shows the number in decimal (big-endian and little-endian), signed, binary and octal. For example FF is 255, and 01 00 is 256 in big-endian or 1 in little-endian.

What is the difference between hex and Base64?

Both write bytes as text. Hex uses two characters per byte, so it doubles the size but is easy to read. Base64 uses four characters for every three bytes, about 33% bigger, which is why it is used in emails, data URLs and JSON. If you paste Base64 here, the page offers to convert it.

Can I decode a hex dump or a whole file?

Yes. Paste output from xxd or hexdump -C and the offsets and text columns are ignored. Use "Open file" to see any file as hex, and "Download bytes" to save decoded hex as a file: PNG, JPEG, PDF, ZIP and other types are detected from their first bytes.

What does Explain with AI do?

It tells you what an unknown hex string probably is: a hash, a UUID, a file header, a network packet or text that is encoded again (Base64, gzip, XOR, ROT13). When more decoding steps are needed, your browser runs them and shows the result, so you see the real decoded data, not a guess.

Is my data sent to a server?

No. Decoding, encoding and the byte inspector run in your browser. The hex is only sent when you press Explain with AI, and then only to answer that question.