- एक्ज़िक्यूटर्स
-
सीखें
Python सीखें चलने योग्य उदाहरण, NumPy, pandas और बहुत कुछ AI / मशीन लर्निंग सीखेंन्यूरल नेटवर्क, ML और LLM शुरू से C और C++ सीखें पॉइंटर, मेमोरी, STL और आधुनिक C++ C# सीखेंC# मूल बातें, OOP, LINQ, async और .NET अभ्यास Matplotlib सीखेंलाइन, बार, स्कैटर और पाई चार्ट, इंटरैक्टिव विज़ुअलाइज़र के साथ Rust सीखेंOwnership, traits, एरर हैंडलिंग और threads Go सीखेंSlices, interfaces, goroutines और channels Python एल्गोरिदम खोज, सॉर्टिंग, रिकर्शन और विज़ुअलाइज़र O(n) C और C++ एल्गोरिदम C और C++ कार्यान्वयन की तुलना करें बच्चों के लिए कोडिंग खेलते-खेलते कोडिंग सीखो!
- क्विज़नया
- चैलेंजनया
- शिक्षकों के लिएनया
- अपडेट्स
- मुझे एक कॉफ़ी पिलाएँ
Hex डिकोडर और एनकोडर
किसी भी फ़ॉर्मेट में hex पेस्ट करें और तुरंत टेक्स्ट पाएँ, या टेक्स्ट को hex में बदलें। समझ नहीं आ रहा कि कोई hex स्ट्रिंग क्या है? AI उसे समझाता है और अंदर का Base64, gzip या XOR भी डिकोड करता है।
🚀 177,388 कुल रूपांतरण (279 इस महीने)
बाइट इंस्पेक्टर
| आकार | |
|---|---|
| दशमलव | |
| लिटिल-एंडियन | |
| साइन वाला | |
| बाइनरी | |
| ऑक्टल | |
| UUID | |
| रंग | |
| Base64 |
Hex डंप
कोडिंग चैलेंज के साथ Python का अभ्यास करें
सीधे इस एडिटर में प्रैक्टिकल समस्याएँ हल करें: सैंपल टेस्ट चलाएँ, सबमिट करें, और AI कोड रिव्यू पाएं।
परिचय
यह ऑनलाइन हेक्साडेसिमल एन्कोडर टूल स्ट्रिंग्स को हेक्साडेसिमल फॉर्मेट में और वापस बदलने को आसान बनाता है। चाहे आप टेक्स्ट के साथ काम कर रहे हों या नंबरों के साथ, यह टूल प्रक्रिया को सरल बनाता है और आपका समय बचाता है।
इस टूल का उपयोग कैसे करें
- अपने स्ट्रिंग को सीधे एडिटर में पेस्ट करें या टाइप करें।
- अपने स्ट्रिंग को हेक्साडेसिमल फॉर्मेट में बदलने के लिए Encode या Decode बटन पर क्लिक करें।
-
एन्कोडिंग या डिकोडिंग के बाद, आप:
- परिणाम डाउनलोड कर सकते हैं।
- इसे एक शॉर्ट लिंक का उपयोग करके दूसरों के साथ सहेज या साझा कर सकते हैं।
- 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 पेस्ट करते हैं | मिलने वाला टेक्स्ट |
|---|---|
48656c6c6f | Hello |
48 65 6c 6c 6f | Hello |
0x48 0x65 0x6c 0x6c 0x6f | Hello |
\x48\x65\x6c\x6c\x6f | Hello |
48:65:6c:6c:6f | Hello |
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"
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.
| 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | A | B | C | D | E | F | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 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.