Unit converter · Free · No sign-up
Data Storage Converter
A 1 TB drive holds 1,000,000,000,000 bytes, which is 931.32 GiB, the figure Windows labels 931 GB: the box counts in thousands, Windows in 1,024s. Network speeds are in bits, so 100 Mbps is 12.5 MB/s and a 1 TB download takes at least 22 hours 13 minutes.
Decimal and binary apart.
| Unit | Value |
|---|---|
| Bytes | 1,000,000,000,000 bytes |
| Bits | 8,000,000,000,000 bits |
| Kilobytes (1,000 B) | 1,000,000,000 kB |
| Megabytes (1,000,000 B) | 1,000,000 MB |
| Gigabytes (10^9 B) | 1,000 GB |
| Terabytes (10^12 B) | 1 TB |
| Petabytes (10^15 B) | 0.001 PB |
| Kibibytes (1,024 B) | 976,562,500 KiB |
| Mebibytes (1,048,576 B) | 953,674.32 MiB |
| Gibibytes (2^30 B) | 931.32 GiB |
| Tebibytes (2^40 B) | 0.91 TiB |
| Pebibytes (2^50 B) | 0.00089 PiB |
| Kilobits | 8,000,000,000 kbit |
| Megabits | 8,000,000 Mbit |
| Gigabits | 8,000 Gbit |
| Item | Value |
|---|---|
| Connection speed | 100 Mbps = 12.5 MB/s |
| Best-case download time | 22 h 13 min 20 s |
| If you get 80% of that speed | 1 day 3 h 46 min 40 s |
| Size in megabits | 8,000,000 Mbit |
The figures above are an example: put in your own. kB, MB, GB and TB are decimal (1,000), as on drive labels; KiB, MiB, GiB and TiB are binary (1,024), which Windows shows as KB, MB, GB and TB. Worked out in this browser and kept there; nothing is sent anywhere.
Type a size, choose its unit and the one you want. The board shows the answer with its exact factor; the table shows the same size in 15 units, decimal and binary apart, and the panel below works the download time at your connection speed.
A data storage converter changes a quantity of digital information between bits, bytes and their multiples. Decimal prefixes (kB, MB, GB) step by 1,000 and binary ones (KiB, MiB, GiB) by 1,024.
- No sign-up
- Nothing uploaded
- Exact factors
- Works offline
- Says when it rounds
Key facts
| Detail | Answer |
|---|---|
| Units | bits, bytes, kB to PB, KiB to PiB, kbit to Gbit |
| Example | 1 TB = 931.32 GiB; at 100 Mbps, 22 h 13 min 20 s |
| Prefixes | kB = 1,000 B (SI); KiB = 1,024 B (IEC 80000-13) |
| Speeds | Mbps, Gbps, MB/s, kbps; 1 byte = 8 bits |
| Refuses | Negative sizes, a speed of 0 |
| Where your numbers are kept | This browser only |
How to convert data sizes
The converter does these steps; the prefix table shows them by hand.
Type the size
A number, a decimal such as 4.7, or 1e9.
Choose its unit
kB, MB, GB, TB for a label; KiB, MiB, GiB for Windows or RAM.
Choose the unit you want
The board shows the result with the exact factor.
Read the other units
The table gives the size in all 15 units.
Set a connection speed
The panel works the download time, best case and at 80%.
Swap or copy
Swap reverses the direction; Copy puts the result on the clipboard.
Who uses a data storage converter
Anyone whose drive, file or connection is measured in a unit they did not choose.
People buying a drive
What a 2 TB label means in Windows before the box is opened.
Gamers
How long a 50 GB download takes on a home line.
Photographers and video makers
Card and drive sizes against file sizes.
IT support
Decimal and binary sizes explained to users who see a shortfall.
Developers
KiB and MiB limits against byte counts.
Students
Bits, bytes and prefixes, exactly.
Why a 1 TB drive shows 931 GB in Windows
A drive sold as 1 TB holds 1,000,000,000,000 bytes, and Windows says it has 931 GB. Nothing is missing. The label uses decimal prefixes, where a gigabyte is 1,000,000,000 bytes, as the SI defines them. Windows divides by 1,073,741,824 (230) instead and still writes “GB”. Under IEC 80000-13 and the binary prefixes NIST describes, that binary unit is properly a gibibyte, GiB. 1 TB is 931.32 GiB.
| Label | Windows shows | Apparent shortfall |
|---|---|---|
| 128 GB | 119.21 "GB" | 6.9% |
| 256 GB | 238.42 "GB" | 6.9% |
| 500 GB | 465.66 "GB" | 6.9% |
| 1 TB | 931.32 "GB" | 9.1% |
| 2 TB | 1,862.65 "GB" | 9.1% |
| 4 TB | 3,725.29 "GB" | 9.1% |
The gap grows with each prefix: 2.3% at kilo, 4.6% at mega, 6.9% at giga, 9.1% at tera. Seagate’s support note explains the same thing from the maker’s side. Apple’s note on storage capacity says its devices count in decimal, like the box; it adds that OS X Leopard and iOS 10 and earlier used binary, which is why an older Mac or iPhone shows the smaller figure too. On top of the units, formatting, a recovery partition and the system itself take some space, so the free space you see is smaller again.
Decimal and binary prefixes
Two families of prefixes share almost the same names. The SI prefixes kilo, mega, giga and tera mean powers of 1,000 everywhere, including for bytes. In 1998 the International Electrotechnical Commission added kibi, mebi, gibi and tebi for powers of 1,024, now in IEC 80000-13, so the two need never be confused. The converter keeps them apart.
| Prefix pair | Decimal (SI) | Binary (IEC) | Binary is larger by |
|---|---|---|---|
| kB / KiB | 103 = 1,000 | 210 = 1,024 | 2.4% |
| MB / MiB | 106 = 1,000,000 | 220 = 1,048,576 | 4.9% |
| GB / GiB | 109 = 1,000,000,000 | 230 = 1,073,741,824 | 7.4% |
| TB / TiB | 1012 = 1,000,000,000,000 | 240 = 1,099,511,627,776 | 10.0% |
| PB / PiB | 1015 = 1,000,000,000,000,000 | 250 = 1,125,899,906,842,624 | 12.6% |
Who uses which: drive and memory-card makers, network speeds and macOS use decimal. Windows file sizes use binary with decimal names. RAM is built in powers of two, so “16 GB” of memory is in fact 16 GiB. A kilobyte written “KB” with a capital K usually means 1,024 bytes; the SI symbol is a small k. When a figure matters, convert it in the converter with the unit named.
Mbps against MB/s, and download time
Connection speeds are sold in bits a second and files are measured in bytes, and a byte is 8 bits. So a 100 Mbps line moves at most 12.5 megabytes a second, and a 1 GB file takes at least 80 seconds, not 10. The converter’s download panel works the time for the size you type at the speed you set.
| Size | 25 Mbps | 100 Mbps | 1 Gbps |
|---|---|---|---|
| 1 GB file | 5 min 20 s | 1 min 20 s | 8 s |
| 5 GB film | 26 min 40 s | 6 min 40 s | 40 s |
| 50 GB game | 4 h 26 min 40 s | 1 h 6 min 40 s | 6 min 40 s |
| 1 TB backup | 3 days 16 h 53 min 20 s | 22 h 13 min 20 s | 2 h 13 min 20 s |
These are best cases: the line running flat out, nothing else on it. Real downloads are slower because protocols add overhead, Wi-Fi and the far server can be slower than your line, and other devices share it. The panel shows the time at 80% of the speed as a rough everyday figure; that 80% is an assumption for illustration, not a measurement. Upload speeds on home lines are often much lower than download speeds.
Bits, nibbles and bytes
A bit is a single binary digit, 0 or 1. A byte is 8 bits, enough for one of 256 values; standards call an 8-bit byte an octet to be unambiguous. Half a byte, 4 bits, is a nibble, which is one hexadecimal digit. The symbols matter: b is a bit and B a byte, so Mb and MB differ by a factor of 8.
| Unit | Bits | What fits |
|---|---|---|
| 1 bit (b) | 1 | Yes or no; on or off |
| 1 nibble | 4 | One hexadecimal digit, 0 to F |
| 1 byte (B) | 8 | One letter of plain English text |
| 1 kB | 8,000 | About a paragraph of plain text |
| 1 MB | 8,000,000 | A minute of compressed music, roughly |
To see a number as the bits a byte holds, the binary converter writes it in base 2. A counter on a web page saves its value as a few bytes of text in your browser; the guide to making a counter shows how.
What this converter does not do
This converter changes units of digital storage and transfer. It cannot tell you how much free space a particular drive will show, because formatting, partitions and the system take a share that varies.
| It does | It does not |
|---|---|
| Bits, bytes, decimal and binary prefixes up to peta | Measure a real drive or connection |
| Download time at a speed you set | Predict real speeds with overhead and Wi-Fi |
| Exact integer arithmetic, rounding only for display | Handle exabytes or larger |
| Keep your entries in this browser | Send anything anywhere |
Negative sizes are refused. The download time is rounded to the whole second; a size under half a second shows as 0 s.
This converter or a one-formula one
What this page adds to a typical one-figure converter.
| This converter | A typical converter | |
|---|---|---|
| Decimal and binary | Both named apart: GB and GiB | One “GB”, meaning unstated |
| Units at once | All 15 from one entry | The pair you picked |
| Download time | At your speed, best case and at 80% | A separate tool |
| Bits and bytes | Mbit and MB side by side | Often mixed up |
| Exact or rounded | Says which, with the exact digits | A rounded figure, unlabelled |
| Your entries leave the browser | Never | Varies |
More converters
Every converter on the site runs in your browser, needs no sign-up, and sends nothing anywhere.
Numbers & code7
Binary, hex, octal and any base, number systems, and codes generated in the browser.
Binary converter
Binary, octal, decimal, hex or any base 2 to 36, exact at any size, fractions and two's complement, with steps.
Open binary converter →Binary to decimal
Each bit times its power of 2, binary fractions after the point, and signed patterns read at 8 to 64 bits.
Open binary to decimal →Decimal to binary
Repeated division by 2 shown step by step, 0.1 as the repeating 0.0(0011), negatives in two's complement.
Open decimal to binary →Decimal to hex
Division by 16 with A to F named, RGB channels to a #RRGGBB code, and negatives as hex patterns.
Open decimal to hex →Hex to decimal
Powers of 16 shown, #RGB to #RRGGBBAA colour codes read as channels, signed bytes and 0x addresses.
Open hex to decimal →Password generator
Random characters or EFF-word passphrases from the browser's crypto, no modulo bias, exact entropy, nothing sent.
Open password generator →ASCII, hex, binary, decimal converter
Text and byte codes both ways in one box, UTF-8 beyond 127 shown byte by byte, control characters named, Base64.
Open ascii, hex, binary, decimal converter →
All 35 converters, by category: Length (10) · Weight & mass (5) · Temperature (3) · Cooking (1) · Currency (1) · Numbers & code (8) · Text (2) · Images (3) · Dates & time (2)
Frequently asked questions
Why does my 1 TB drive show 931 GB?
Because the label and Windows use different units with the same name. The label counts 1 TB as 1,000,000,000,000 bytes; Windows divides by 1,073,741,824 for each “GB”, which is really a gibibyte. 1012 ÷ 230 = 931.32. Formatting and system files then take a little more.
Is a gigabyte 1,000 or 1,024 megabytes?
By the SI, a gigabyte is 1,000 megabytes, 1,000,000,000 bytes, and that is what drive makers and network speeds use. A gibibyte, GiB, is 1,024 mebibytes, 1,073,741,824 bytes. Windows and RAM sizes use the binary amount but call it GB, which is the source of the confusion.
What is the difference between Mbps and MB/s?
Mbps is megabits a second; MB/s is megabytes a second. A byte is 8 bits, so divide Mbps by 8 for MB/s: a 100 Mbps connection moves at most 12.5 MB/s. Internet plans are sold in Mbps; download windows usually show MB/s.
How long does it take to download 1 GB?
At least 80 seconds on a 100 Mbps line, 5 minutes 20 seconds on 25 Mbps, and 8 seconds on 1 Gbps: 1 GB is 8,000 megabits. Real downloads are slower because of protocol overhead, Wi-Fi and the server’s own speed, so treat these as best cases.
What is a kibibyte?
A kibibyte, KiB, is 1,024 bytes, 210. The binary prefixes kibi, mebi, gibi and tebi were approved by the IEC in 1998 and are now in IEC 80000-13, so that kilo can keep its SI meaning of 1,000. 1 MiB is 1,048,576 bytes and 1 GiB is 1,073,741,824 bytes.
How many bytes are in a megabyte?
1,000,000 in the SI sense, the one on drive labels and in network speeds. In the binary sense used by Windows, “1 MB” is 1,048,576 bytes, which is properly 1 MiB. The converter lists both, so type the size and read the one you need.
How many bits are in a byte?
Eight. A byte holds one of 256 values, 28, enough for a letter of plain text. Standards that need to be unambiguous call an 8-bit byte an octet. Lower-case b is the symbol for a bit and capital B for a byte, so Mb and MB differ by a factor of 8.
Does macOS show the same size as Windows?
No. Current macOS counts storage in decimal, like the drive label, so a 1 TB drive shows about 1 TB before formatting. Windows shows the binary figure, 931 GB. Apple notes that OS X Leopard and earlier, and iOS 10 and earlier, used binary units too.
Related guides
Where the bytes come from.