Instantly convert between bits, bytes, KB, MB, GB, TB, and PB
Input
Converted Values
Binary Reference (1024-based)
| Unit | Abbreviation | Equal to |
|---|---|---|
| Bit | bit | 1 bit |
| Byte | B | 8 bits |
| Kilobyte | KB | 1,024 bytes (2¹⁰) |
| Megabyte | MB | 1,024 KB (2²⁰) |
| Gigabyte | GB | 1,024 MB (2³⁰) |
| Terabyte | TB | 1,024 GB (2⁴⁰) |
| Petabyte | PB | 1,024 TB (2⁵⁰) |
Convert data storage units instantly with our free online converter. Whether you need to convert gigabytes to megabytes, kilobytes to bytes, or terabytes to gigabytes, this tool handles it all using accurate binary (base-1024) math. Supports bits, bytes, KB, MB, GB, TB, and PB — perfect for developers, system admins, and anyone comparing file sizes or storage specs.
This converter uses binary (base-1024) units, which is the standard used by operating systems. So 1 KB = 1,024 bytes, 1 MB = 1,024 KB, and so on. These are sometimes called kibibytes (KiB), mebibytes (MiB), etc. in strict SI terminology.
Yes. The converter accepts decimal inputs such as 1.5, 0.25, or 512.75. It uses exact rational arithmetic internally so results are precise with no floating-point rounding errors.
1 gigabyte equals 8,589,934,592 bits (1 GB = 1,024 MB = 1,048,576 KB = 1,073,741,824 bytes = 8,589,934,592 bits).
A megabyte (MB) contains 8 megabits (Mb). Internet speeds are typically advertised in megabits per second (Mbps), while file sizes are measured in megabytes (MB). To convert Mbps to MB/s, divide by 8.