Data Size Converter
Convert MB to GB, TB, bytes, and binary units (MiB, GiB, TiB) instantly. Used by IT pros, cloud engineers & students. Free, no sign-up, displays up to 15 decimals.
See in all units
Sources & methodology
- Formula:
- Two-step conversion through a base unit
- Content last updated:
- Scheduled re-verification:
- September 2027
Calculation type: Exact calculation. Figures are taken from International Electrotechnical Commission (IEC) and National Institute of Standards and Technology (NIST) — see sources below.
How to Use This Calculator
- Enter Data Size
Type the numeric value you want to convert.
- Select Source Unit
Choose the unit of your input (e.g., GB, TB, MiB) and toggle Use Binary Units to switch between decimal (1000-based) and binary (1024-based) standards.
- Select Target Unit
Choose the unit you want to convert to.
- View Result
Instantly see the converted value and a real-world example.
Example: Convert 1 TB to GB
Convert 1 terabyte to gigabytes (decimal vs binary).
- Value
- 1
- From Unit
- TB
- To Unit
- GB
- Use Binary Units
- No
- Converted Value
- 1000.00 GB
- Real‑World Context
- ≈ 1000000.00 MB
Common Data Size Conversions
| From | To | Binary / Decimal |
|---|---|---|
| 1 byte | 8 bits | 8 |
| 1 KB (kilobyte) | 1,024 bytes | 1,024 |
| 1 MB (megabyte) | 1,024 KB | 1,048,576 |
| 1 GB (gigabyte) | 1,024 MB | 1,073,741,824 |
| 1 TB (terabyte) | 1,024 GB | 1,099,511,627,776 |
| 1 PB (petabyte) | 1,024 TB | 1,125,899,906,842,624 |
| 1 KiB (kibibyte) | 1,024 bytes | 1,024 |
| 1 MiB (mebibyte) | 1,024 KiB | 1,048,576 |
| 1 GiB (gibibyte) | 1,024 MiB | 1,073,741,824 |
| 1 TB ≈ | 931.3 GiB | 0.9313 |
| 1 GB in decimal | 1,000 MB | 1,000,000,000 |
Binary KB/MB/GB use powers of 2 (1,024). Decimal (SI) use powers of 10 (1,000). Storage manufacturers use decimal, OS uses binary — hence a '1 TB' drive shows as ~931 GiB.
Understanding Your Results
- Decimal Units (SI)Based on powers of 1000. 1 KB = 1000 B, 1 MB = 1000 KB, 1 GB = 1000 MB. Used by hard drive manufacturers and network speeds.
- Binary Units (IEC)Based on powers of 1024. 1 KiB = 1024 B, 1 MiB = 1024 KiB, 1 GiB = 1024 MiB. Used by operating systems and RAM manufacturers.
- Why the Difference?The difference between decimal and binary units causes confusion. A 1 TB hard drive shows as 931 GiB in Windows due to binary measurement.
- Common UsageStorage devices (HDDs, SSDs) use decimal units. Operating systems (Windows, macOS, Linux) use binary units for file sizes.
Key Tips
- 1 KB = 1000 bytes (decimal) vs 1 KiB = 1024 bytes (binary).
- A 1 TB hard drive shows as ~931 GiB in Windows.
- Use decimal units for network speeds and storage marketing.
- Use binary units for RAM, file systems, and operating system reporting.
- Cloud providers often bill in decimal GB (1000 bytes) not binary.
- 4K video can be 50-100 GB per hour of footage.
Understanding Data Size Units
What Are Data Size Units?
Data size units measure digital information. Common units include bytes (B), kilobytes (KB), megabytes (MB), gigabytes (GB), and terabytes (TB).
Decimal vs Binary
Decimal (SI) units use powers of 1000: KB = 1000 B. Binary (IEC) units use powers of 1024: KiB = 1024 B. The difference grows with larger sizes.
Why the Confusion?
Hard drive manufacturers use decimal units to market larger capacities. Operating systems use binary units when reporting file sizes, causing perceived differences.
Real-World Examples
A 4K movie: 50-100 GB. A high-quality photo: 5-10 MB. A text document: 10-100 KB. A CD: 700 MB. A DVD: 4.7 GB. A Blu-ray: 25-50 GB.
Formula & methodology
Formula used
Two-step conversion through a base unit
value_out = (value_in × factor_in→the byte) ÷ factor_out→the byteEvery data unit is defined as a multiple of the byte. A conversion goes in to the byte and back out again, so one factor per unit covers every possible pair rather than needing a factor for each combination.
Decimal and binary prefixes differ
1 kB = 1000 bytes; 1 KiB = 1024 bytesSI prefixes (kB, MB, GB) are powers of 1000; IEC binary prefixes (KiB, MiB, GiB) are powers of 1024. The gap widens with scale — a "1 TB" drive holds about 0.909 TiB, which is why a new drive appears smaller than advertised.
Variable definitions
| Symbol | Meaning | Unit |
|---|---|---|
| factor | Conversion factor. how many bytes one unit represents | B |
Step-by-step calculation
- 1. Choose the unit you haveNote whether it is decimal (kB) or binary (KiB).
- 2. Choose the unit you wantThe value is converted through bytes.
Limitations
- Storage manufacturers use decimal units while many operating systems report binary units. Neither is wrong — they are different prefixes, and this converter distinguishes them.
- Bits and bytes differ by a factor of 8. Network speeds are usually quoted in bits per second, file sizes in bytes.
- The conversion factors are exact by definition, not measured, so the only error in a result is the rounding you choose for display.
This page is educational. It converts between units using the defined or standard factors shown above, so the arithmetic is exact to the precision displayed — but a converted value is only as good as the measurement behind it, and some units are defined only under stated conditions. Where a conversion is safety-critical or contractual, check it against the governing standard rather than relying on this page.
Sources & references
- IEC 80000-13: Quantities and units — Information science and technology (binary prefixes: kibi, mebi, gibi, etc.) — International Electrotechnical Commission (IEC)
- NIST Guide to SI Units — decimal metric prefixes (kilo, mega, giga) as applied to bytes and bits — National Institute of Standards and Technology (NIST)
Decimal prefixes (KB, MB, GB) follow the standard SI/metric definitions (powers of 1000); binary prefixes (KiB, MiB, GiB) follow the IEC 80000-13 standard (powers of 1024); see the sources above. Both conversions are exact by definition, so results are limited only by the display rounding you choose. Standards review: August 2026.
Frequently Asked Questions
How many MB in a GB?
Decimal: 1 GB = 1,000 MB. Binary: 1 GiB = 1,024 MiB. Storage manufacturers use decimal (SI); operating systems typically display binary (IEC). Check which standard applies before comparing two numbers.
Why does my 1 TB hard drive show only about 931 GB?
Storage manufacturers advertise capacity in decimal units (1 TB = 1,000,000,000,000 bytes), but operating systems display it in binary units (1 TiB = 1,099,511,627,776 bytes). Converting: 1 TB ≈ 0.91 TiB (≈931 GiB) — the drive isn't defective, it's just a unit mismatch.
What is the difference between KB/MB/GB and KiB/MiB/GiB?
KB/MB/GB are decimal units (base-10, per SI): 1 KB = 1,000 bytes. KiB/MiB/GiB are binary units (base-2, per IEC 80000-13): 1 KiB = 1,024 bytes. The gap compounds at larger sizes — about 2.4% at KB/KiB, over 10% at TB/TiB.
How many bytes are in a megabyte?
Decimal: 1 MB = 1,000,000 bytes. Binary: 1 MiB = 1,048,576 bytes. Use decimal for cloud storage billing and network specs; use binary for RAM, file systems, and OS-reported sizes.
How accurate is this data size converter?
It uses the standardized decimal (SI, base-1000) and binary (IEC 80000-13, base-1024) ratios exactly, so results are precise to the decimal places you choose. The only real source of error is picking the wrong standard for your comparison — toggle 'Use Binary Units' to match what you're converting against.
Need more help? Contact support or email globalcalqulate@gmail.com. We typically reply within 24–48 hours.