Digital Storage Utility

Data and File Unit Converter Convert Bits, Bytes, Decimal Units, and Binary Units

Convert between bits, bytes, decimal SI storage units such as KB and GB, and binary IEC storage units such as KiB and GiB. Every conversion runs inside your browser and no value is stored.

Last Updated: 27 October 2026

Convert a data value

Enter the amount, pick the unit you have, and pick the unit you want. The tool shows the primary answer plus a full breakdown across every supported unit so you can see how the two scales relate.

Value & Units

Converted value
—
Decimal and binary units sit on different scales. Both are shown below.
Raw bytes—The universal intermediate value
Raw bits—Eight bits make one byte
Magnitude—Nearest familiar unit
What this usually means

—

Every supported unit for this value

Primary conversion—

Decimal versus binary on this value

Decimal kilobytes (1 000 bytes)—
Binary kibibytes (1 024 bytes)—
Decimal gigabytes (1 000 MB)—
Binary gibibytes (1 024 MiB)—

Optional AI insight

A short written read on the conversion, with practical notes on which unit to trust in which context and where decimal and binary scales tend to cause confusion. Nothing leaves your browser until you press the button, and only the anonymous figures on this page are used to generate the response.

What this converter actually does

This tool converts a value from one data unit to another. It accepts bits, bytes, and the two families of prefixed units that sit above them, and it produces the primary answer plus a full breakdown across every supported unit so you can see how the whole system fits together. Nothing about the arithmetic is complicated, but the two competing prefix conventions cause enough confusion that a transparent converter is worth having.

Every conversion runs through bytes as the universal intermediate value. Bits are converted to bytes by dividing by eight. Decimal units are converted to bytes by multiplying by powers of one thousand. Binary units are converted to bytes by multiplying by powers of one thousand and twenty-four. Once a value is expressed in raw bytes, it can be turned into any other unit with the same three rules in reverse. Keeping the intermediate value visible is the main reason the result panel shows raw bytes alongside the answer.

Everything happens in the browser. There is no server request for the conversion itself, no upload, and no history. The tool does not read file metadata, does not inspect any file on your device, and does not know what file you are thinking about. It converts the number you give it and nothing else.

Bits, bytes, and why the ratio matters

A bit is the smallest unit of digital information and can hold one of two values, usually written as zero or one. A byte is a group of eight bits, and it is the standard unit for storage and file size. The ratio is fixed and has been since the earliest computer designs adopted the eight-bit byte as the convention. Eight bits in a byte, always, with no exceptions in modern systems.

That ratio is the source of the single most common misunderstanding in consumer data. Network operators advertise connection speeds in bits per second, because historically that was how telecommunications engineers measured line capacity. File sizes and downloads are measured in bytes, because that is how operating systems and applications report them. A connection advertised as one hundred megabits per second does not deliver one hundred megabytes per second. It delivers at most twelve and a half megabytes per second, because the eight-to-one ratio applies at every step. The capitalisation is the only visual cue: an upper-case B means bytes, a lower-case b means bits. On a specification that has been retyped a few times, the distinction is easy to lose.

The rule to remember. Divide a bit figure by eight to get bytes. Multiply a byte figure by eight to get bits. Every other conversion sits on top of that one.

Decimal and binary scales, and why both exist

Above the byte, storage units come in two families. The decimal family uses powers of one thousand and follows the standard prefix definitions of the International System of Units. The binary family uses powers of one thousand and twenty-four and was formally defined in 1998 by the International Electrotechnical Commission. Both are in active use, and both describe real things.

Decimal unitBytesBinary unitBytesRatio
Kilobyte (kB)1 000Kibibyte (KiB)1 0241.024
Megabyte (MB)1 000 000Mebibyte (MiB)1 048 5761.0486
Gigabyte (GB)1 000 000 000Gibibyte (GiB)1 073 741 8241.0737
Terabyte (TB)1 000 000 000 000Tebibyte (TiB)1 099 511 627 7761.0995

The ratio column is the part worth internalising. A kibibyte is about two and a half per cent larger than a kilobyte. A gibibyte is about seven and a half per cent larger than a gigabyte. A tebibyte is about ten per cent larger than a terabyte. Those percentages look small, but they compound every time the unit step goes up, which is why the gap between a one-terabyte label and the operating system's reported figure is roughly nine per cent before the file system has even formatted the disk.

