Data Storage Converter, Bytes to GB & TB Free Tool

📏 Unit Converters Free Forever

Data Storage Converter, Bytes to KB, MB, GB & TB Free

This data storage converter switches accurately between bytes, KB, MB, GB, TB, and PB, with both decimal (1000 based) and binary (1024 based) modes so your numbers match what your operating system, hard drive, or cloud provider actually shows, no sign up needed.

Convert Storage
All Units
Decimal vs Binary Comparison

Same stated value, shown in both conventions, this is why a “1TB” drive shows less than 1TB free space in your operating system.

How Many Files Fit
About This Tool

Why a 1TB drive shows up as 931GB, and how this converter handles both answers correctly

Buy a drive labeled 1 terabyte, plug it in, and your operating system reports something like 931 gigabytes. Nobody stole 69 gigabytes. Two different, both legitimate, definitions of the prefix giga are colliding, and this tool is built specifically to keep them separate instead of quietly picking one and hiding the discrepancy from you.

The entire calculation happens in your browser using two static lookup tables and multiplication. There is no server round trip and no analytics call tied to what you type.

Decimal versus binary, confirmed straight from the source code

Yes, this tool explicitly distinguishes the two systems, and it is not a cosmetic toggle. Switching modes swaps out the entire factor table the converter multiplies against, and a comparison row runs both interpretations of your input side by side so the gap is visible rather than buried.

// decimal (SI), used by drive manufacturers and marketing var DECIMAL_UNITS = [ { key: ‘B’, factor: 1 }, { key: ‘KB’, factor: 1e3 }, { key: ‘MB’, factor: 1e6 }, { key: ‘GB’, factor: 1e9 }, { key: ‘TB’, factor: 1e12 }, { key: ‘PB’, factor: 1e15 } ]; // binary (IEC), used by most operating systems var BINARY_UNITS = [ { key: ‘B’, factor: 1 }, { key: ‘KiB’, factor: 1024 }, { key: ‘MiB’, factor: 1024*1024 }, { key: ‘GiB’, factor: Math.pow(1024,3) }, { key: ‘TiB’, factor: Math.pow(1024,4) }, { key: ‘PiB’, factor: Math.pow(1024,5) } ];

The conversion steps

Step 1 Pick the mode A toggle button sets a mode variable to either decimal or binary, which decides which of the two arrays every later calculation reads from.
Step 2 Normalize to bytes The typed value is multiplied by the selected unit’s factor within the active table, producing a raw byte count that serves as the common reference point.
Step 3 Rebuild the table for every unit The byte value is divided by each unit’s factor in the currently active array, so switching modes regenerates the whole table rather than just relabeling it.
Step 4 Run the decimal versus binary comparison Independent of whichever mode is selected, the byte total is divided by exactly 1e9 and by Math.pow(1024,3) in parallel, printed as a labeled comparison so you can see both readings for the same physical amount of data at once.

Full unit table, both systems, factor relative to one byte

UnitSystemFactor (bytes)
ByteBoth1 (base unit)
KBDecimal (SI)1,000
MBDecimal (SI)1,000,000
GBDecimal (SI)1,000,000,000
TBDecimal (SI)1,000,000,000,000
PBDecimal (SI)1,000,000,000,000,000
KiBBinary (IEC)1,024
MiBBinary (IEC)1,048,576
GiBBinary (IEC)1,073,741,824
TiBBinary (IEC)1,099,511,627,776
PiBBinary (IEC)1,125,899,906,842,624
Why your drive “loses” capacity. A drive marketed as 1TB contains 1,000,000,000,000 bytes, the honest decimal definition manufacturers have used for decades because it is what the SI prefix actually means. Your operating system, however, reports storage using binary math and mislabels the result with the decimal symbol GB instead of the correct GiB. Divide one trillion bytes by 1,073,741,824 (one GiB) and you land on roughly 931. The drive is not missing anything. The label on the box and the label in your file manager are using two different arithmetic systems while wearing the same name.

Two more things the tool does with the number

Everyday file count estimates

