Binè / Hex / Decimal Konvètisè

Konvèti yon nimewo ant binè, octal, desimal ak hexadecimal, ak yon tab detachman.

Decimal —
Binè —
Hex —
Oktal —
Longè bit —

Rezilta yo mete ajou pandan w ap ekri.

Did this calculator give you the right answer?

Atik sa a

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.

Kesyon ki poze souvan

Kijan pou mwen konvèti desimal pou hexadecimal?

Divide pa 16 ak li rès la soti nan dènye a premye, ak A-F pou 10-15. 255 desimal se FF nan hex ak 11 nan binè.

Poukisa se hexadecimal itilize nan informatique?

Chak chif hex mape nan egzakteman kat bits binè, se konsa hex se yon fason konpa, lizib pou ekri valè byte ak adrès memwa - 0xFF se yon byte nan tout yo.

Èske mwen ka antre nimewo ak prefiks 0x, 0b oswa 0o?

Wi. Yon prefiks 0x (hex), 0b (binè) oswa 0o (oktal) ki devan se retire otomatikman, pou ou ka kole valè dirèkteman nan kòd la. Jis asire w ke baz entrée ou chwazi a matche ak chif ou antre yo.

Ki sa ki longè bit la di m '?

Sa se kantite chif binè valè a bezwen. Decimal 255 se 8 bits (yon byte); 256 bezwen 9 bits. Longè bit la itil pou chwazi kalite done yo epi pou tcheke si yon valè ka antre nan yon byte, yon mo 16-bit oswa yon rejis 32-bit.

Ki sa ki octal itilize pou?

Oktal groupé bits nan twa ak montre a pi fò nan Unix dosye permissions (tankou 755 oswa 644) ak kèk sistèm legacy. chak octal digits mapage a egzakteman twa binary bits, fason chak hex digits mapage a kat.

Poukisa mwen te resevwa "nimewo ki pa valid pou baz sa a"?

Yon chif ou antre pa pèmèt nan baz la chwazi - pou egzanp lèt F oswa chif 8 nan yon nimewo binè, ki sèlman pèmèt 0 ak 1. Korije chif la ki pa nan baz la pou li sanble ak valè ou, oswa kòrèkte chif ki pa nan baz la.

❤️ Love Calculator.Free? Partager

𝕏  X Facebook Reddit
API — itilize sa a calculateur soti nan kòd

Apèl sa a calculateur kòm yon gratis JSON pwent-de-fini - pa gen okenn kle ki nesesè. Envoye valè jaden anba a kòm paramèt kesyonè oswa JSON. Anything you omit uses the same default this page is pre-filled with; an unknown parameter is a 400, never a silent zero. Li dokiman API a an antye →

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

Rezilta yo se estimasyon pou kòmandman jeneral sèlman, pa finansye, medikal oswa konsèy taks.