The two families exist because the computer industry adopted the decimal prefixes early on to mean powers of one thousand and twenty-four, at a time when the SI definitions were less of a concern to hardware engineers than convenience. As storage sizes grew and the discrepancy between the two meanings became economically significant, the IEC introduced the binary prefixes to remove the ambiguity. The change has been widely adopted in technical documentation, standards bodies, and developer tools, but consumer packaging still mostly uses the older decimal labels. Both conventions are legitimate. The important thing is to know which one a given figure is using.

The three places the difference bites

The decimal and binary distinction shows up in a small number of high-impact places, and knowing where they sit saves a lot of confusion.

Hard drive and SSD capacity. Manufacturers sell storage in decimal units, because a larger number is easier to advertise and because the raw physical capacity really is a round decimal figure. A drive sold as five hundred gigabytes contains five hundred billion bytes. When a Windows or macOS system reports that drive, it typically uses binary units internally, so the same drive shows up as roughly four hundred and sixty-five gibibytes labelled as GB. The missing space is not lost and it is not being hidden. It is being reported in a different unit system. Formatted capacity and filesystem overhead reduce the visible figure a little further, on top of the unit difference.

Network speeds and download time. Every ISP advertises in bits, every browser reports downloads in bytes, and the two are separated by a factor of eight. A download of five thousand megabytes on a connection rated at one hundred megabits per second takes at least four hundred seconds in theory, or about six minutes and forty seconds, before any real-world slowdowns are counted. Estimating without the divide-by-eight step overstates the connection by a factor of eight, which is the largest single source of error in this whole area.

Cloud storage billing. Most cloud providers bill in decimal gigabytes or terabytes, because their internal accounting and their marketing both follow the SI definitions. Local tools that report the same bucket's size often use binary units. The two figures can differ by seven to ten per cent at typical scales, and reconciling them requires knowing which convention each side is using. The converter on this page shows both so the number can be checked from either direction.

A worked conversion

Suppose someone has a file reported as one point five gigabytes and wants to know how big it is in gibibytes, megabytes, mebibytes, and raw bytes. They enter one point five, select gigabyte as the source, and select byte as the destination first to see the base figure.

A gigabyte is one billion bytes, so one point five gigabytes is one point five billion bytes. In scientific notation that is 1.5 × 10⁹ bytes, or one billion five hundred million bytes. Converting that to bits multiplies by eight, giving twelve billion bits, which is 1.2 × 10¹⁰ bits.

Now converting the same one point five billion bytes to binary units. A gibibyte is 1 073 741 824 bytes, so one point five billion bytes divided by that figure gives roughly 1.397 gibibytes. A mebibyte is 1 048 576 bytes, so the same value in mebibytes is roughly 1 430 mebibytes. A megabyte, being one million bytes, gives exactly 1 500 megabytes.

The interesting thing about the example is the shape of the numbers. The decimal figure of 1 500 MB and the binary figure of 1 430 MiB both describe the same physical quantity. Neither is wrong. They are simply using two different rulers, and the ruler difference of about seven and a half per cent at the gigabyte level is the reason a file that is advertised as one and a half gigabytes on a spec sheet looks slightly larger when a binary tool reports it.

Download time, network speed, and the eight-bit rule

The most practical use of a data unit converter is estimating download time. The calculation is one division, but the units on each side have to match before it works.

Take a file of four point seven gigabytes on a connection advertised at two hundred megabits per second. The connection speed in bits needs to be converted to bytes first: two hundred megabits per second divided by eight gives twenty-five megabytes per second. The file size in gigabytes needs to be converted to megabytes: four point seven gigabytes times one thousand is four thousand seven hundred megabytes. Dividing gives one hundred and eighty-eight seconds, or roughly three minutes and eight seconds.

That figure is the theoretical maximum under perfect conditions. Real transfers are slower, usually by a noticeable margin. Protocol overhead, Wi-Fi interference, congestion at the server, and any rate limiting applied by the ISP all reduce the effective throughput. In practice, planning with a cushion of twenty to fifty per cent on top of the theoretical number is the safer approach. A theoretical three minutes often lands closer to four or five minutes in the real world, and on a congested network it can be longer still.

