bitcalc

πŸ”„ Zahlensystem-Konverter

Bin, Oct, Dec, Hex β€” live umrechnen, wΓ€hrend Sie tippen.

Zahl konvertieren

Konvertierung

DECβ€”
HEXβ€”
BINβ€”
OCTβ€”

πŸ“ Bits verstanden? Dann IOPS berechnen.

πŸ”’ Why a Number System Converter?

Hexadecimal is the language of hardware. Binary is the foundation of every digital system.

Live conversion between Bin, Oct, Dec, and Hex.

Hexadecimal β€” The Language of Machines

Hexadecimal numbers (base 16) are the bridge between human and machine. Two hex digits = one byte β€” hence the standard for memory addresses, color codes, MAC addresses, and binary dumps. 0x7F is more readable than 01111111, but just as precise.

Binary β€” The Foundation

Every computer works with binary numbers (base 2). Subnet masks, bitmasks, GPIO pins: everything at the bit level. Our converter displays binary values with 4-bit grouping β€” 11111111 becomes 1111 1111.

Octal β€” The Unix Classic

Octal numbers (base 8) are Unix DNA: file permissions (chmod 755), character escapes (\033). Three bits per octal digit β€” the most compact human-readable format for short binary values.

Live Conversion

Select the source format, type a number β€” all three other formats appear instantly. Ideal for debugging, embedded development, and CCNA exams.

Quick Reference: 0 to 15 in All Four Systems

The first 16 values are the multiplication table of number systems. Once you know them by heart, binary dumps and memory addresses read much faster:

DecimalHexBinaryOctal
0000000
1100011
2200102
3300113
4401004
5501015
6601106
7701117
88100010
99100111
10A101012
11B101113
12C110014
13D110115
14E111016
15F111117

Pattern: each hex digit maps to exactly four bits. So 0x2F becomes 0010 1111 β€” no arithmetic, just look up the four bits per digit.

Negative Numbers: Two's Complement

In practice you rarely see only positive values. Processors store negative numbers in two's complement: the highest bit is the sign, and a negative value is formed by inverting all bits and adding 1.

In 8 bits: -1 is 0xFF, i.e. 1111 1111. -2 is 0xFE. That is why logs or ss output sometimes show -1 where you expected 255 β€” same bits, different interpretation.

When widening, sign extension applies: a negative 8-bit value is padded with the sign bit up to 32 bits. 0xFF becomes 0xFFFFFFFF, not 0x000000FF. This is where classic off-by-256 bugs come from.

Bit Widths: 8, 16, 32, 64

Whether a value fits depends on the bit width. Keep these limits in mind:

Bitsunsigned (max)signed (max)
8255127
166553532767
3242949672952147483647
64184467440737095516159223372036854775807

You meet these limits everywhere: a byte (8 bit) holds 0 to 255, a TCP or UDP port is 16 bit (0 to 65535), an IPv4 address is 32 bit, and modern counters or filesystem values are often 64 bit. Enter 256 as a port number and you get no error message β€” just a wrong result.

Four Mistakes Almost Everyone Makes Once

What Do You Need the Converter For?

Three everyday IT situations: You want to convert a MAC address like 00:1A:2B:3C:4D:5E to binary to explain an access list problem. You stumble over a color like 0xFF8800 and want to know which RGB values hide behind it. Or you want to finally explain to a colleague why chmod 755 grants exactly those permissions. This converter is here for all of that β€” and it calculates live.

How to Use the Converter

Choose the source format β€” for example Decimal (DEC) for a number you just read from a log.

Type the number. The converter also understands the 0x prefix for hexadecimal values.

All other formats appear instantly β€” no convert button needed. Example: 255 becomes 0xFF and 11111111.

Example: Decoding 0xFF8800

The color 0xFF8800 splits into three bytes: FF = 255 (red), 88 = 136 (green), 00 = 0 (blue) β€” a strong orange. Since each digit pair is exactly one byte, a 6-digit hex color always consists of three RGB components. Type it into the converter β€” it breaks it down into decimal and binary live.

Understanding Hex: FF = 255

One hex digit covers 16 values (0–9, A–F), two digits therefore 16 Γ— 16 = 256 values β€” exactly one byte. That's why FF = 255 maps perfectly onto the maximum value of a byte. This 1:1 relationship makes hex the shorthand for binary: a MAC address like 00:1A:2B is the compact form of 48 bits, and IPv6 addresses are 128 bits in hex groups.

Octal: The Unix Classic

Octal (base 8) looks exotic today but is deeply rooted in Unix: chmod 755 splits into three digits of 3 bits each: read (4), write (2), execute (1) adds up to 7. Character escapes like \033 for ESC in shell scripts are octal too β€” three bits per digit make octal the most compact human-readable representation for 6- or 9-bit values.

Frequently Asked Questions

Why is hex so widespread?

Because two hex digits are exactly one byte. You write 255 instead of 11111111 β€” fewer digits, fewer reading errors, and each digit pair corresponds directly to a byte in memory.

What is 0xFF?

0xFF is hexadecimal for 255 β€” the maximum value of a byte, with all 8 bits set. In CSS that's the color white, in subnet masks the familiar 255.

How do I convert decimal to binary?

Fastest with this converter: set the format to decimal, type the number, read the binary value. To understand it: repeatedly divide the number by 2 and note the remainders from bottom to top.

What's the difference between base 2 and base 16?

Both map the same number space, just with different digits: binary only knows 0 and 1, hex uses 0–9 plus A–F. The value is identical β€” the notation is just shorter: 11111111 = FF.

Sources & Further Reading

More on number systems in our blog: Zahlenwelten des Admins. IP ranges? The subnet calculator handles them β€” a feel for binary helps there too.