KB, MB and GB Converter – File Size Calculator
Convert any amount between MB and GB, MB and KB, or KB and MB. Check file sizes, storage capacity, and data plans with decimal and binary units.
Common conversions
Decimal vs Binary Units
Decimal (SI Units)
Used by storage manufacturers. Based on powers of 1000.
- 1 KB = 1,000 bytes
- 1 MB = 1,000 KB = 1,000,000 bytes
- 1 GB = 1,000 MB = 1,000,000,000 bytes
- 1 TB = 1,000 GB
Binary (IEC Units)
Used by operating systems. Based on powers of 1024.
- 1 KiB = 1,024 bytes
- 1 MiB = 1,024 KiB = 1,048,576 bytes
- 1 GiB = 1,024 MiB = 1,073,741,824 bytes
- 1 TiB = 1,024 GiB
Why does my drive show less space? A "1 TB" drive (1,000,000,000,000 bytes) shows as ~931 GiB in your OS because it uses binary calculation.
Common File Sizes
Convert any numeric amount between MB, GB, KB, bytes, and their IEC binary counterparts. Get answers for questions such as 1000 MB to GB, 1 MB to KB, or 20 MB to KB.
What is an MB, GB and KB converter?
What is an MB, GB and KB converter?
This calculator converts any entered number between bit, byte, KB, MB, GB, TB, PB and the IEC units KiB, MiB, GiB, TiB and PiB. It is useful when checking a file size, storage capacity, or a data allowance.
When to use it
When to use it
MB to KB or GB
Convert an entered amount such as 20 MB to KB or 21854 MB to GB.
KB to MB calculations
Check questions such as how many MB are in 1000 KB using the selected unit convention.
Decimal and binary sizes
Compare storage and operating-system units, including MB versus MiB and GB versus GiB.
How conversion works
How conversion works
Decimal units use powers of 1000: 1 MB = 1,000 KB and 1 GB = 1,000 MB. IEC binary units use powers of 1024: 1 MiB = 1,024 KiB and 1 GiB = 1,024 MiB. The result is calculated from the entered number and selected units.
Data Comparison Table
Data Comparison Table
| Unit | Decimal (Base 10) | Binary (Base 2) |
| Kilobyte | 1,000 Bytes | 1,024 Bytes (KiB) |
| Megabyte | 1,000,000 Bytes | 1,048,576 Bytes (MiB) |
| Gigabyte | 10^9 Bytes | 2^30 Bytes (GiB) |
Developer Friendly
Developer Friendly
Choose from seven decimal units (bit, byte, KB, MB, GB, TB, PB) or five IEC binary units (KiB, MiB, GiB, TiB, PiB). Enter any numeric value; the result is formatted for your locale with up to six fractional digits.