How to Convert Data Storage Units (KB, MB, GB, TB)

Data storage units show up everywhere. A phone warns that storage is almost full. A download shows a file size in MB. A hard drive is sold as 1 TB. A backup tool reports space in GiB. The letters look similar, but the numbers behind them are not always the same. That is why converting KB, MB, GB, and TB can feel confusing, even when the arithmetic itself is simple.

This guide explains the two systems that are commonly used, shows how to convert within each system, and works through a 500 MB file example in both systems. Once you know which system a tool is using, most conversions become a matter of multiplying or dividing by 1000 or 1024, and keeping the labels straight.

What KB, MB, GB, and TB Mean

KB, MB, GB, and TB are units for measuring digital storage. They describe how much data a file takes up, how much space a drive holds, or how much data moves across a connection. The units form a ladder. Each step up the ladder is much larger than the one below it.

In everyday use, KB stands for kilobyte, MB for megabyte, GB for gigabyte, and TB for terabyte. The capital B matters. In computing, B usually means byte, while a lowercase b often means bit. A byte is a unit of digital information. A bit is a single binary digit, a zero or a one. There are eight bits in one byte. That distinction matters most for internet speeds, which are often stated in megabits per second, not megabytes per second. For file sizes and storage, bytes are the usual unit.

The ladder alone does not tell the whole story. The size of each step depends on whether the tool uses decimal units or binary units. That is the main source of confusion in storage conversions.

The Two Systems: Decimal and Binary

Decimal units use powers of 1000. This system is also called SI units, after the International System of Units. In this system, 1 KB equals 1000 bytes, 1 MB equals 1000 KB, 1 GB equals 1000 MB, and 1 TB equals 1000 GB. So 1 GB equals 1000 MB in decimal terms, and 1 MB equals 1,000,000 bytes.

Binary units use powers of 1024. This system reflects how computers organize memory in powers of two. The binary units have their own names to reduce confusion: kibibyte, mebibyte, gibibyte, and tebibyte, abbreviated KiB, MiB, GiB, and TiB. In this system, 1 KiB equals 1024 bytes, 1 MiB equals 1024 KiB, 1 GiB equals 1024 MiB, and 1 TiB equals 1024 GiB. So 1 GiB equals 1024 MiB, not 1000 MiB.

The difference may look small at first, but it grows as the units get larger. At the kilobyte level, 1000 and 1024 differ by about 2.4 percent. At the gigabyte level, 1,000,000,000 bytes and 1,073,741,824 bytes differ by about 7.4 percent. At the terabyte level, the gap is about 10 percent. That is why a drive sold as 1 TB can appear to hold about 931 GiB when an operating system reports it in binary units. The drive has not lost space. The two systems are simply counting with different step sizes.

Many tools still use KB, MB, GB, and TB as labels even when they mean KiB, MiB, GiB, and TiB. That is a long-standing habit in software. It means you cannot always trust the label alone. You have to check what the tool uses, or compare a known value and see which system it matches.

How to Convert Data Storage Units

Converting within one system follows a simple rule. To move to a smaller unit, multiply. To move to a larger unit, divide. The multiplier or divisor is 1000 in the decimal system and 1024 in the binary system. Use the same system for the whole conversion, and do not switch in the middle.

  1. Write down the starting value and its unit. For example, write 500 MB, not just 500. The unit is part of the number.
  2. Decide which system you are using. If the tool, label, or context uses decimal units, use 1000. If it uses binary units, use 1024. If you are not sure, check the tool, or state your assumption in your answer.
  3. Count the steps between the units. From MB to GB is one step up. From MB to KB is one step down. From GB to KB is two steps down. From TB to MB is two steps down.
  4. Multiply or divide by the step size for each step. Going down, multiply. Going up, divide. For two steps, apply the step size twice. For example, to go from GB to KB in decimal units, multiply by 1000, then multiply by 1000 again, which is the same as multiplying by 1,000,000.
  5. Keep the unit with the result. A bare number is easy to misread. Write 0.5 GB, not just 0.5, and write 476.8 MiB, not just 476.8.
  6. Sanity-check the result. Moving to a larger unit should give a smaller number. Moving to a smaller unit should give a larger number. If the direction looks wrong, check whether you multiplied when you should have divided.

Worked Example: A 500 MB File

Let us work through a 500 MB file in both systems, step by step. This is a common size for a video, a large document collection, or a software download. The starting point is the same label, 500 MB, but the result depends on which system the label means.

First, use the decimal system, where 1 GB equals 1000 MB. To convert 500 MB to GB, divide by 1000. That gives 0.5 GB. To convert 500 MB to KB, multiply by 1000. That gives 500,000 KB. To convert 500 MB to bytes, multiply by 1000 twice, which is 1,000,000, so 500 MB equals 500,000,000 bytes. To convert 500 MB to TB, divide by 1000 twice, which is dividing by 1,000,000, so 500 MB equals 0.0005 TB. Each step is consistent, because every step uses 1000.

Now use the binary system, where the label 500 MB is read as 500 MiB and 1 GiB equals 1024 MiB. To convert 500 MiB to GiB, divide by 1024. That gives about 0.488 GiB. To convert 500 MiB to KiB, multiply by 1024. That gives 512,000 KiB. To convert 500 MiB to bytes, multiply by 1024 twice, which is 1,048,576, so 500 MiB equals 524,288,000 bytes. To convert 500 MiB to TiB, divide by 1024 twice, which gives about 0.000477 TiB.

