Mpanova fototra
Manova isa amin'ny alalan'ny binary, octal, decimal ary hexadecimal.
Manova ny valin'ny fanoratanao.
Momba ity kapila ity
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.
Fanontaniana matetika
Ahoana no ahafahako manova ny decimal ho 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.
Inona no atao hoe hexadecimal?
Ny hexadecimal (fototra 16) dia mametraka ny bit binary efatra ao anatin'ny isa iray (0-9 avy eo A-F), ka izany no fomba tsotra indrindra hanoratra ny byte. FF amin'ny hex ny isa decimal 255.
Nahoana no misy tsipika eo amin'ny laharanako?
Tsy maintsy mitombina amin'ny fototra loharano ireo isa ireo — ohatra, 0 sy 1 ihany amin'ny binary, na 0-9 sy A-F amin'ny hex. Tsy azo faritana ny valiny raha misy isa tsy mitombina.
Inona no dikan'ny litera A hatramin'ny F amin'ny hexadecimal?
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.
Nahoana no mitovy amin'ny isa efatra ny isa hexadecimal?
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.
Afaka mifehy isa lehibe ve ity mpanova ity?
Miasa amin'ny isa feno izy io ary marina hatramin'ny faritry ny isa feno voatahiry marina (eo amin'ny 9 quadrillion, na 2⁵³). Ankoatra izany, mety ho very ny marina amin'ny isa farany ny laha-daza binary na hexadecimal lava be.
API — mampiasa io milina fanisana io avy amin'ny rindran'asa
Antsoy ho toy ny farany JSON malalaka ity milina fanisana ity - tsy mila famaha. Mandefa ireo sanda eo amin'ny sehatr'asa etsy ambany ho toy ny mpizaratry ny fanontaniana na JSON. Ny zavatra tsy voalaza dia mampiasa ny sanda tsotra efa nameno ity pejy ity; 400 ny sanda tsy fantatra, tsy aotra tsy misy feo. Vakio ny tahirin-kevitra API feno →
Endpoint
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);
Ny voka-pikarohana dia natao ho an'ny torohevitra ankapobeny ihany, tsy torohevitra ara-bola, ara-pitsaboana na ara-bola.