Startseite / Mathematik-Rechner / Binärrechner

Binärrechner

Verwenden Sie die folgenden Rechner, um zwei Binärwerte zu addieren, subtrahieren, multiplizieren oder dividieren sowie Binärwerte in Dezimalwerte und umgekehrt umzurechnen.

Werte anpassen und auf Berechnen klicken

Binärrechnung—Addieren, Subtrahieren, Multiplizieren oder Dividieren

= ?

Binärwert in Dezimalwert umrechnen

Binärwert: = ?

Dezimalwert in Binärwert umrechnen

Dezimalwert: = ?

Interaktives Bit-Register & Visualisierung der 2er-Potenzen

Interaktives 8-Bit-Schalterregister (Bits anklicken zum Umschalten 0/1)
Binär: 10101010
Dezimalsumme: 170
Hex: 0xAA
Aufschlüsselung der 2er-Potenz-Bitgewichte Aktive Bits grün hervorgehoben

Understanding the Binary Number System (Base-2)

The binary numeral system, or base-2, is the mathematical bedrock of contemporary computation, digital hardware, and networking architectures. Unlike the decimal system (base-10), which employs ten distinct symbols (0 through 9) governed by powers of ten, binary operates exclusively with two discrete states: zero (0) and one (1). Each binary digit is termed a bit. In computer engineering, physical transistors represent these bits through distinct voltage levels—such as zero volts for logic LOW (0) and 3.3 or 5 volts for logic HIGH (1). Grouping eight bits creates a byte, capable of expressing 256 distinct permutations (from 0 to 255 in unsigned decimal notation), which forms the atomic unit of addressable computer memory.

Binary Arithmetic: Addition, Subtraction, Multiplication, and Division

Performing arithmetic calculations directly in binary mirrors standard decimal column-based math, simplified by having only two possible digits. In binary addition, four elementary axioms govern every bit pair: 0 + 0 = 0, 0 + 1 = 1, 1 + 0 = 1, and 1 + 1 = 10 (which produces 0 in the current position and generates a carry of 1 into the next higher place value). When three ones meet (1 + 1 + 1 from a previous carry), the sum is 11 (1 with a carry of 1). Binary subtraction uses borrowing: 0 - 0 = 0, 1 - 0 = 1, 1 - 1 = 0, and 0 - 1 borrows a 2 from the adjacent left column, yielding 2 - 1 = 1.

Binary multiplication is exceptionally streamlined: multiplying by 0 yields all zeros, while multiplying by 1 simply copies the multiplicand. Hardware Arithmetic Logic Units (ALUs) execute multiplication by generating shifted partial products and accumulating them via high-speed parallel adders. Similarly, binary division relies on the standard long division algorithm of successive left-to-right subtraction and quotient digit allocation (either 0 or 1), yielding both an exact integer quotient and a terminal remainder.

Step-by-Step Conversion Algorithms: Base-2 and Base-10

Converting a binary integer to its decimal equivalent relies on positional expansion. Each bit at index n (counted from 0 at the rightmost least-significant bit) carries a decimal weight of 2n. To convert 10101010₂ to decimal:

  • Bit 7 (1): 1 × 27 = 128
  • Bit 6 (0): 0 × 26 = 0
  • Bit 5 (1): 1 × 25 = 32
  • Bit 4 (0): 0 × 24 = 0
  • Bit 3 (1): 1 × 23 = 8
  • Bit 2 (0): 0 × 22 = 0
  • Bit 1 (1): 1 × 21 = 2
  • Bit 0 (0): 0 × 20 = 0
  • Total Sum: 128 + 32 + 8 + 2 = 170₁₀

Conversely, to convert a decimal integer to binary, the successive division by 2 algorithm is applied. The integer is divided by 2, the integer quotient becomes the input for the next cycle, and the remainder (0 or 1) is recorded. Once the quotient reaches zero, the remainders are read in reverse order (from bottom to top) to produce the exact binary sequence. For fractional quantities, the fractional portion is repeatedly multiplied by 2, and the overflow whole numbers (0 or 1) are recorded from top to bottom.

Signed Numbers, Two's Complement, and Practical Real-World Applications

In modern microprocessors, negative numbers are encoded via Two's Complement notation. Unlike sign-magnitude systems, two's complement eliminates the problem of dual zeros (+0 and -0) and enables the ALU to use identical electronic addition circuitry for both addition and subtraction. To compute the two's complement of an N-bit integer, invert every bit (forming the one's complement) and add 1. Beyond computer CPU registers, binary logic powers Internet Protocol (IPv4/IPv6) CIDR subnet masking, cryptographic hash functions (such as SHA-256 and AES), digital audio PCM sampling, and hardware communication protocols including I2C, SPI, and UART.

Häufig gestellte Fragen (FAQ)

Wie ermittle ich Netzwerk- und Broadcast-Adresse aus IP und CIDR?
Wandeln Sie IP-Adresse und Subnetzmaske in 32-Bit-Binärzahlen um. Führen Sie ein bitweises UND zwischen IP und Maske durch, um die Netzwerkadresse zu erhalten. Invertieren Sie dann die Maske für die Wildcard-Maske und führen Sie ein bitweises ODER zwischen Netzwerkadresse und Wildcard durch, um die Broadcast-Adresse zu erhalten.
Warum bietet ein /30-Subnetz nur 2 nutzbare IP-Adressen?
Ein /30-Präfix belässt 32 - 30 = 2 Host-Bits. Die Gesamtzahl der Adressen beträgt 2^2 = 4. Da die erste als Netzwerkadresse und die vierte als Broadcast-Adresse reserviert ist, verbleiben exakt 4 - 2 = 2 nutzbare Host-Adressen, was /30 zum Standard für Punkt-zu-Punkt-WAN-Verbindungen macht.
Was ist der Unterschied zwischen klassenbasiertem und klassenlosem (CIDR) Routing?
Klassenbasiertes Adressieren (RFC 791) teilte IPs starr in Klasse A (/8), B (/16) und C (/24) ein, was zu enormer Adressverschwendung führte. CIDR (RFC 1519) hob diese festen Grenzen auf und ermöglichte flexible Präfixlängen von /1 bis /32 sowie effiziente Routen-Aggregation.
Wie funktionieren Wildcard-Masken in Cisco-Router-Konfigurationen?
Eine Wildcard-Maske teilt dem Router mit, welche Bits übereinstimmen müssen (Wildcard-Bit 0) und welche ignoriert werden können (Wildcard-Bit 1). Sie wird berechnet als 255.255.255.255 minus Subnetzmaske. Beispiel: Für /26 (Maske 255.255.255.192) lautet die Wildcard-Maske 0.0.0.63.

Zuletzt überprüft:

Gespeicherte Berechnungen
No saved calculations yet.