Your byte total is divided against typical file sizes: photos at roughly 4MB, songs at 5MB, HD movies at 2.5GB, 4K movies at 15GB, PDFs at 1MB and a minute of HD video at 130MB, so a raw number turns into “about how many of these will fit.”

Adaptive number formatting

Extremely large or small results switch automatically to exponential notation, while everyday values get locale aware thousands separators and a decimal count that shrinks as the number grows, keeping the display readable at every scale.

Standards behind the two systems

SI decimal prefixes, kilo mega giga IEC 80000-13 binary prefixes, kibi mebi gibi 1998 IEC standardization effort

The confusion is old enough to have its own standards history. Early computing borrowed the metric prefix kilo and quietly redefined it as 1,024 because that is the nearest power of two, which was convenient for memory addressing but incompatible with the actual metric system. In 1998 the International Electrotechnical Commission introduced kibi, mebi, gibi and tebi as unambiguous binary prefixes under what is now IEC 80000-13, specifically so kilo could go back to meaning exactly 1,000 everywhere. Adoption has been slow. Operating systems mostly still print GB when they mean GiB, which is the exact mismatch this tool is built to expose.

Binary prefix standards

Storage figures worth checking

Figuring out why a newly purchased drive reports less space than the box promised, planning cloud storage tiers where providers bill in decimal GB but your OS displays binary GiB, sizing a video project against available disk space using the file count estimates, converting bandwidth caps from an ISP contract into a usable monthly file budget, and settling arguments between developers about whether a kilobyte is 1,000 or 1,024 bytes with an actual standard cited instead of a guess.

Common Questions

FAQ: Data Storage Converter

Drive manufacturers label capacity using decimal terabytes (1TB = 1,000,000,000,000 bytes), but your operating system displays that same byte count using binary units labeled “GB,” where 1 GB actually means 1,073,741,824 bytes. Doing the math, 1 trillion bytes divided by that binary GB size comes out to about 931 GB, which is exactly the “missing” space people notice, nothing is actually lost, it’s purely a labeling and counting convention difference.

Both are technically correct, they’re just different, deliberately defined standards for different contexts. The International Electrotechnical Commission (IEC) created the KiB/MiB/GiB naming specifically to remove ambiguity, with “KB” technically meaning 1000 bytes under SI decimal rules and “KiB” unambiguously meaning 1024 bytes. In casual conversation, most people still say “GB” when they mean either one, which is where the confusion originates.

RAM capacity is always manufactured and reported in binary units (powers of 1024), unlike storage drives, which is why a stick of “16GB” RAM is actually exactly 17,179,869,184 bytes with no discrepancy or “missing” memory. This is because memory addressing in hardware is inherently based on powers of 2, unlike drive capacity marketing which historically adopted decimal for larger, rounder looking numbers.

Most major cloud storage providers report your used and available space using decimal (1000 based) units, matching the same convention drive manufacturers use, so a listed “15 GB free” plan means 15,000,000,000 bytes. This is generally consistent across most cloud services today, though it’s always worth checking a specific provider’s documentation if the exact figure matters for your use case.

A byte is 8 bits, and it’s the fundamental unit storage is measured in, while bits are typically used for measuring data transfer speed instead (see our dedicated data transfer speed converter for that conversion). This tool works exclusively in bytes and its multiples, since that’s the standard unit for file sizes and storage capacity.

After petabyte comes exabyte (EB), then zettabyte (ZB), then yottabyte (YB), each 1000 (or 1024 in binary) times larger than the last. These units are mostly relevant to data center and global internet infrastructure scale discussions rather than everyday personal computing, which is why this tool focuses on the more commonly needed units up through petabyte.

This usually comes down to the same decimal vs binary convention difference, some tools and operating systems label binary units (1024 based) as “MB” or “GB” when they technically mean MiB or GiB, while others correctly use decimal. Comparing the raw byte count, which stays constant regardless of labeling, is always the most reliable way to check if two reported sizes actually match.

No, all calculations happen locally in your browser, nothing is sent to a server or stored.

Privacy Overview

Cookies let this site remember your preferences and show us which tools people actually use. Full detail sits in our Privacy Policy.