Byte / Bit Unit Converter

Convert between all data size units instantly. Supports both decimal (SI) and binary (IEC) standards, transfer time estimation, and precision control. All processing happens locally in your browser.

Enter a Value
Decimal (SI) Units 1 KB = 1,000 B
Bits (b)
Bytes (B)
Kilobytes (KB)
Megabytes (MB)
Gigabytes (GB)
Terabytes (TB)
Petabytes (PB)
Binary (IEC) Units 1 KiB = 1,024 B
Kibibytes (KiB)
Mebibytes (MiB)
Gibibytes (GiB)
Tebibytes (TiB)
Note: Binary (IEC) units use powers of 1,024. Operating systems like macOS use SI units, while Windows traditionally uses binary units labeled as KB/MB/GB.
Transfer Time Estimate
--
Common File Size Reference
File TypeTypical Size

How It Works

Real-Time Conversion

Enter a value in any field and see all other units update instantly. Type in the main input or directly in any result field for bidirectional conversion.

📈

SI and IEC Units

See both decimal (SI: KB, MB, GB) and binary (IEC: KiB, MiB, GiB) values simultaneously. Understand exactly how your data size translates across both standards.

🕑

Transfer Time Estimation

Estimate how long it takes to download or upload your data at various connection speeds, from dial-up to 10 Gbps data center links.

🎯

Precision Control

Adjust the number of decimal places from 0 to 20 for exact calculations. Perfect for scientific computing, storage planning, and network capacity analysis.

Understanding Data Size Units

Data size units measure the amount of digital information. The smallest unit is the bit (binary digit), which represents a single 0 or 1. Eight bits make a byte, the fundamental unit used to represent a single character of text. Larger units are multiples of bytes, but there are two competing standards for how these multiples are defined.

Decimal (SI) vs. Binary (IEC) Units

The SI (International System of Units) standard uses powers of 1,000: 1 KB = 1,000 bytes, 1 MB = 1,000,000 bytes, and so on. This follows the same convention as other metric prefixes (kilo = 1,000, mega = 1,000,000). Hard drive manufacturers, network speeds, and macOS use SI units.

The IEC (International Electrotechnical Commission) standard uses powers of 1,024: 1 KiB = 1,024 bytes, 1 MiB = 1,048,576 bytes. These binary prefixes (kibi, mebi, gibi, tebi) were introduced in 1998 to eliminate the ambiguity of using the same names for different values. RAM is measured in binary units, and Windows historically uses binary values labeled as KB/MB/GB.

Why the Difference Matters

The gap between SI and IEC units grows with size. At the kilobyte level, the difference is only 2.4%. At the terabyte level, it is nearly 10%. This is why a "1 TB" hard drive shows approximately 931 GB in Windows -- the drive contains 1,000,000,000,000 bytes (1 TB in SI), but Windows reports it as approximately 931 GiB using binary units.

Network Speeds: Bits vs. Bytes

Network speeds are measured in bits per second (bps, Kbps, Mbps, Gbps), while file sizes and storage are measured in bytes. To convert between them, divide by 8. A 100 Mbps internet connection can transfer a maximum of 12.5 MB per second. This is why downloading a 1 GB file on a "100 Mbps" connection takes about 80 seconds, not 10.

Frequently Asked Questions

What is the difference between KB and KiB?
KB (kilobyte) uses the SI (decimal) standard where 1 KB = 1,000 bytes. KiB (kibibyte) uses the IEC (binary) standard where 1 KiB = 1,024 bytes. The difference grows larger with bigger units: 1 TB = 1,000,000,000,000 bytes while 1 TiB = 1,099,511,627,776 bytes, a difference of nearly 10%. Hard drive manufacturers use SI units, while RAM and many operating systems use binary units.
Why are there two different unit systems for data sizes?
Historically, the terms kilobyte, megabyte, etc. were used ambiguously to mean either 1,000 or 1,024 bytes depending on context. Computer memory (RAM) naturally operates in powers of 2, making 1,024 a natural unit. However, the SI metric system defines "kilo" as exactly 1,000. To resolve this ambiguity, the IEC introduced binary prefixes (KiB, MiB, GiB, TiB) in 1998. The SI prefixes (KB, MB, GB, TB) strictly mean powers of 1,000, while IEC prefixes strictly mean powers of 1,024.
How many bits are in a byte?
There are 8 bits in a byte. A bit is the smallest unit of data in computing, representing a single binary value (0 or 1). A byte consists of 8 bits and can represent 256 different values (2^8), which is enough for one ASCII character. All larger data units (KB, MB, GB, TB, PB) are multiples of bytes.
Why does my hard drive show less space than advertised?
Hard drive manufacturers use SI (decimal) units where 1 TB = 1,000,000,000,000 bytes. However, Windows reports sizes using binary units where 1 TiB = 1,099,511,627,776 bytes but labels them as "TB". A 1 TB drive contains exactly the advertised number of bytes, but Windows displays it as about 931 GB. macOS switched to SI units in 2009, so it will show the drive as 1 TB. Some space is also used by the file system and formatting overhead.
What is the difference between Mbps and MBps?
Mbps (megabits per second) and MBps (megabytes per second) differ by a factor of 8, since 1 byte = 8 bits. Network and internet speeds are typically advertised in Mbps (bits), while file download speeds and storage throughput are often shown in MBps (bytes). For example, a 100 Mbps internet connection can transfer data at a maximum of 12.5 MBps (100 divided by 8). ISPs use bits because the numbers are larger and more marketable.
Is my data safe when using this tool?
Yes. This byte converter runs entirely in your browser using JavaScript. No data is sent to any server, stored, or logged. All calculations happen locally on your device. You can verify this by disconnecting from the internet and confirming the tool still works perfectly.

Explore More Developer Tools

Check out our other free developer tools. Convert numbers between bases, generate hashes, format JSON, and more -- all from your browser with no sign-up required.

Number Base Converter →