Convert between data storage units. Enter a value in any field and see instant conversions.
Binary (1024): Used by operating systems and RAM. Decimal (1000): Used by storage manufacturers and bandwidth.
Advertisement
About This Tool
The data unit converter is an essential tool for anyone working with digital storage, networking, or computing infrastructure.
It provides instant, accurate conversions between all common data measurement units including bytes (B), kilobytes (KB), megabytes (MB), gigabytes (GB), terabytes (TB), and petabytes (PB), as well as their binary counterparts defined by the International Electrotechnical Commission (IEC): kibibytes (KiB), mebibytes (MiB), gibibytes (GiB), tebibytes (TiB), and pebibytes (PiB).
The distinction between binary and decimal data units has been a source of confusion since the earliest days of computing. In 1998, the IEC introduced binary prefixes (kibi-, mebi-, gibi-) to resolve the ambiguity between the traditional use of kilo (meaning 1,024 in computing) and the SI standard kilo (meaning 1,000). Despite this standardization effort, the dual system persists across the industry.
Storage manufacturers advertise capacity using decimal units, while operating systems like Windows report sizes in binary, creating the well-known discrepancy where a 1 TB drive appears as roughly 931 GB.
You can learn more about this topic on the Wikipedia article on binary prefixes and the NIST reference on prefixes for binary multiples.
This converter supports both base-1024 (binary) and base-1000 (decimal) calculations, making it invaluable for developers, system administrators, network engineers, and anyone who needs to plan storage capacity, estimate bandwidth requirements, or understand file sizes across different contexts. All computations are performed entirely in your browser with zero data transmitted to external servers.
Select your base system: Binary (1024 - OS/RAM) or Decimal (1000 - storage/bandwidth).
Enter a value in any unit field. The converter will automatically calculate all other units.
Click the copy button next to any value to copy it to your clipboard.
The History of Digital Storage Units
The concept of digital storage measurement began with Claude Shannon's groundbreaking 1948 paper "A Mathematical Theory of Communication," which formally defined the bit as the fundamental unit of information. The term "byte" was coined by Werner Buchholz in 1956 during the design of the IBM Stretch computer, originally referring to a group of bits used to encode a single character. While early bytes varied in size (6, 7, or 9 bits), the 8-bit byte became standard with the IBM System/360 in 1964.
As computing evolved, engineers borrowed metric prefixes from the International System of Units. Kilobyte (KB) initially meant 1,024 bytes in computing contexts because 2^10 (1,024) was the closest power of two to 1,000. This dual meaning persisted for decades and led to widespread confusion, particularly in consumer storage marketing.
The first hard disk drive, the IBM 350 Disk Storage Unit introduced in 1956, held approximately 3.75 MB. By the 1980s, personal computer hard drives stored 10-20 MB. The 1990s saw drives reach gigabyte capacities, and by the 2000s, terabyte drives became consumer products. Today, hyperscale data centers operate at the exabyte and zettabyte scale, with global data creation estimated to reach 180 zettabytes annually by 2025.
In 1998, the IEC published standard IEC 80000-13, establishing binary prefixes (kibi, mebi, gibi, tebi, pebi) to distinguish powers of 1,024 from powers of 1,000. While adoption has been gradual, these prefixes are now used in Linux, GNU utilities, and technical documentation, helping to eliminate the ambiguity that has confused users and professionals for decades.
How to Use
Select your base system: Binary (1024 - OS/RAM) or Decimal (1000 - storage/bandwidth).
Enter a value in any unit field. The converter will automatically calculate all other units.
Click the copy button next to any value to copy it to your clipboard.
Methodology
The converter uses two distinct mathematical bases for all calculations. In the binary system (IEC standard), each unit is exactly 1,024 times the previous one: 1 KiB = 1,024 bytes, 1 MiB = 1,048,576 bytes, 1 GiB = 1,073,741,824 bytes, 1 TiB = 1,099,511,627,776 bytes, and 1 PiB = 1,125,899,906,842,624 bytes. This system reflects how computer memory is physically addressed using powers of two.
In the decimal system (SI standard), each unit is exactly 1,000 times the previous one: 1 KB = 1,000 bytes, 1 MB = 1,000,000 bytes, 1 GB = 1,000,000,000 bytes, 1 TB = 1,000,000,000,000 bytes, and 1 PB = 1,000,000,000,000,000 bytes. This system aligns with standard metric prefixes used throughout science and engineering.
The conversion process first normalizes any input value to bytes, then divides by the appropriate factor for each target unit. This ensures precision across all conversions. Operating systems typically report file sizes using binary calculations but label them with decimal prefixes, which is the primary source of confusion for most users.
A smartphone photo (12 MP JPEG) is typically 3-5 MB. A 4K video at 30 fps uses roughly 375 MB per minute. A typical music album in FLAC format is about 300-500 MB, while the same album in MP3 is around 80-120 MB.
A Windows 11 installation requires approximately 64 GB of disk space. A full Netflix movie download in HD consumes about 3 GB, while 4K UHD uses 7-10 GB. Enterprise databases can range from hundreds of gigabytes to multiple petabytes, with major cloud providers managing exabytes of total storage across their data centers.
Tips & Best Practices
Always confirm which base system (binary or decimal) your context requires before quoting storage figures. When purchasing storage, use decimal to match manufacturer labels. When checking available disk space in your OS, use binary for accurate readings.
For cloud storage planning, remember that providers typically advertise in decimal units but may report usage in binary, so always verify the billing documentation. When estimating backup storage needs, add at least 20% overhead for filesystem metadata, journaling, and growth.
When communicating file sizes in documentation or emails, specify the base explicitly (e.g., "500 MiB" or "500 MB decimal") to avoid misunderstandings. For networking calculations, always convert to bits first since bandwidth is measured in bits per second.
KB (kilobyte) in decimal equals 1,000 bytes, while KiB (kibibyte) in binary equals 1,024 bytes. Operating systems like Windows display file sizes using binary (1024) but label them KB, which causes confusion. The IEC standard introduced KiB, MiB, GiB to clarify binary units. Our converter supports both systems.
Why does my hard drive show less space than advertised?
Storage manufacturers use decimal (1000-based) measurements: 1 TB = 1,000,000,000,000 bytes. But operating systems use binary (1024-based): 1 TB = 1,099,511,627,776 bytes. So a 1 TB drive (decimal) shows as ~931 GB in your OS (binary). This is why a 500 GB drive shows about 465 GB.
How many MB in a GB?
In decimal (SI standard): 1 GB = 1,000 MB. In binary (IEC standard): 1 GiB = 1,024 MiB. Most storage devices and internet speeds use decimal, while operating systems and RAM typically use binary. Use our converter to switch between both systems instantly.
Which base should I use: binary or decimal?
Use binary (1024) when: checking file sizes in your OS, calculating RAM, working with disk partitions. Use decimal (1000) when: buying storage devices, calculating bandwidth/data transfer speeds, or working with storage manufacturer specifications. Internet speeds are typically in decimal megabits (Mbps), not megabytes.
What is the difference between megabits and megabytes?
A byte consists of 8 bits, so 1 megabyte (MB) equals 8 megabits (Mb). Internet speeds are typically advertised in megabits per second (Mbps), while file sizes are shown in megabytes (MB). This means a 100 Mbps connection can theoretically download about 12.5 MB per second. Watch for the capitalization: lowercase 'b' means bits, uppercase 'B' means bytes.
What does the IEC 80000-13 standard define?
IEC 80000-13 is the international standard that defines binary prefixes (kibi-, mebi-, gibi-, tebi-, pebi-) to eliminate ambiguity in data storage units. Before this standard, 'kilobyte' could mean either 1,000 or 1,024 bytes depending on context. The standard reserves SI prefixes (kilo, mega, giga) for powers of 1,000 and introduces binary prefixes (Ki, Mi, Gi) for powers of 1,024, providing clear and unambiguous terminology.
My Favorites
Drag to reorder
No favorites yet
Tap the ☆ on any tool page to bookmark it for quick access.