Notice the difference. In decimal terms, the file is 500,000,000 bytes. In binary terms, the same label means 524,288,000 bytes. The gap is about 24 million bytes, or about 4.9 percent. That gap matters when you are checking whether a file will fit on a drive, estimating download time, or comparing two tools that report the same file with different numbers.

Another useful check is to convert the decimal result into binary units. A 500 MB decimal file is 500,000,000 bytes. Divide that by 1024 twice to get MiB. That gives about 476.8 MiB. So a file that one tool calls 500 MB may show as about 477 MB in a tool that uses binary units. The file has not changed. The ruler has changed.

Common Conversions to Remember

It helps to keep a small set of reference conversions in mind. These are for one step in each direction, in each system.

You do not need to memorize every number. You need to remember the two step sizes, 1000 and 1024, and the habit of checking which one applies.

Check What Your Tool Uses

Before you convert, check what your tool uses. This is the step that prevents most mistakes. Different tools use different systems, and many do not make the choice obvious.

Look at the labels first. If a tool uses KiB, MiB, GiB, or TiB, it is using binary units. If it uses KB, MB, GB, or TB, it may be using either system. Check the settings, the help page, or the documentation. Some operating systems, file managers, and disk tools use decimal units for drive sizes and binary units for memory. Some cloud storage services use decimal units in billing and binary units in a file browser. A download manager may use decimal units for speed and binary units for file size.

A practical test is to compare a known value. Take a file whose size you can calculate, or look at a drive whose advertised size you know. If a 1 TB drive shows as about 931 GB, the tool is reporting binary units under a decimal label. If it shows as 1000 GB, it is reporting decimal units. If a 1 GB file shows as about 0.93 GB, the same pattern applies.

When you share a number with someone else, state the system. Writing 500 MiB or 500 MB decimal removes the ambiguity. Writing just 500 MB leaves the reader to guess. In a team, agree on one system for a project, and write it in the notes, so that everyone converts the same way.

Do Not Mix Units in One Calculation

Do not mix units in one calculation. This is the most common error. It happens when a person takes a decimal value, divides it by 1024, and then treats the result as if it were decimal again. The result looks precise, but it is wrong, because the two systems were mixed.

For example, if you convert 500 MB to GB by dividing by 1024, you get about 0.488. If you then treat that as a decimal GB and convert it back to MB by multiplying by 1000, you get 488 MB, not 500 MB. The error is not a rounding error. It is a system error. The fix is simple: pick one system at the start, and use only that system until the conversion is finished.

The same rule applies to adding and comparing. Do not add a decimal GB to a binary GiB and treat the total as one system. Convert both values to the same unit in the same system first, then add them. Do not compare a 500 MB file on one tool with a 500 MB file on another tool until you know whether both tools use the same system.

Rounding also needs care. When you round, round at the end, not in the middle. If you round 0.488 GiB to 0.49 GiB, then multiply back, you will get a slightly different number. That is normal for rounded values. Keep one or two extra digits during the calculation, and round only the final answer to the precision you need.

Limitations

Unit conversion tells you how a quantity is counted. It does not tell you how much usable space you will have, how long a transfer will take, or how a file will behave on a particular device.

First, formatted capacity is less than advertised capacity. A drive needs space for its file system, and the operating system may reserve space for recovery, indexing, or system files. A 1 TB drive will not offer a full 1 TB of free space for your files, even after you account for decimal and binary units.

Second, file size is not the same as space used on disk. A file system stores files in blocks. A small file may take up more space than its size, because it uses a whole block. A compressed file may take up less space than its uncompressed size. A folder with many small files can use more disk space than the sum of the file sizes suggests.

Third, transfer time depends on more than file size. Network speed, server load, and overhead all affect how long a download takes. Converting a file size to bits, by multiplying bytes by eight, gives you the amount of data to move, but the actual time will vary with real-world conditions.

Fourth, some tools round or truncate values. A tool that shows 0 GB for a small file may still be showing a real size, just rounded to the nearest gigabyte. Always look at the unit and the precision before you compare two tools.

Frequently Asked Questions

Is 1 GB 1000 MB or 1024 MB?

Both answers are used, in different systems. In decimal units, 1 GB equals 1000 MB. In binary units, 1 GiB equals 1024 MiB. If a tool uses GB to mean GiB, then its 1 GB equals 1024 MiB in practice. Check the tool, or state which system you mean.

Why does my 1 TB drive show as 931 GB?

That usually means the drive is advertised in decimal units and the tool reports in binary units. One terabyte decimal equals 1,000,000,000,000 bytes. Divide that by 1024 three times to get GiB, and you get about 931 GiB. The drive has not lost space. The reporting system is different.

How do I convert a 500 MB file to GB?

In decimal units, divide by 1000 to get 0.5 GB. In binary units, if the file is 500 MiB, divide by 1024 to get about 0.488 GiB. Pick the system that matches your tool, and keep the unit with the result.

Should I use KB or KiB in my own notes?

Use KiB, MiB, GiB, and TiB when you mean binary units, and KB, MB, GB, and TB when you mean decimal units. That habit removes ambiguity for anyone who reads your notes. If you must use the older labels, add a short note, such as decimal or binary, so the reader knows which system you used.

Conclusion

Converting KB, MB, GB, and TB is straightforward once you separate the two systems. Use 1000 for decimal units and 1024 for binary units. Convert by multiplying to go to a smaller unit and dividing to go to a larger unit. Check what your tool uses, do not mix units in one calculation, and keep the unit with every result. With those habits, a 500 MB file, a 1 TB drive, or any other storage number becomes a quantity you can compare, check, and explain with confidence.