Zahlenumrechnung

Binär, Oktal, Dezimal, Hexadezimal und Bitverschiebung

Required Parameters

bits

Waiting for input data...

Ad Placement
Sidebar Adaptive Ad Slot

Quick Answer

Each hex digit is 4 binary bits: F = 1111, so FF = 11111111 = 255. Group binary into nibbles to read hex. Left shift by N multiplies by 2^N.

Documentation

Zahlensystem-Umrechner

Konvertieren Sie Zahlen zwischen binaer, oktal, dezimal und hexadezimal.

Design Notes

Hex is the standard display form for binary because it aligns with 4-bit nibbles and 8-bit bytes. Use this converter for register dumps, color codes, memory addresses, and protocol payloads. Bit shifts use integer (BigInt) semantics — they do not rotate.

Common Mistakes

  • 1

    Mixing up 0x (hex prefix) with 0 (decimal) — 0x10 = 16, not 10.

  • 2

    Forgetting two's complement for signed integers — 0xFF is 255 unsigned but -1 signed (8-bit).

  • 3

    Using octal (0o prefix) accidentally in JavaScript by adding a leading zero to what should be a decimal number.

Knowledge Base

Was ist FF hexadezimal?

FF = 255 dezimal = 11111111 binär. Maximum eines 8-Bit-Bytes. Jede Hex-Ziffer = 4 Binärbits.

Wie rechne ich Binär in Dezimal um?

Jede Stelle von rechts repräsentiert eine Zweierpotenz: 2⁰=1, 2¹=2, 2²=4... Beispiel: 10110 = 16+4+2 = 22.

Warum nutzen Programmierer Hexadezimal?

Hex bildet perfekt auf Binär ab (1 Hex = 4 Bit), ideal für Speicheradressen, Farbcodes und Registerwerte.

Was ist Zweierkomplement?

Darstellung negativer Ganzzahlen: Alle Bits invertieren und 1 addieren. 8-Bit: -1 = 0xFF. Bereich: -128 bis +127.

Wie funktionieren Bitverschiebungen?

Links um N = Multiplikation mit 2^N. Rechts um N = Division durch 2^N. Grundlage schneller Arithmetik in CPUs.