Base-2

Binary Number System

Binary uses only `0` and `1`, making it the native language of digital systems. Every byte, flag, permission bit, and machine instruction starts from this idea.

Decimal To Binary

Enter a decimal value from 0 to 255 to see its binary and hexadecimal forms.

Decimal

42

Binary

00101010

Hex

2A

Byte Weights

Each position in a byte represents a power of two.

2

7

128

2

6

64

2

5

32

2

4

16

2

3

8

2

2

4

2

1

2

2

0

1

Why Binary Matters

Bits & Bytes

Storage and memory are measured in bytes, and each byte is just eight binary positions.

Permissions

Read, write, execute, flags, and masks are often toggled as individual binary states.

Networking

IPv4 masks, subnetting, and packet flags become much easier once binary place values make sense.

Low-Level Thinking

Binary helps explain how processors, memory, file formats, and encodings are represented under the hood.

Binary Quick Reference

DecimalBinaryHex
000000
100011
200102
300113
401004
501015
601106
701117
810008
910019
101010A
111011B
121100C
131101D
141110E
151111F