Binary / Hex / Decimal Converter

संख्या द्विचर, ऑक्टल, दशमलव व हेक्साडेसीमल दरम्यान रूपांतरित करा, एक विभागणी तक्ता सह.

दशमांश —
द्विचर —
हेक्स डेसीमल —
ऑक्टल —
बिट लांबी —

तुम्ही टाइप करतेवेळी परिणाम अद्ययावत केले जातात.

या कॅल्क्युलेटरने तुम्हाला योग्य उत्तर दिले का?

या कॅल्क्युलेटरविषयी

A binary, hex and decimal converter shows the same whole number across number bases. Computers ultimately work in binary (base 2), but programmers routinely switch between bases to make values readable: decimal (base 10) for everyday quantities, hexadecimal (base 16) for byte values and memory addresses, and octal (base 8) for things like Unix file permissions. This converter takes a whole number in any of those four bases and shows it in all four at once, along with its bit length. The digits allowed in each base go up to one less than the base — binary uses 0–1, octal 0–7, decimal 0–9 and hex 0–9 then A–F for 10–15 — and the tool rejects digits that are out of range for the base you pick.

As a worked example, the decimal value 255 is FF in hexadecimal, 377 in octal and 11111111 in binary — eight bits all set, i.e. exactly one byte at its maximum. To convert decimal to hex by hand you repeatedly divide by 16 and read the remainders from last to first; the calculator does it instantly and also accepts input prefixed with 0x (hex), 0b (binary) or 0o (octal) and handles negative numbers.

The reason hexadecimal is so common in computing is that each hex digit maps to exactly four binary bits (a nibble), so two hex digits describe one byte with no ambiguity — which is why colour codes like #FF8800, MAC addresses and memory dumps are written in hex. This tool is handy for bit masks, colour values, debugging register contents and any low-level work where you need to see the same number across bases.

वारंवार विचारले जाणारे प्रश्न

दशमान पद्धतीपासून हेक्स डेसीमल पद्धतीकडे कसे बदलवायचे?

Repeatedly divide by 16 and read the remainders from last to first, using A–F for 10–15. Decimal 255 is FF in hex and 11111111 in binary.

संगणकावर हेक्साडेसीमल का वापरले जाते?

प्रत्येक हेक्स अंक अचूक चार बाइनरी बिटमध्ये दर्शविले जातात, म्हणून हेक्स हा बायट मूल्ये आणि मेमरी पत्ता लिहिण्यासाठी एक संकुचित, वाचनीय मार्ग आहे - 0xFF हा सर्व एक बायट आहे.

मी 0x, 0b किंवा 0o पूर्वपदांसह संख्या प्रविष्ट करू शकतो का?

होय. प्रारंभिक 0x (हेक्स), 0b (बायनरी) किंवा 0o (ऑक्टल) पूर्वपद आपोआप काढून टाकले जाते, जेणेकरून तुम्ही कोड पासून मूल्य थेट चिकटवू शकता. फक्त तुम्ही निवडलेल्या इनपुट आधाराशी तुम्ही प्रविष्ट केलेल्या अंक जुळतात याची खात्री करा.

याचा अर्थ काय असावा हे सांगता येत नाही.

It is how many binary digits the value needs. Decimal 255 is 8 bits (one byte); 256 needs 9 bits. Bit length is useful for choosing data types and checking whether a value fits in a byte, 16-bit word or 32-bit register.

ऑक्टल कशासाठी वापरले जाते?

ऑक्टल बिट तीनमध्ये विभागतो व मुख्यतः UNIX फाइल परवानगी (जसे की 755 किंवा 644) व काही लेटेक प्रणालीत दिसतो. प्रत्येक ऑक्टल अंक अचूक तीन बायनरी बिट करीता दर्शवितो, ज्याप्रमाणे प्रत्येक हेक्स अंक चार करीता दर्शवितो.

मला "या आधारासाठी अवैध क्रमांक" का मिळाला?

तुम्ही प्रविष्ट केलेले अंक निवडलेल्या आधारात स्वीकारले जात नाही - उदाहरणार्थ F अक्षर किंवा बाइनरी क्रमांक अंतर्गत अंक8, जे फक्त0आणि 1 करीता परवानगी देते. तुमच्या मुल्यशी जुळण्याकरीता इनपुट आधार बदलवा, किंवा क्षेत्राबाहेरचे अंक सुधारा.

❤️ प्रेम Calculator.Free? ते शेअर करा

𝕏  X Facebook Reddit
API — कोड पासून हे कॅल्क्युलेटर वापरा

या कॅल्क्युलेटरला मोफत JSON अंतबिंदू म्हणून कॉल करा - कुठलीही कि आवश्यक नाही. खालील क्षेत्र मूल्ये क्वेरी पेरेन्ट किंवा JSON म्हणून पाठवा. तुम्ही गळविलेले सर्व काही हे पान पूर्वदाखल करीता वापरले जाते; अपरिचीत बाब 400 आहे, कधीही मंद शून्य नाही. पूर्ण API दस्तऐवजीकरण वाचा →

अंतबिंदू

GET https://calculator.free/api/v1/binary-hex/

curl

curl "https://calculator.free/api/v1/binary-hex/?value=255&base=10"

JavaScript fetch()

const r = await fetch(
  "https://calculator.free/api/v1/binary-hex/?" + new URLSearchParams({
    "value": "255",
    "base": "10"
  }));
const data = await r.json();
console.log(data.results);

याचे परिणाम केवळ सामान्य मार्गदर्शनासाठी आहेत, आर्थिक, वैद्यकीय किंवा कर सल्लागार नाही.