Konwerter numerów
Przelicz numery między binarnymi, ósmicznymi, dziesiętnymi i szesnastym.
Wyniki aktualizacja podczas pisania.
O tym kalkulatorze
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.
Często zadawane pytania
Jak przekształcić dziesiętną na binarną?
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.
W jakim celu stosuje się sześciodecymalny?
Heksadecimalna (baza 16) pakuje cztery bity binarne w jedną cyfrę (0–9, a następnie A–F), więc jest to kompaktowy sposób zapisania bajtów. Numerem decydowym 255 jest FF w heksadecydli.
Dlaczego mój numer pokazuje pojemnik?
Cyfry muszą być ważne dla podstawy źródła — na przykład tylko 0 i 1 w binarnej, lub 0–9 i A–F w heksadecydli. Nieprawidłowa cyfra sprawia, że wynik jest niezdefiniowany.
Co oznaczają litery A do F w sześciodziesiątnej?
Są one jednocyfrowe dla wartości 10 do 15: A jest 10, B jest 11, do F, co jest 15, pozwala bazować 16 liczb mieści się do 15 w jednym miejscu, zanim musi przenieść.
Dlaczego każda cyfra hex równa się cztery cyfry binarne?
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.
Czy ten konwerter może trzymać się bardzo dużymi liczbami?
It works on whole numbers and is accurate up to the range integers are stored exactly (about 9 quadrillion, or 2⁵³). Beyond that, extremely long binary or hexadecimal strings may lose precision in their last digits.
API – użyj tego kalkulatora z kodu
Wyślij ten kalkulator jako bezpłatny punkt końcowy JSON – nie jest wymagany klucz. Wyślij wartości pola poniżej jako parametry zapytania lub JSON. Wszystko co omit używa tego samego domyślnego, ta strona jest wypełniona; nieznany parametr to 400, nigdy nie cicho zero. Przeczytaj pełne dokumenty API →
Punkt końcowy
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);
Wyniki to szacunkowe wyniki ogólnych wytycznych, a nie porad finansowych, medycznych lub podatkowych.