Data Storage Converter – Bytes, KB, MB, GB, TB
Convert between bytes, kilobytes, megabytes, gigabytes, terabytes, and petabytes — in both decimal (1000) and binary (1024) units. Get an accurate result plus a full breakdown in every unit. Free, no sign-up, and everything runs in your browser.
This free data storage converter converts between bytes, kilobytes, megabytes, gigabytes, terabytes, and petabytes — and, unlike most converters, it lets you choose between decimal units (1 KB = 1000 bytes) and binary units (1 KB = 1024 bytes). Enter a value, pick your units, and get an accurate result plus a full breakdown in every unit at once. It is built for developers sizing files and databases, IT staff planning storage, students learning how bytes scale, and anyone puzzled by why a "1 TB" drive shows less space than expected. Everything runs in your browser, with no sign-up, and your last conversion is saved locally. Enter a value above to convert it.
What does this tool do?
It converts a data size from one unit to another and shows the value in all units together:
- Converts across bytes, KB, MB, GB, TB, and PB.
- Supports both decimal (base 1000) and binary (base 1024) units.
- Shows a full breakdown of your value in every unit at the same time.
- Includes a swap button to reverse the two units instantly.
Why use this tool?
Data sizes are a common source of confusion because there are two systems in use. Storage makers advertise drives in decimal units (a "1 TB" drive is 1,000,000,000,000 bytes), while operating systems often report space in binary units (dividing by 1024 at each step). That is why a 1 TB drive can show up as about 931 GB. This converter makes both systems explicit, so you can see the exact figure in whichever system you need and understand the difference.
How the tool works
- Your value is first converted to bytes using the base you selected — multiplying by 1000 (decimal) or 1024 (binary) for each step up from bytes.
- The byte total is then divided down to the target unit using the same base.
- The breakdown shows that same byte total expressed in every unit, so you can compare at a glance.
- Switching between decimal and binary recalculates everything instantly, which makes the difference between the two systems easy to see.
How to use the tool
- Choose a base: Decimal (1000) or Binary (1024).
- Enter a value in the "From" box.
- Select your "From" and "To" units.
- Read the result and the full breakdown instantly.
- Use the swap button to reverse the units.
Practical examples
Why 1 TB shows as ~931 GB
Enter 1 TB in decimal, then switch to binary GB: the same drive is about 931 binary GB — the number your OS shows.
File size in bytes
Convert 5 MB to bytes in binary to get 5,242,880 bytes — useful for upload limits and config files.
Planning storage
See how many GB fit in a TB, or how many MB make up a GB, in whichever system your platform uses.
Learning the scale
Enter 1 GB and read the breakdown to see it as 1,000 MB (decimal) or 1,024 MB (binary).
Common use cases
- Developers: file sizes, buffers, upload limits, and database sizing.
- IT & sysadmins: disk capacity, backups, and bandwidth planning.
- Students: understanding how bytes scale and why the two systems differ.
- Everyday users: making sense of drive capacities and storage labels.
Tips & best practices
- Use decimal for advertised drive and file sizes; use binary to match what your operating system reports.
- Strictly, binary units are named KiB, MiB, and GiB, but everyday software often labels them KB, MB, and GB.
- The gap between the two systems grows with size — small at KB, but noticeable at TB.
- Check the full breakdown to compare all units of your value at once.
Frequently Asked Questions
Why does my 1 TB drive show as about 931 GB?
The drive is 1 TB in decimal units (a trillion bytes), but your operating system divides by 1024 at each step, giving about 931 binary GB. Both describe the same number of bytes.
What is the difference between decimal and binary units?
Decimal steps by 1000 (1 KB = 1000 B); binary steps by 1024 (1 KB = 1024 B). Storage is usually advertised in decimal, while operating systems often report in binary.
What are KiB, MiB, and GiB?
They are the formal names for binary units (1 KiB = 1024 bytes). Many programs still label these as KB, MB, and GB, which is why the binary mode here uses the familiar names.
How many bytes are in a megabyte?
In decimal, 1 MB = 1,000,000 bytes. In binary, 1 MB = 1,048,576 bytes. Switch the base to see either figure.
Which base should I use?
Use decimal for advertised capacities and most file sizes; use binary when you want to match the figure your computer's storage display shows.
What is the largest unit it supports?
Petabytes (PB), which is 1000 (or 1024) terabytes. That covers everyday and professional storage needs.
Is my data private?
Yes. All conversions run in your browser. Nothing you enter is uploaded to or stored on a server.
Is the tool free?
Completely free, with no account and no limit on how many conversions you make.
Related tools
Need other conversions? Try our Unit Converter for length, weight, and speed, or the Number to Words converter to spell figures out.
Unit Converter → Number to Words →