Zahlen-Basis-Konverter
Konvertieren Sie Zahlen zwischen binär, oktal, dezimal und hexadezimal.
Ergebnisse aktualisieren, wie Sie tippen.
Über diesen Rechner
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.
Häufig gestellte Fragen
Wie konvertiert man Dezimalzahlen in Binärzahlen?
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.
Wofür wird Hexadezimal angewendet?
Hexadezimal (Basis 16) verpackt vier Binärbits in eine Ziffer (0–9 dann A–F), so dass es eine kompakte Art ist, Bytes zu schreiben. Die Dezimalzahl 255 ist FF in Hex.
Warum zeigt meine Nummer einen Strich?
Die Ziffern müssen für die Quellbasis gültig sein — z.B. nur 0 und 1 in binärer oder 0–9 und A–F in Hex. Eine ungültige Ziffer macht das Ergebnis undefiniert.
Was bedeuten die Buchstaben A bis F im Hexadezimal?
Sie sind einstellig für die Werte 10 bis 15: A ist 10, B ist 11, bis F ist 15. Damit passen Basis 16 Zahlen bis zu 15 an einen Ort, bevor sie tragen muss.
Warum entspricht jede Hex-Zahl vier binären Ziffern?
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.
Kann dieser Konverter sehr große Zahlen verarbeiten?
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 — verwenden Sie diesen Rechner aus Code
Rufen Sie diesen Rechner als kostenlosen JSON-Endpunkt auf – kein Schlüssel erforderlich. Senden Sie die Feldwerte unten als Abfrageparameter oder JSON. Alles, was Sie weglassen, verwendet die gleiche Voreinstellung, mit der diese Seite vorgefüllt ist; ein unbekannter Parameter ist ein 400, nie ein stiller Null. Lesen Sie die vollständigen API-Dokumente →
Endpunkt
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);
Die Ergebnisse sind Schätzungen für allgemeine Leitlinien, nicht für finanzielle, medizinische oder steuerliche Beratung.