Data Storage Converter
Convert Bytes, KB, MB, GB, TB, and PB
Data Storage Converter tool
Converted values
Base-2 reference (binary)
- • 1 KB = 1,024 B
- • 1 MB = 1,024 KB
- • 1 GB = 1,024 MB
- • 1 TB = 1,024 GB
- • 1 PB = 1,024 TB
- • 1 GB = 1,073,741,824 B
Data Storage Converter: key facts
- What it does
- Convert Bytes, KB, MB, GB, TB, and PB
- Category
- Converters
- Cost
- Free, with no account, sign-up, or install.
- Your data
- Runs entirely in your browser — the files and text you enter are never uploaded to a server.
- Last reviewed
- . Report an incorrect result.
About the Data Storage Converter
File size units are one of those things that trip people up constantly: is a gigabyte 1,000 megabytes or 1,024? For this tool — and for operating systems, RAM specifications, and most technical contexts — the answer is 1,024, the base-2 (binary) standard. So 1 KB = 1,024 bytes, 1 MB = 1,048,576 bytes, and so on up to petabytes. Paste in any value in any unit and every other unit appears immediately.
Cloud storage shoppers comparing plans in terabytes with file sizes in megabytes use it to figure out how many photos actually fit. Sysadmins converting server disk quotas between gigabytes and terabytes, developers sizing database limits expressed in bytes, and students answering "how many gigabytes in a terabyte?" on a homework problem all hit the same need: see the value in every unit without doing the math by hand.
The converter shows the full ladder from bytes to petabytes in a single view — type 1.5 GB and instantly see it rendered as 1,610,612,736 bytes, 1,572,864 KB, 1,536 MB, 0.00146 TB, and 0.00000143 PB, formatted to a sensible number of significant digits.
How to use it
- Type your file size value in the input field and choose its unit from the dropdown (B, KB, MB, GB, TB, or PB).
- All other units appear immediately in the result grid below.
- Click Copy next to any row to copy that value to your clipboard.
Powers of 1024, not 1000
This tool converts using binary multiples: a kilobyte is 1,024 bytes, a megabyte 1,024 squared, and so on up the scale. That is the convention most operating systems use when reporting file and disk sizes, so the figures here match what your file manager shows.
It is also, strictly, the wrong use of the prefixes. In SI, kilo means exactly 1,000, and the IEC introduced separate binary prefixes — kibibyte, mebibyte, gibibyte — for the powers of 1,024. Those names never caught on in general use, so the decimal prefixes are widely used with binary values, which is the ambiguity underneath a great deal of confusion.
The discrepancy compounds as the scale rises: about 2.4% at kilobytes, but roughly 10% by terabytes.
- 1 MB is 1,048,576 bytes here, not 1,000,000.
- A drive sold as 1 TB holds 10^12 bytes, which a binary-counting operating system reports as about 931 GB.
- Nothing is missing from that drive — the two are simply counting with different prefixes.
Why use this version
- Shows all six units simultaneously — bytes through petabytes — in one grid so you can compare without switching back and forth.
- Uses strict base-2 (1024) multipliers, the standard for OS file sizes, RAM, and most technical specifications.
- Smart formatting applies appropriate precision: very small values show more decimal places, very large ones trim to significant figures so results stay readable.
- Runs entirely in your browser with no network calls.
Who counts which way
Storage manufacturers use decimal multiples, because that is what the prefixes mean and because it yields a larger number. Windows and most Linux tools report in binary multiples while labelling them with decimal prefixes, which is where the apparent shortfall on a new drive comes from — a recurring source of complaints and at least one class action. Recent macOS reports decimal, so the same drive reads differently across operating systems.
Networking follows a third convention. Bandwidth is quoted in bits per second, not bytes, and uses true decimal multiples — so a 100 Mbps connection delivers at most about 12.5 megabytes per second before overhead. Confusing the bit and the byte is an eightfold error and by far the most common mistake in this area.
Where precision matters, state the unit you mean. Writing MiB when you mean 1,024-based removes the ambiguity entirely, even if the term still looks unfamiliar to most readers.
Frequently Asked Questions
Is 1 KB 1,000 bytes or 1,024 bytes?
In the binary (base-2) standard used by operating systems, RAM, and most hardware specs, 1 KB = 1,024 bytes. Hard drive manufacturers often use decimal (1 KB = 1,000 bytes) to make capacities appear larger, which is why a "500 GB" drive shows up as about 465 GB in Windows. This converter uses the binary 1,024 standard.
How many gigabytes are in a terabyte?
1 TB = 1,024 GB in the binary standard. So 1 terabyte holds 1,024 gigabytes, or 1,048,576 megabytes. In the decimal system used by drive manufacturers, 1 TB = 1,000 GB.
What is a petabyte?
A petabyte is 1,024 terabytes (about 1.1 quadrillion bytes). Hyperscale data centers and major cloud providers measure storage in petabytes. One petabyte could hold roughly 250,000 hours of HD video.
Why does my operating system show a different size than the label on a drive?
Drive manufacturers label capacity using decimal (1 GB = 10^9 bytes) while operating systems like Windows and Linux report using binary (1 GiB = 2^30 bytes). A drive sold as 1 TB therefore shows about 931 GiB in Windows. This converter uses the binary standard.