Binary / Hex / Decimal Transformer
Ingiza idadi kati ya binari, octal, desimali na hexadecimal, na meza iliyoharibika.
Matokeo yanakuwa bora zaidi unapochapa.
Kuhusu kifaa hiki cha kupigia hesabu
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.
Maswali yaliyoulizwa mara nyingi
Ninabadilije desimali kuwa dawa ya kutuliza maumivu?
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.
Kwa nini picha za kompyuta hutumiwa kwa kompyuta?
Each hex digit maps to exactly four binary bits, so hex is a compact, readable way to write byte values and memory addresses — 0xFF is one byte of all ones.
Je, ninaweza kupata nambari ya 0x, 0b au 0o mhollo?
Kiambishi kinachoongoza 0x (hex), 0b (binary) au 0o (konali) huvuliwa yenyewe, kwa hiyo unaweza kuchanganya thamani kutoka kwenye mfumo wa maandishi.
Urefu wake unaniambia nini?
Ni nambari 255 za thamani zinazohitajika. Decimal 255 ni kubwa mno 8 (moja kwa kila moja); 256 inahitaji vipande 9. [5] [1a] Ina mafaa katika kuchagua namna za data na kuchunguza kama thamani ya kitu katika mstari wa 16 wa katikati, neno la kati au orodha ya 32. [
Kifuniko hutumiwa kwa nini?
Vikundi vya Octal hugawanya vipande katika vitatu na huonyesha hasa katika Unix faili with permission (kama vile 755 au 644) na baadhi ya mifumo ya urithi.
Kwa nini nilipata "namba ya pekee kwa ajili ya kituo hiki"?
Njia ya kuchimba ambayo unaingia hairuhusiwi katika msingi uliochaguliwa bustanini bustanini kwa mfano barua F au griti 8 kwa nambari ya binari, ambayo inaruhusu tu 0 na 1.
API bustanini hutumia kifaa hiki cha hesabu kutoka kwenye mfumo wa sheria
Ipigie simu kifaa hiki cha kupigia hesabu kama Junse É not doot toder. Chochote unachoacha kinatumia kiwango kilekile cha mwisho ambacho ukurasa huu haujakamilika; parameta isiyojulikana ni 400, si sufuri kimya kamwe. Soma habari kamili za API docs →
keyboard label
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);
Matokeo ni makadirio ya mwongozo wa ujumla, si wa kifedha, wa kitiba au wa kodi tu.