One further subtlety: on a fast local network such as gigabit Ethernet, the bottleneck is often the storage device rather than the connection. A spinning hard drive writes at roughly one hundred and twenty megabytes per second under typical conditions, which is close to the theoretical maximum of a gigabit link. On a solid state drive, the network is almost always the limit. Knowing which side is the bottleneck matters more than the exact transfer estimate when you are diagnosing why a large copy is slow.

Common mistakes with data units

A handful of mistakes show up repeatedly whenever data units come up in a technical conversation.

Treating MB and Mb as the same thing. They are separated by a factor of eight. A file described as one hundred MB is one hundred megabytes, which is eight hundred megabits. A network described as one hundred Mb per second is one hundred megabits per second, which is twelve and a half megabytes per second. The capitalisation is the whole distinction, and copy-and-paste errors propagate it easily.

Assuming 1024 is universal. Many people learn that a kilobyte is one thousand and twenty-four bytes, and they apply that rule everywhere. It is correct for the binary units and incorrect for the decimal ones. On a hard drive spec sheet, a kilobyte is one thousand bytes. On a Windows Explorer file listing, it is one thousand and twenty-four. Both readings are valid in their own context.

Forgetting filesystem overhead. Even after accounting for the decimal-versus-binary difference, a freshly formatted drive shows less usable space than its raw capacity because the file system itself takes up room. On a two-terabyte drive formatted with a typical file system, the visible figure is often closer to one point eight terabytes. That is normal and not a defect.

Mixing bits and bytes inside a single estimate. Converting file size to megabytes but leaving network speed in megabits produces an error of exactly eight times, which is the largest single source of confusion in this topic. Any estimate that mixes the two without converting first will be wrong by a wide margin, and the mistake is easy to make because both units appear in the same product advertisements.

Ignoring reserved space on solid state drives. SSDs reserve a portion of their raw capacity for over-provisioning, which the controller uses for wear levelling and error correction. The reserved space is not visible to the operating system and does not appear in any capacity report, but it is real and it explains a small part of the gap between the labelled figure and the visible one.

Using the wrong unit in a contract. When a service-level agreement or a cloud billing contract quotes a capacity figure, the unit matters. A figure described as one terabyte of storage under a decimal interpretation is a different obligation from a figure described as one tebibyte under a binary interpretation, and the difference at that scale is close to a hundred gigabytes. Reading the unit line in the contract is worth the ten seconds it takes.

Where this tool stops

This converter works on a single value that you enter. It does not read files, does not inspect metadata, and does not know what the file you are thinking about actually contains. That is deliberate: reading a file from a browser page would require uploading it, and the tool is designed so that no such upload ever happens.

It also does not model filesystem-specific overhead, partition schemes, or reserved capacity on solid state drives. Those effects are real, and they explain part of the gap between a drive's labelled capacity and the figure the operating system reports. The unit conversion on this page isolates the decimal-versus-binary difference, which is usually the larger of the two effects on consumer storage, and leaves the rest to the operating system's own reporting.

Finally, the tool treats decimal and binary units as distinct and does not silently guess which one a user meant. If a specification says GB, the tool treats it as decimal GB, and if it says GiB, the tool treats it as binary GiB. That is the correct behaviour under both the SI and IEC standards, and it is the reason the two figures differ in the breakdown panel rather than being averaged into a single number that matches neither convention.

Sources

  1. International Electrotechnical Commission. IEC 80000-13: Quantities and Units — Part 13: Information Science and Technology. webstore.iec.ch/publication/94
  2. National Institute of Standards and Technology. NIST Special Publication 811: Guide for the Use of the International System of Units. nist.gov/pml/special-publication-811
  3. Bureau International des Poids et Mesures. The International System of Units (SI Brochure). bipm.org/en/publications/si-brochure
  4. Institute of Electrical and Electronics Engineers. IEEE 1541: Standard for Prefixes for Binary Multiples. standards.ieee.org/ieee/1541/5946
  5. Internet Engineering Task Force. RFC 4949: Internet Security Glossary. datatracker.ietf.org/doc/html/rfc4949
  6. International Organization for Standardization and IEC. ISO/IEC 2382: Information Technology Vocabulary. iso.org/standard/63598.html

Frequently asked questions

How many bits are in a byte?

One byte contains exactly eight bits. That ratio is the reason a network speed advertised as one hundred megabits per second corresponds to a maximum of twelve and a half megabytes per second of actual data transfer. Dividing a bit figure by eight converts it to bytes, and multiplying a byte figure by eight converts it back.

