Binary / Hex / Decimal Converter

Kushandura nhamba pakati binary, octal, decimal uye hexadecimal, ne breakdown tafura.

Decimal —
Binary —
Hexadecimal —
Octal —
Bit length —

Zvinyorwa zvinogadziridzwa paunenge uchinyora.

Did this calculator give you the right answer?

Nezve iyi kalkulator

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.

Zvimwe zvinobvunzwa zvakanyanya

Maitiro ekushandura decimal kuti hexadecimal?

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.

Nei hexadecimal ichishandiswa mu computer?

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.

Ndinogona here kuisa mazita ane 0x, 0b kana 0o prefixes?

Yes. A leading 0x (hex), 0b (binary) or 0o (octal) prefix is stripped automatically, so you can paste values straight from code. Just make sure the input base you select matches the digits you enter.

Chii chinonzi bit length?

Chimwe chinhu chikuru chinokosha kuongorora ndechekuti ndezvipi zviratidzo zviviri zvinodiwa kuti zviite chiratidzo chekutaura. Decimal 255 i 8 bits (one byte); 256 inofanira kunge iri 9 bits. Bit length inobatsira pakusarudza data types uye kuongorora kana chiratidzo chinogona kuiswa mu byte, 16-bit word kana 32-bit register.

Chii chinonzi octal?

Octal mhuri bits mu threes uye anoonekwa zvikuru mu Unix faira permissions (semuenzaniso 755 kana 644) uye dzimwe dzakapfuura masystems. Every octal digit maps to exactly three binary bits, the way every hex digit maps to four.

Nei ndakawana "inokanganisa nhamba yeiyo base"?

A digit iwe wapinda haasi kubvumirwa mu chose base - muenzaniso letter F kana digit 8 mu binary nhamba, iyo chete anobvumira 0 na 1. Switch the input base to match your value, or correct the out- of- range digit.

❤️ Love Calculator.Free? Shandisa

𝕏  X Facebook Reddit
API — kushandisa iyi kalkulator kubva code

Nhare iyi calculator semahara JSON endpoint - hapana chikuru zvinodiwa. Kutumira nzvimbo mavara pasi separameter query kana JSON. Chii zvachose chaunoisa kunze chinoshandisa default iyo peji iri rakasviba nayo; parameter isiri yechokwadi inonzi 400, uye haisi zero. Tora yakazara API docs →

Endpoint

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);

Zviratidzo zvemubvunzo ndezvekufungidzira kwechinangwa chekudzidzisa chete, kwete zvemari, zvehutano kana zvemari.