Binary / Hex / Decimal Converter

Ngarobah angka antara biner, octal, desimal jeung hexadecimal, kalawan tabel breakdown.

Desimal —
Biner —
Hexadesimal —
Oktal —
Jarak bit —

Hasilne bakal dioptimalake nalika sampeyan ngetik.

Did this calculator give you the right answer?

Ngenai kalkulator iki

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.

Takon-takon kang kerep diajukake

Bagaimana cara saya ubah angka desimal menjadi angka enam belas?

Diulang-ulang dibagi ku 16 sarta maca sisa ti pangleuwihan ka pangluhurna, ngagunakeun A-F pikeun 10-15. Desimal 255 nyaéta FF dina hex jeung 11 dina biner.

Apa tegese hexadecimal digunakake ing komputasi?

Satiap digit hex digambarkeun kana tepatna tilu bit biner, jadi hex nyaéta cara anu kompakt, bisa dibaca pikeun nulis nilai byte sareng alamat memori — 0xFF nyaéta hiji byte tina sadaya.

Apa aku bisa ngetik angka nganggo awalan 0x, 0b utawa 0o?

Ya. Awalan 0x (heksadesimal), 0b (binary) atawa 0o (oktal) dileungitkeun sacara otomatis, sahingga anjeun tiasa nempelkeun nilai langsung ti kode. Ngan pastikeun basis input anu anjeun pilih cocog sareng digit anu anjeun lebetkeun.

Apa sing bisa ditemokake ing situs iki?

Ieu jumlah digit biner nu diperlukeun ku nilai. Desimal 255 nyaéta 8 bit (hiji bait); 256 butuh 9 bit. Jarak bit mangpaat pikeun milih jinis data sarta nguji kamampuan nilai pikeun disimpen dina bait, kecap 16-bit atawa rékaman 32-bit.

Apa sing octal digunakake kanggo?

Octal ngakelompokkeun bit dina tigaan sarta biasana kapanggih dina ijin berkas Unix (kayaning 755 atawa 644) sarta sababaraha sistem legacy. Satiap digit octal ngagambarkeun tepatna tilu bit biner, cara satiap digit hex ngagambarkeun opat.

Kenapa aku nampa "nomor ora sah kanggo basis iki"?

Digit nu anjeun ngetik teu diijinkeun dina basis anu dipilih - contona huruf F atawa digit 8 dina angka biner, anu ngan diijinkeun 0 jeung 1. Ganti basis input pikeun cocog nilai anjeun, atawa ngalereskeun digit anu diluar wates.

❤️ Love Calculator.Free? Bagikan

API — gunakake kalkulator iki saka kode

Ngadongékeun kalkulator ieu minangka titik akhir JSON bébas — teu peryogi kunci. Kirim nilai medan di handapeun minangka parameter pitakonan atawa JSON. Anything you omit uses the same default this page is pre-filled with; an unknown parameter is a 400, never a silent zero. Waca dokumen lengkap API →

Tampilan

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

Hasilna nyaéta perkiraan pikeun pituduh umum, henteu saran finansial, médis atanapi pajak.