Àwọn Àgbèkàn Àwọn
Convert numbers between binary, octal, decimal and hexadecimal.
Àwọn Àtòjọ-ẹ̀yàn àwọn ìṣàmúlò-ètò
Àkóónú ìṣàmúlò-ètò yìí
A number base converter rewrites an integer from one positional base to another — binary (base 2), octal (base 8), decimal (base 10) and hexadecimal (base 16). It reads your value in the source base, works out its plain decimal value, and re-expresses that value in the target base.
Each base uses a fixed set of digits: 0–1 for binary, 0–7 for octal, 0–9 for decimal and 0–9 then A–F for hexadecimal, where A–F stand for 10–15. Because 16 is 2⁴, each hex digit maps to exactly four binary digits, which is why programmers use hex as shorthand for raw bytes.
Worked example: the decimal number 255 is 11111111 in binary and FF in hexadecimal, since 255 = 15×16 + 15. The converter also reports the intermediate decimal value so you can check the working. A results table shows the same number in all four bases at once, and an invalid digit for the chosen source base is flagged rather than silently miscounted.
Àwọn Àtòjọ-ẹ̀yàn
Bawo ni mo ṣe lè yipada àwọn
Repeatedly divide by 2 and read the remainders from bottom to top. For example 10 in decimal is 1010 in binary, and 255 is 11111111.
Kini àwọn àwọn ààtò àwọn ààtò àwọn ààtò àwọn ààtò àwọn ààtò àwọn ààtò àwọn ààtò àwọn ààtò àwọn ààtò àwọn ààtò àwọn ààtò àwọn ààtò
Hexadecimal (base 16) packs four binary bits into one digit (0–9 then A–F), so it is a compact way to write bytes. The decimal number 255 is FF in hex.
Kini idi ti àwọn à
The digits must be valid for the source base — for example only 0 and 1 in binary, or 0–9 and A–F in hex. An invalid digit makes the result undefined.
Kini àwọn àyọkà A sí F nínú àwọn àyọkà àwọn
They are single digits for the values 10 through 15: A is 10, B is 11, up to F which is 15. This lets base 16 fit numbers up to 15 into one place before it has to carry.
Kini idi tí àwọn àwọn ààyè hex tí a fi pamọ́ ló jẹ́ àwọn ààyè àwọn àwọn ààyè àwọn ààyè àwọn ààyè àwọn ààyè àwọn ààyè àwọn ààyè àwọn ààyè àwọn ààyè àwọn ààyè àwọn ààyè àwọn ààyè
Because 16 equals 2 to the fourth power, every hexadecimal digit covers exactly four bits. So the byte 11111111 groups into 1111 1111, which is FF — this number base converter does that grouping for you.
Àwọn àwọn
Ó ń ṣiṣẹ́ lori àwọn àwọn inú-ìtílẹ̀ àtí ò jẹ́ ìṣàfarawé nípa àwọn inú-ìtílẹ̀ ìpelè tí a fi pamọ́ nípa ìpéwọ̀n (nípa 9 quadrillion, tàbí 2⁵³). Nínú àwọn àmì-ìwé àwọn àwọn àmì-ìwé àwọn àwọn àmì-ìwé àwọn
API — ló àwọn ìṣàmúlò-ètò yìí láti inú ìṣàmúlò-ètò
Fi àwọn ìṣàmúlò-ètò yìí kọ̀ǹpútà yìí láti jẹ́ ààyè-iṣẹ́ JSON tí a tí fi pamọ́ - kò ní bọ́tìnì kan tí a fẹ́. Fi àwọn fálù ààyè-iṣẹ́ sílẹ̀ sí bí àwọn àwọn ìṣàmúlò-ètò àti JSON. Anything you omit uses the same default this page is pre-filled with; an unknown parameter is a 400, never a silent zero. Ka àwọn àkọlé API kíkún →
Àwọn Ààyè Ìjánu-ìṣàmúlò-ètò
GET https://calculator.free/api/v1/number-base/
curl
curl "https://calculator.free/api/v1/number-base/?amount=255&from=10&to=2"
JavaScript fetch()
const r = await fetch(
"https://calculator.free/api/v1/number-base/?" + new URLSearchParams({
"amount": "255",
"from": "10",
"to": "2"
}));
const data = await r.json();
console.log(data.results);
Results are estimates for general guidance only, not financial, medical or tax advice.