Inombolo yokuqala yokuguqula
Guqula inani phakathi kwe binary, octal, decimal ne hexadecimal.
Iziphetho zivuselelwa uma ubhala.
Malunga nale khadi
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.
Imibuzo ebuzwa kaningi
Ngiguqula kanjani i-decimal ibe yi-binary?
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.
I-hexadecimal isetshenziswa kuphi?
Hexadecimal (isizinda 16) ifaka amabithi amabili amane kunombolo eyodwa (0-9 bese A-F), ngakho-ke kuyindlela elula yokubhala amabhayithi. Inani eliyisishiyagalombili 255 liyi-FF ku hex.
Kungani inani lami libonisa i-dash?
Amadijithi kufanele abe yiqiniso kumthombo wesizinda - isibonelo kuphela 0 ne 1 ku-binary, noma 0-9 ne A-F ku-hex. I-digit engalungile ibangela ukuthi imiphumela ingacacisiwe.
Yini okusho amabhukwana A kuya ku F ku hexadecimal?
Ziyizinhlamvu ezihlukile zezinto ezilinganayo ezingu-10 kuya ku-15: A yi-10, B yi-11, kuze kube yi-F elingana no-15. Le nto ivumela isisekelo 16 ukuthi silungele inani kuze kube ngu-15 endaweni eyodwa ngaphambi kokuba sithathe.
Kungani i-hex digit ngayinye ilingana ne-binary digits ezine?
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.
Ingabe lo mguquli ungaphatha inani elikhulu kakhulu?
Isebenza kumanani aphelele futhi ilungile kuze kube yilapho inani eliphelele ligcinwa ngokugcwele (imalunga ne-9 quadrillion, noma 2⁵³). Ngaphesheya kwalokho, ama-binary ade kakhulu noma ama-hexadecimal strings angalahlekelwa u precision kumanani abo adlule.
API — sebenzisa le calculator kusuka kukhodi
Nquma le calculator njenge JSON evulekile yendawo yokuqeda - akukho isithonjana esidingekayo. Thumela amaxabiso endawo ngezansi njengezilungiselelo zombuzo noma i-JSON. Noma yini ongayishiya isebenzisa iphutha elifanayo elifakwe ngaphambili lekhasi; ipharamitha engaziwa yi-400, ayikho i-zero emnyama. Funda i-API egcwele →
Ingxenye yendawo
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);
Izibalo ziyisilinganiso esisetshenziswa ukuqondisa kuphela, hhayi ukucebisa ngezimali, ukwelashwa noma ukukhokha.