Convert between bits, bytes, kilobytes, megabytes, gigabytes and terabytes.
How to use
- Enter the value you want to convert.
- Choose the unit you have and the unit you want.
- Press Convert.
Good to know
This tool uses the binary convention where 1 KB is 1024 bytes. Drive makers often use 1000 instead, which is why a drive shows less space than advertised.
How do I convert bytes, kilobytes, megabytes, gigabytes and terabytes?
Use this free online data storage converter: enter a number, choose the unit you have and the unit you want, then press the Convert button. It handles bits, bytes, kilobytes, megabytes, gigabytes and terabytes using the binary convention, where 1 KB equals 1024 bytes, and shows the answer with up to six decimal places.
What does the data storage converter do and why is it useful?
File sizes, memory capacity, download limits and drive capacities are all quoted in different data units. A phone photo may be a few megabytes, a game install runs to tens of gigabytes, and a backup drive is sold in terabytes. Network speeds are often given in bits, while file sizes are given in bytes, which makes it easy to misjudge how long a transfer will take.
This tool lets you move between six data units in one step. Type the number, select two units, press the button and read the result. It helps when you plan storage, check whether a file fits on a disk or attachment limit, size a backup or study for a computing class. When you are working with text sizes in characters rather than bytes, the character counter can help you measure the input first.
How does the converter work under the hood?
Every conversion passes through one base unit, the byte. Your value is multiplied by the number of bytes in the source unit and then divided by the number of bytes in the target unit. A bit is one eighth of a byte.
The tool follows the binary convention:
- 1 byte = 8 bits.
- 1 kilobyte (KB) = 1024 bytes.
- 1 megabyte (MB) = 1024 KB = 1,048,576 bytes.
- 1 gigabyte (GB) = 1024 MB = 1,073,741,824 bytes.
- 1 terabyte (TB) = 1024 GB = 1,099,511,627,776 bytes.
Computers work in powers of two, so 1024 (which is 2 to the power of 10) is a natural step. Results are rounded to a maximum of six decimal places. Nothing updates while you type. The calculation happens only when you press Convert.
Why do drives advertise different sizes than my computer shows?
Many storage manufacturers use the decimal convention, where 1 GB means 1,000,000,000 bytes and 1 TB means 1,000,000,000,000 bytes. Some operating systems report sizes in the binary convention, dividing by 1024 at each step. The same drive therefore appears smaller on screen than on the box. Nothing is missing: the two sides simply use different definitions of a gigabyte or terabyte.
Example 3 below shows this in numbers. A drive sold as 500 GB holds 500,000,000,000 bytes, which this tool converts to 465.661287 GB under the binary convention. This tool always uses 1024. If you need decimal figures, enter the size in bytes and divide by powers of 1000 yourself.
How do I use the data storage converter step by step?
- Enter the size you want to convert in the value field.
- Select the starting unit in the first drop-down list.
- Select the target unit in the second drop-down list.
- Press the Convert button.
- Read the result on the page. To try another size or unit pair, edit the fields and press Convert again.
What do real conversions look like? Worked examples
All results below follow from the 1024 convention.
Example 1: 1 gigabyte to megabytes
Input: 1, from gigabytes, to megabytes. Result: 1024 MB. Choosing kilobytes as the target gives 1,048,576 KB.
Example 2: 5 megabytes to bytes
Input: 5, from megabytes, to bytes. Calculation: 5 x 1,048,576. Result: 5,242,880 bytes.
Example 3: 500,000,000,000 bytes to gigabytes
Input: 500000000000, from bytes, to gigabytes. Calculation: 500,000,000,000 / 1,073,741,824. Result: 465.661287 GB.
Example 4: 64 bits to bytes
Input: 64, from bits, to bytes. Calculation: 64 / 8. Result: 8 bytes.
Example 5: 2 terabytes to gigabytes
Input: 2, from terabytes, to gigabytes. Calculation: 2 x 1024. Result: 2048 GB.
Example 6: 2,000,000,000,000 bytes to terabytes
Input: 2000000000000, from bytes, to terabytes. Calculation: 2,000,000,000,000 / 1,099,511,627,776. Result: 1.818989 TB. This is why a drive sold as 2 TB can look like about 1.82 TB on a binary display.
One more quick check: 1.5 GB to megabytes gives 1536 MB, and 4.7 GB gives 4812.8 MB.
How do the units compare at a glance?
| Unit | In bytes |
|---|---|
| 1 bit | 0.125 |
| 1 byte | 1 |
| 1 kilobyte | 1,024 |
| 1 megabyte | 1,048,576 |
| 1 gigabyte | 1,073,741,824 |
| 1 terabyte | 1,099,511,627,776 |
How do bits and bytes affect transfer calculations?
Network providers often describe speed in bits per second, while files are measured in bytes. To estimate a transfer you need both in the same unit. Suppose a file is 5 MB. Example 2 shows that this is 5,242,880 bytes, which is 41,943,040 bits after multiplying by 8. Divide that bit count by the connection speed in bits per second and you have a rough time in seconds, ignoring overhead.
The data storage converter does the unit side of that sum for you. Enter the size, choose bytes as the source, and choose bits as the target. You can then do the division with any basic calculator and turn the seconds into minutes or hours with the time converter. Real transfers are slower than the maths suggests, because of protocol overhead and shared connections, so treat the result as a best case.
The same thinking applies to memory. A program that needs 256 KB of buffer space needs 262,144 bytes, and a request for 1.5 GB of memory is 1536 MB. Converting to a smaller unit often makes it easier to compare numbers from different documents.
What tips help me get accurate results?
- Divide by 8 to turn bits into bytes, and multiply by 8 to go the other way. This matters when comparing internet speeds with file sizes.
- Expect about 7 percent less than the label at the gigabyte level and about 9 percent less at the terabyte level when a decimal-labelled drive is shown in binary units.
- For very large numbers, enter the value in bytes and choose the largest unit as the target to keep results readable.
- Round only the final answer. Six decimals are shown, but two are usually enough for planning.
- When comparing plans or limits, confirm which convention the provider uses before drawing conclusions.
What common mistakes should I avoid?
- Mixing up bits and bytes. A lowercase b usually means bits and an uppercase B means bytes. They differ by a factor of eight.
- Assuming 1 KB is 1000 bytes here. This tool uses 1024.
- Blaming the drive for the gap. The difference between advertised and displayed size is a matter of convention, not defect.
- Swapping the units. Check both lists before pressing Convert.
- Expecting live updates. The result appears only after the button press.
Who uses a data storage converter?
Students learning computer basics, photographers and video editors planning card and disk space, IT staff sizing backups and mailboxes, developers working with memory and file limits, and ordinary users checking whether a file fits under an upload cap all rely on conversions like these. It also helps anyone buying a phone, a laptop or a drive who wants to understand what the capacity on the box will look like in practice.
Is my data private?
Yes. The tool runs in your browser, so the numbers you enter never leave your device. Nothing is uploaded, stored or logged, and there is no account or history.
What are the limitations of this tool?
- It supports six units: bits, bytes, kilobytes, megabytes, gigabytes and terabytes. Petabytes and larger are not included, and neither are the IEC names KiB, MiB and GiB.
- It uses the binary convention only. There is no switch for decimal 1000-based units.
- Results show up to six decimal places.
- It converts one value at a time, with no batch mode, copy button or downloads.
Frequently asked questions
How many MB are in 1 GB?
1024 in this tool.
How many bits are in a byte?
Eight.
Why does my 1 TB drive show less?
The label uses 1,000,000,000,000 bytes, while binary displays divide by 1024 at each step, giving about 0.909495 TB.
How many bytes are in a kilobyte?
1024.
How many GB are in 2 TB?
2048.
Can I convert decimal gigabytes with it?
Not directly. Convert your decimal figure to bytes by multiplying by 1,000,000,000 per gigabyte, then use bytes as the source unit.
Why use 1024 at all?
Memory and many software tools count in powers of two, and 1024 is the power of two closest to 1000.
Where can I find more utilities?
See the full list of free tools.
Know exactly how much space you have
Enter a size, choose two units and press Convert. With the 1024 convention applied consistently, you can compare file sizes, memory and drive capacity and understand why the numbers on a label and on a screen sometimes differ. For related text work, try the text to binary converter.