What is the difference between a gigabyte and a gibibyte?

A gigabyte is a decimal unit that equals one billion bytes exactly, using a power of one thousand. A gibibyte is a binary unit that equals one billion, seventy-three million, seven hundred and forty-one thousand, eight hundred and twenty-four bytes exactly, using a power of one thousand and twenty-four. The gibibyte is slightly larger, by roughly seven point four per cent, and the two figures look close enough on a spec sheet that the difference is easy to miss.

Why does my drive show less capacity than the label says?

Almost always because the manufacturer uses decimal units and the operating system reports binary ones. A drive sold as one terabyte contains one trillion bytes. When an operating system that treats a terabyte as a tebibyte reads that value, it reports roughly nine hundred and thirty-one gibibytes, which it may label as GB even though the underlying unit is GiB. Formatted space, reserved partitions, and filesystem overhead reduce the visible figure further.

What is the difference between megabytes and megabits?

Megabytes measure storage and file size, while megabits measure transmission rate and are used for network speeds. The capital B in MB is bytes. The lower-case b in Mb is bits. Because there are eight bits in a byte, a connection rated at one hundred megabits per second can theoretically move twelve and a half megabytes per second, not one hundred. The two unit systems describe related but different quantities.

How long will a download take on a given connection?

Divide the file size in megabytes by the connection speed in megabytes per second. For a file of five thousand megabytes on a link that delivers twelve and a half megabytes per second, the theoretical answer is four hundred seconds, or about six minutes and forty seconds. Real transfers are slower because of protocol overhead, Wi-Fi conditions, congestion at the server, and any throttling applied by the network operator. A generous margin on top of the theoretical figure is the safer planning number.

Why do some tools use one thousand and others use one thousand and twenty-four?

Because the two conventions come from different standards and both are in active use. The decimal prefixes kilo, mega, giga, and tera have been defined by the International System of Units as powers of one thousand for over two centuries. The binary prefixes kibi, mebi, gibi, and tebi were introduced in 1998 by the International Electrotechnical Commission to describe powers of one thousand and twenty-four unambiguously. Most modern technical documentation uses the binary prefixes when it means powers of one thousand and twenty-four, but consumer packaging often sticks with the decimal labels.

Is a kibibyte the same as a kilobyte?

No. A kibibyte is one thousand and twenty-four bytes, and a kilobyte is one thousand bytes. The kibibyte is about two point four per cent larger. In everyday use, many people say kilobyte when they actually mean kibibyte, especially when talking about the size of small text files or the block size of a filesystem. On a specification that matters, check which unit is meant before quoting a figure.

Does storage capacity always match the number on the box?

Almost never exactly. Raw storage devices are sold using decimal units. Once the drive is partitioned and formatted, a portion of the raw capacity goes to the file system structure, and some devices reserve additional space for over-provisioning or for firmware. The visible usable capacity is typically between eighty-eight and ninety-three per cent of the labelled figure on a hard disk, and a slightly higher percentage on a solid state drive, depending on the file system and the manufacturer.

What about petabits and exabytes?

The same prefixes extend upward without limit. A petabyte is one thousand terabytes, and an exabyte is one thousand petabytes. The binary equivalents are the pebibyte, which is one thousand and twenty-four tebibytes, and the exbibyte, which is one thousand and twenty-four pebibytes. Data centre and cloud pricing usually uses decimal units, while databases and operating systems often work internally in binary ones, which is one of the reasons cloud billing figures and local storage figures rarely match to the digit.

Does the tool send my numbers anywhere?

No. Every conversion runs inside your browser tab and nothing is stored. If you press the AI insight button, only an anonymous summary of the source unit, target unit, rounded input value, rounded output value, and a rough magnitude band is sent to a small serverless function that runs once and then stops. No filename, no file contents, and no personal identifier.

Can I use this converter for accounting or legal purposes?

It is a planning and estimation tool, not an auditable record. Storage vendors, cloud providers, and standards bodies publish their own authoritative conversion factors, and those are the ones that govern in a contract or a formal specification. This converter uses the same factors that those bodies define, so the number it returns should match, but for anything formal, cite the source and use the provider's own figure rather than a third-party tool.

Explore more productivity tools

Alongside the data and file unit converter, there are tools for Base64 encoding, general unit conversion, reading time, and JSON formatting. All free, all private, all running in your browser.

See all productivity tools