Home / Guides / Bits, bytes and data units

Bits, bytes and data units

A bit is a single 0 or 1, and eight bits make one byte.

Bits and bytes

A bit is the smallest unit of information, a 0 or 1. Eight bits form one byte, which can represent 0-255 (eight binary digits).

Data units

1KB is conventionally 1,024 bytes (2¹⁰) and 1MB is 1,024KB. Storage makers sometimes use the decimal basis (1KB = 1,000B), so the binary basis is written as KiB and MiB.

In this tool

Enter a value and this tool shows its bit length and byte count alongside each base.