Byte Converter Calculator
Converts between bits and bytes and every decimal and binary multiple of them: kilobytes, megabytes, gigabytes and terabytes in powers of 1000, and kibibytes, mebibytes, gibibytes and tebibytes in powers of 1024, up to yottabytes and yobibytes. It explains why a 1 TB drive shows up as about 931 GB in some operating systems, and turns network speeds in megabits into file sizes in megabytes. Each result is also given in bytes, bits and the best-fitting decimal and binary unit.
- A byte is an octet of 8 bits.
- kB, MB, GB and so on are the 1000-based SI units; KiB, MiB, GiB and so on are the 1024-based IEC units. Pick the binary units if your software shows 1024-based sizes.
Formula
result = value × (bytes per From unit) ÷ (bytes per To unit); 1 byte = 8 bits; k, M, G, T… = 1000¹, 1000², 1000³, 1000⁴…; Ki, Mi, Gi, Ti… = 1024¹, 1024², 1024³, 1024⁴…
- Decimal (SI) prefixes step by 1000: 1 kB = 1,000 B, 1 MB = 1,000,000 B, 1 GB = 10⁹ B, up to 1 YB = 10²⁴ B.
- Binary (IEC) prefixes step by 1024: 1 KiB = 1,024 B, 1 MiB = 1,048,576 B, 1 GiB = 1,073,741,824 B, up to 1 YiB = 2⁸⁰ B.
- Bit units are 1/8 of the matching byte unit: 1 kbit = 125 B, 1 Mbit = 125,000 B, 1 Kibit = 128 B, 1 Mibit = 131,072 B. This converter offers bit units up to terabit and tebibit.
- The 'Decimal (SI) units' and 'Binary (IEC) units' rows pick the largest unit the amount fills at least once.
- Display precision: results of 1 or more are rounded to 6 decimal places with trailing zeros dropped; values within floating-point noise of a 15-significant-digit number are snapped to it first, so exact answers are not shown with a stray last digit; results below 1 keep 6 significant figures; results of 10¹⁵ or more, or below 10⁻⁶, use scientific notation with 6 significant figures. The conversion factor row shows up to 10 significant figures.
- A negative amount is rejected with a message instead of being converted.
A 1 TB drive in gibibytes
Inputs
- Amount of data: 1
- From: TB
- To: GiB
1 TB = 10¹² B. Dividing by 1 GiB = 2³⁰ = 1,073,741,824 B gives 931.322575 GiB, which is the '931 GB' some operating systems report for a 1 TB drive.
Sources & references
Frequently asked questions
Is a kilobyte 1000 or 1024 bytes?
Under the SI and IEC standards a kilobyte (kB) is 1000 bytes and a kibibyte (KiB) is 1024 bytes. Older software, and Windows today, still label 1024-based sizes as KB, MB and GB, which causes the confusion.
Why does my new hard drive show less space than advertised?
Drive makers count in powers of 1000, while some operating systems count in powers of 1024 but show the result as GB. A 1 TB drive holds 10¹² bytes, which is about 931 GiB. No space is missing.
How long will a 1 GB download take at 100 Mbit/s?
1 GB is 8,000 Mbit, so at 100 Mbit/s it takes 80 seconds in theory. Real downloads are slower because of protocol overhead and network conditions.
What is the difference between a bit and a byte?
A bit is a single 0 or 1. A byte is a group of 8 bits. Network speeds are normally quoted in bits per second (lower-case b), and file sizes in bytes (upper-case B).
Related calculators
Kg To Lbs Converter Calculator Converts kilograms to pounds and pounds back to kilograms using the exact legal definition of the avoirdupois pound (0.45359237 kg). Type a mass, choose which unit you are converting from and to, and you get the converted value together with the same mass split into pounds and ounces and expressed in grams and ounces, which is handy for recipes, luggage limits, body weight and shipping labels. Meters to Feet Converter Converts metres to feet and feet to metres, and also handles the other lengths you meet on drawings and tape measures: millimetres, centimetres, kilometres, inches, yards, miles, mils, eighths of an inch, and two-part measurements such as 5 ft 9 in or 1 m 75 cm. The result comes with the same length in feet and inches and rounded to the nearest eighth of an inch, so you can mark it straight onto a tape. Liters to Gallons Converter Converts litres to gallons and gallons to litres, and keeps the three different gallons apart: the US liquid gallon (3.785 L) used at American fuel pumps and in recipes, the larger imperial gallon (4.546 L) used in the UK, and the US dry gallon. Kitchen and lab units such as millilitres, cups, pints, quarts, fluid ounces, cubic inches and cubic feet are included, and every result is also shown in litres, US and imperial gallons, quarts, cups and fluid ounces. Kilometers to Miles Converter Converts kilometres to miles and miles to kilometres using the exact international mile of 1,609.344 metres. Enter a distance, choose the unit you have and the unit you want, and you get the converted distance plus the same distance in metres, feet, yards and nautical miles. Useful for race distances, road signs abroad, running and cycling logs, and car odometers set to the other system.