Data Storage Converter

Type in any unit — all others update instantly. Covers decimal (KB, MB, GB) and binary (KiB, MiB, GiB) with full conversion steps.

Type any value to convert
Bit b
Byte B
Kilobyte KB
Megabyte MB
Gigabyte GB
Terabyte TB
Petabyte PB
Kibibyte KiB
Mebibyte MiB
Gibibyte GiB
Tebibyte TiB

⚠ Why your hard drive seems smaller than advertised

Manufacturers use decimal gigabytes (1 GB = 10⁹ bytes). Operating systems report in binary gibibytes (1 GiB = 2³⁰ bytes = 1,073,741,824 bytes). A "1 TB" drive contains 10¹² bytes — which your OS displays as ≈ 0.909 TiB.

Step-by-step solution

Type a value in any field to see the conversion steps

Decimal vs Binary comparison

Decimal = bytes Binary = bytes Diff
1 KB1,0001 KiB1,024+2.4%
1 MB1,000,0001 MiB1,048,576+4.9%
1 GB1,000,000,0001 GiB1,073,741,824+7.4%
1 TB10¹²1 TiB2⁴⁰+9.9%

Real-world file sizes — click to convert

Data Storage Converter Explained

Core concepts, classroom applications, and plain-English explanations for all audiences.

When would you actually use this?

Every time you buy a phone, USB drive or cloud plan. A 64 GB phone sounds huge — but a 4K video is around 400 MB per minute, a RAW photo around 25 MB, and apps quickly add up. Knowing the units helps you buy what you actually need.

Worked example

"How many JPEG photos (4 MB each) fit on a 64 GB phone?"

Step 1: 64 GB = 64,000 MB (decimal)

Step 2: 64,000 ÷ 4 = 16,000 photos

Result: ~16,000 photos

In practice, the OS itself takes 10–15 GB, so expect closer to 12,000.

The decimal vs binary catch

  • → Manufacturers use decimal GB: 1 GB = 1,000,000,000 bytes
  • → Your OS uses binary GiB: 1 GiB = 1,073,741,824 bytes
  • → Result: A "1 TB" drive shows as ~0.91 TiB in Windows — it hasn't lost storage, just different units

Common mistake to avoid

Confusing MB and Mb. A megabyte (MB) is 8 megabits (Mb). Your internet speed is quoted in Mb/s — divide by 8 to get the download speed in MB/s that matches your file sizes.

Understanding Data Storage Units: Bits, Bytes, KB, MB, GB, TB, PB, KiB, MiB, GiB, TiB

Welcome to the mathsolvers.io Data Storage Converter! This tool helps you quickly convert between various units of digital information, from tiny bits to massive petabytes. Whether you're a GCSE Computer Science student or just curious about file sizes, this converter makes understanding storage simple.

Digital data is measured in bits and bytes, but as files and storage devices grew, we needed larger units. This led to prefixes like Kilo, Mega, Giga, and Tera. However, there are two main ways these prefixes are applied: the decimal (base 10) system and the binary (base 2) system.

**Decimal (SI) units** use powers of 1000 (e.g., 1 Kilobyte = 1000 Bytes). These are commonly used by hard drive manufacturers to advertise storage capacity. Units include KB, MB, GB, TB, PB.

**Binary (IEC) units** use powers of 1024 (e.g., 1 Kibibyte = 1024 Bytes). These are often used by operating systems (like Windows or macOS) to report storage capacity. Units include KiB, MiB, GiB, TiB.

This difference is why a '1TB hard drive' often shows up as around 931 GB in your computer's operating system – manufacturers use 1 TB = 1,000,000,000,000 bytes, while your computer calculates 1 TiB = 1,099,511,627,776 bytes. Our converter helps you see these differences instantly and understand the maths behind them.

Simply type a value into any unit field, and all other units will update automatically. You'll also see the step-by-step calculations for how each conversion is made.

Common mistakes to avoid

  • Thinking 1 Kilobyte (KB) is always 1024 Bytes:While computers often use 1024, the SI (decimal) definition of Kilo is 1000. This confusion is at the heart of many storage discrepancies. 1 Kilobyte (KB) = 1000 Bytes (decimal/SI). 1 Kibibyte (KiB) = 1024 Bytes (binary/IEC).
  • Assuming 1 Terabyte (TB) is exactly 1000 Gigabytes (GB) in all contexts:Hard drive manufacturers use 1 TB = 1000 GB. However, operating systems typically use 1 TiB = 1024 GiB, which means 1 TB (decimal) is approximately 0.909 TiB (binary), or about 931 GiB. 1 Terabyte (TB) = 1000 Gigabytes (GB) by manufacturer definition. 1 Tebibyte (TiB) = 1024 Gibibytes (GiB) by computer system definition.
  • Confusing a 'bit' with a 'byte':These terms sound similar but represent very different amounts of data. A bit is the smallest unit, while a byte is a common grouping of bits. 1 Byte is equal to 8 bits. Bits are often used for data transfer speeds (e.g., Mbps), while bytes are used for storage capacity (e.g., MB).
  • Not paying attention to the case of 'b' in units (e.g., kb vs KB):In computing, case matters! A lowercase 'b' usually denotes 'bit', while an uppercase 'B' denotes 'Byte'. kb means kilobit (1000 bits), while KB means Kilobyte (1000 Bytes). This is crucial for understanding network speeds (Mbps = Megabits per second) versus file sizes (MB = Megabytes).

Questions students ask

What is the difference between a bit and a byte?
A bit (binary digit) is the smallest unit of digital information, representing either a 0 or a 1. A byte is a group of 8 bits. Bytes are the fundamental unit for measuring computer memory and storage, while bits are often used for data transfer rates (e.g., internet speed in megabits per second).
Why does my 1TB hard drive show less space than expected?
This is due to the difference between how hard drive manufacturers and computer operating systems calculate storage. Manufacturers use the decimal (SI) system, where 1 TB = 1,000,000,000,000 bytes. Operating systems, however, typically use the binary (IEC) system, where 1 TiB (Tebibyte) = 1,024 GiB (Gibibytes), which equals 1,099,511,627,776 bytes. So, a '1TB' drive (decimal) appears as approximately 0.909 TiB or 931 GiB (binary) to your computer.
What is the difference between KB and KiB?
KB stands for Kilobyte and uses the decimal (SI) prefix, meaning 1 KB = 1000 Bytes. KiB stands for Kibibyte and uses the binary (IEC) prefix, meaning 1 KiB = 1024 Bytes. The 'i' in KiB indicates it's an IEC binary prefix. This distinction helps avoid confusion when discussing storage capacities.
How many bytes in a gigabyte?
It depends on whether you're using the decimal (SI) or binary (IEC) definition: If referring to a Gigabyte (GB) in the decimal sense (used by manufacturers), there are 1,000,000,000 (10^9) bytes. If referring to a Gibibyte (GiB) in the binary sense (used by operating systems), there are 1,073,741,824 (2^30) bytes.
What is a petabyte and what uses that much storage?
A petabyte (PB) is a massive unit of digital storage. In the decimal (SI) system, 1 PB = 1,000 Terabytes (TB) or 1,000,000,000,000,000 bytes. In the binary (IEC) system, 1 PiB (Pebibyte) = 1024 TiB. This amount of storage is typically used by very large organisations, such as major cloud storage providers, large scientific research institutions (e.g., for genomics or astronomy data), social media platforms, and data centres that store vast amounts of user data and media.