Data Storage converter
Digital information is measured in bits, the smallest unit, representing a single binary value of 0 or 1. Eight bits make one byte, the basic unit for file sizes and memory. Network speeds are usually stated in bits per second, while storage and file sizes are stated in bytes.
Convert between 8 data storage units. Pick any two units below; results update as you type.
Most used data storage conversions
- Bits to Bytes
- Needed for estimating file sizes from a bit count, such as a sensor or video bitrate stated in bits, where storage in bytes is what a disk or cloud plan charges for.
- Bytes to Bits
- Used when a file size in bytes must be compared with a line speed in bits per second, so that a download time can be estimated before starting a large transfer.
- Kilobytes to Kibibytes
- Helpful when a file or memory size shown in decimal kilobytes by one program appears in binary kibibytes in an operating system or programming environment.
- Kibibytes to Kilobytes
- Needed for a programmer or system administrator who reads a buffer or page size in kibibytes and must write the figure in kilobytes for a specification.
- Mebibytes to Gibibytes
- Useful for RAM and memory capacity in older computing docs, where a 1,024 MiB module is shown as 1 GiB, while a drive label keeps decimal units.
Popular data storage conversions
About data storage units
Two prefix systems are in use. Decimal (SI) prefixes count in powers of 1,000, so 1 kB is 1,000 bytes. Binary (IEC) prefixes count in powers of 1,024, so 1 KiB is 1,024 bytes, 1 MiB is 1,048,576 bytes, and so on through GiB, TiB, and PiB. Storage makers label drives with decimal units, while some operating systems report binary values using decimal-looking labels.
The International Electrotechnical Commission introduced the kibi, mebi, and gibi prefixes in 1998 to end this ambiguity, but labels such as "KB" and "GB" are still often used loosely for binary quantities.
Unit systems compared
Computing uses binary counting internally, so memory modules and cache sizes come in powers of two, while storage and network capacities usually follow decimal SI prefixes. A 16 GB memory module is 16 GiB, which is about 17.2 billion bytes, while a 16 GB drive holds 16 billion bytes. The gap grows with size: a 1 TB drive shows about 9% less capacity than 1 TiB when an operating system reports it in binary units.
Data rates use a different convention again. Network speeds are quoted in bits per second with decimal prefixes, so a 100 Mbps link carries 100,000,000 bits each second, or about 12.5 MB per second of payload before overhead. Video bitrates and internet plans follow the same rule, which is why a download can seem slower than the advertised number when the operating system reports its progress in bytes. Storage vendors and network providers follow the decimal rule, so the same label means the same count of bytes on every operating system.
Where data storage units matter
- Choosing a phone plan for streaming video, where data allowances are in gigabytes and the video bitrate is listed in megabits per second.
- Estimating how many photos fit on a 64 GB memory card, using the average file size in megabytes from the camera.
- Planning a backup of a 2 TB external drive that the operating system reports as smaller than the box label.
- Sizing a cloud server disk image in gibibytes while the provider bills in decimal gigabytes.
- Checking the transfer time of a 4 GB software update on a 25 Mbps home connection, which takes about 21 minutes.
Tips
- A drive sold as 1 TB holds 10¹² bytes, which an operating system using binary units may show as roughly 931 GB.
- Divide a speed in megabits per second by 8 to estimate megabytes per second.
- Lowercase b usually means bits and uppercase B means bytes; Mbps and MB/s differ by a factor of 8.
All data storage units
| Unit | Symbol | Value in bits |
|---|---|---|
| Bits | bit | 1 bit = 1 bit |
| Bytes | B | 1 B = 8 bit |
| Kilobytes | kB | 1 kB = 8,000 bit |
| Kibibytes | KiB | 1 KiB = 8,192 bit |
| Mebibytes | MiB | 1 MiB = 8,388,608 bit |
| Gibibytes | GiB | 1 GiB = 8,589,935,000 bit |
| Tebibytes | TiB | 1 TiB = 8,796,093,000,000 bit |
| Pebibytes | PiB | 1 PiB = 9.0072E15 bit |
Convert offline on your phone. 36 categories, live currency rates, calculators and history in our free Unit Converter app.
Factors: NIST SP 811 · SI Brochure · NIST Handbook 44 — Updated