Data Storage Converter
Convert bits, bytes, KB/MB/GB/TB and KiB/MiB/GiB/TiB with exact decimal and binary values side by side.
Value and unit
Type a number, with or without a unit suffix ("2 TB", "500GiB", "1e12 B").
All units
Enter a value to convert it to every storage unit
Decimal (×1000) and binary (×1024) values are shown side by side.
Details
This tool normalizes any storage value to an exact bit count using BigInt arithmetic and shows every unit under both standards at once: the decimal SI system (kB, MB, GB — powers of 1,000) and the binary IEC system (KiB, MiB, GiB — powers of 1,024). That side-by-side view explains why a drive advertised as 1 TB shows about 931 GiB in most operating systems: the bytes are all there, but the unit definitions differ. Values round to your chosen significant digits (3–15), exact integers always display in full, and an exact integer view is available for fractional inputs.
More examples
1 TB advertised capacity
Input: 1 TB SI column: 1,000 GB · 1,000,000 MB IEC column: 931.323 GiB (what most operating systems show)
Drive makers use decimal units; Windows and macOS traditionally show binary units, so the same 1,000,000,000,000 bytes appears as about 931 GiB.
500 GiB of memory in decimal units
Input: 500 GiB Decimal MB: 536,870,912 MB (exact)
Binary-to-decimal conversions produce large exact integers; BigInt math keeps them byte-precise with no floating-point drift.
Kilobits vs kilobytes
Input: 100 Mb (megabits) Result: 12.5 MB · 11.921 MiB
Network speeds are quoted in bits (lowercase b) while file sizes use bytes (uppercase B) — a factor of 8 the tool handles explicitly.
Examples
1 TB advertised capacity
1 TB1,000 GB · 931.323 GiBThe decimal and binary readings of the same trillion bytes, side by side — the marketed number and the on-screen number.
500 GiB of RAM in decimal units
500 GiB536,870,912 MB (exact)Binary-to-decimal conversions produce large exact integers; BigInt math keeps them byte-precise.
Kilobits vs kilobytes
100 Mb12.5 MB · 11.921 MiBLine rates are quoted in bits while file sizes use bytes — a factor of 8 the tool makes explicit.
About this tool
The Data Storage Converter converts between bits, bytes, kB, KiB, MB, MiB, GB, GiB, TB, TiB, PB, PiB and EB/EiB, and it shows the decimal (SI, ×1000) and binary (IEC, ×1024) readings of every unit side by side in one table. The value you type is normalized to an exact bit count with BigInt arithmetic, so even 900 PiB or a fractional 1.5 bits stays precise — there is no floating-point drift anywhere in the pipeline.
The two standards exist for a real reason. Drive and network vendors quote decimal units (1 TB = 1,000,000,000,000 bytes), while operating systems have traditionally displayed binary units (1 GiB = 1,073,741,824 bytes). Neither is wrong — they measure the same bytes with different unit definitions, which is why a drive advertised as 1 TB shows about 931 GiB on your desktop. This tool always shows both columns so the discrepancy is visible instead of surprising.
Options cover the edge cases: an input selector includes bit-multiple units (kb, Mb, Gb, Tb) for network-style values, ambiguous input units (kB, MB, GB…) can optionally be read as 1024-based with one toggle, precision controls significant digits (3–15, exact integers always display in full), and you can paste values with the unit attached — "2 TB", "500GiB", or scientific notation like "1e12 B".
Everything runs locally in your browser: no value ever leaves the page. The current value and unit are mirrored into the URL so you can bookmark or share an exact conversion, and quick facts translate any result into everyday media — CDs, DVDs, 4K movies — with clearly footnoted averages.
What this tool does not do
- Covers storage capacity up to exabytes (EB/EiB); zettabyte-scale values fall back to scientific notation rather than dedicated rows.
- Quick facts use fixed averages (CD 700 MB, DVD 4.7 GB, 4K movie ≈ 20 GB) — real media sizes vary by codec and format.
- Pure capacity conversion: data-rate math over time belongs to the bandwidth calculator, not this tool.
How to use this tool
Enter a value and pick a unit
Type a number — with or without a unit suffix like "2 TB" — and choose the input unit from the selector. The table updates as you type.
Read the dual columns
Each row shows the SI (×1000) reading and the IEC (×1024) reading of the same magnitude, so kB-vs-KiB differences are always visible.
Pick a primary answer
Use the "Convert to" selector to put one target unit — MB to GB, GiB to TB — at the top of the results with its dual reading beside it.
Copy or share
Copy any row's values with its button, copy the whole table as TSV from the panel header, or share the page URL, which carries the value and unit.
Use cases
Checking advertised drive capacity
Enter the box number (1 TB, 2 TB, 8 TB) and read the GiB figure your operating system will actually show before you buy.
Converting transfer and memory limits
Turn bandwidth-style bit values (100 Mb) into byte-based file sizes, or convert memory limits between MiB and MB for configs and documentation.
Teaching SI vs binary prefixes
The dual-column table plus the prefix reference give students a concrete view of why kB ≠ KiB and where the 8% per-magnitude gap comes from.
Decimal vs binary prefixes
| Magnitude | Decimal (SI) |
|---|---|
| kilo | kB = 1,000 B |
| mega | MB = 1,000,000 B |
| giga | GB = 10⁹ B |
| tera | TB = 10¹² B |
| peta | PB = 10¹⁵ B |
The 931 GB drive: 1 TB = 10¹² B ÷ 2³⁰ B/GiB ≈ 931.32 GiB — the bytes are all there; only the unit definition differs.
Common mistakes
Mistake:Dividing by 1,024 to convert GB to GiB.
Fix:GB → GiB divides by (1,024/1,000)³ ≈ 1.0737, not 1.024 — each magnitude compounds the gap. The tool's GiB column already does this correctly.
Mistake:Reading lowercase "kb" as kilobytes.
Fix:Lowercase b means bits: 100 kb is 12.5 kB. The selector lists bit multiples separately so the distinction is explicit.
Mistake:Assuming a 1 TB drive is missing storage.
Fix:Nothing is missing: 10¹² bytes simply equals about 931 GiB. Check the IEC column before RMA-ing a healthy drive.
Frequently asked questions
What is the difference between GB and GiB?
GB is a decimal (SI) unit: 1 GB = 1,000,000,000 bytes, exactly 10⁹. GiB is a binary (IEC) unit: 1 GiB = 1,073,741,824 bytes, exactly 2³⁰. They measure the same bytes with different unit definitions, and the gap compounds by about 2.4% per magnitude — roughly 7.4% at giga scale and 9.95% at tera scale. Storage vendors quote GB; many operating systems display GiB, which is why both columns appear side by side in this tool.
Why does a 1 TB drive show 931 GB on my computer?
Nothing is missing. The drive really holds 1,000,000,000,000 bytes (decimal 1 TB). Your operating system divides that by 1,073,741,824 (bytes per GiB) and reports about 931.32 GiB, which it labels "GB". The bytes are all there — only the unit definition differs. Enter 1 TB in this tool and the IEC column shows the 931.32 GiB figure your desktop will display.
Is a kilobyte 1000 or 1024 bytes?
By international standard (SI and IEC 80000-13), kB is 1,000 bytes and KiB is 1,024 bytes. Historically, "kB" was used loosely for 1,024 bytes in computing, and that usage survives in some tools and documentation. This converter reads kB, MB, GB as 1000-based by default and offers a "kB = 1024 B" toggle to reproduce the legacy interpretation when you need it.
How many MB are in a GB exactly?
Exactly 1,000 MB in a decimal GB, because both units are powers of ten. If you meant binary units, 1 GiB equals 1,048.576 MiB exactly (2³⁰ ÷ 2²⁰), and 1 GB equals about 953.674 MiB. The tool computes every pairing exactly with integer arithmetic, so numbers like 953.674 MB never accumulate rounding drift.
What is the difference between bits and bytes?
A byte is 8 bits. Bits (lowercase b, as in kb, Mb, Gb) are used for network and line speeds — 100 Mb/s means 100 megabits per second — while bytes (uppercase B, as in kB, MB, GB) are used for file and storage sizes. Dividing bits by 8 gives bytes: a 100 Mb file transfer is 12.5 MB. The selector includes both families so you never have to remember the ×8 factor.
Are the converted values exact?
The underlying math is exact: every value is scaled to a bit count using BigInt integer arithmetic with no floating-point error, even at petabyte scale and for fractional inputs. Display rounds to your chosen significant digits (3–15, default 6) for readability; whole numbers always show every digit in full, and an exact view toggle is available. Copying a row or the table copies the displayed values as text.
References & standards
Related tools
3D Affine Transform Visualizer
Compose 4x4 matrices and inspect 3D affine transformations with a live cube wireframe. Multiply, invert, and apply translate, rotate, scale, and skew transforms in your browser.
Bayes Theorem Calculator
Update a prior probability with test evidence: posterior P(A|B), natural frequencies, a confusion matrix and a worked formula breakdown — all computed locally.
Chemical Equation Balancer
Balance chemical equations with integer coefficients and see the matrix method, element totals and worked solution.
Dilution Calculator
Solve C1V1=C2V2 for any variable, plan serial dilution plates with pipette-friendly volumes, and mix concentration units without manual conversions.
DNA Sequence Translator
Reverse complement, GC content, six-frame DNA-to-protein translation, ORF finder and codon usage — all in your browser.
ETA Calculator
Estimate finish and arrival times from rate or speed, with any start moment.