Data Size Converter - Convert KB, MB, GB, TB & More

Free Online Data Size Conversion Tool

Decimal Units (Base-10)

B
KB
MB
GB
TB
PB
EB

Binary Units (Base-2)

KiB
MiB
GiB
TiB
PiB
EiB

In-depth guide

Data size: decimal KB/MB/GB versus binary KiB/MiB/GiB

Compare storage units without changing the byte count, and understand browser rounding.

Last verified: Sources: NIST Plain-text version of this guide

Key figures at a glance

Megabyte
1 MB = 1000000 B
Source: NIST
Mebibyte
1 MiB = 1048576 B
Source: NIST
Gibibyte
1 GiB = 1073741824 B
Source: NIST

Choose the unit convention

Enter a decimal value in any unit field; all other fields update locally in the browser. Decimal units use powers of 1000, while binary units use powers of 1024. This page labels the decimal kilobyte KB. Read the source's definition rather than assuming an ambiguous KB or GB label means a binary unit.

A smaller displayed number is not lost capacity

A fixed number of bytes has different numerical values in GB and GiB. Converting the label does not add or remove storage. A device's usable space may also differ for reasons such as formatting and reserved space; this calculator only converts units and does not measure a disk.

Worked examples

The table uses the actual factors and display function from this page. ≈ marks rounded results.

Input Result
1 MB ≈ 0.9536743164 MiB
1 GiB 1.073741824 GB
1 TB ≈ 931.3225746155 GiB
1024 B 1 KiB

Bytes, bits and numeric precision

A byte is eight bits. The converter accepts byte-based sizes, not bit rates such as Mb/s, and has no elapsed-time input. Scientific notation makes the display compact but does not make arithmetic exact. Browser Number arithmetic uses floating point; very large integer byte counts can lose precision, and displayed values are rounded. Keep the original exact byte count when exact accounting matters. For byte representations use decimal to hex.

Frequently Asked Questions (FAQ)

What is the difference between MB and MiB?

MB means 1000000 bytes; MiB means 1048576 bytes. These are different unit conventions. Choose the unit used by your source; binary units are not inherently more accurate.

How many GB is 1 TB?

1 TB equals 1000 GB. Separately, 1 TiB equals 1024 GiB. TB and TiB are different units.

Why does my 1TB hard drive show as 931GB in Windows?

Hard drive manufacturers use decimal notation (1 TB = 1,000,000,000,000 bytes), while Windows uses binary notation (1 TiB = 1,099,511,627,776 bytes) for calculations. When dividing the decimal capacity by binary factors, you get approximately 931 GiB.

Can I convert between decimal and binary units?

Yes! Our converter displays both decimal units (KB, MB, GB, TB) and binary units (KiB, MiB, GiB, TiB) simultaneously, allowing easy comparison and understanding of the differences between the two systems.

Is this data size converter accurate for professional use?

The unit definitions are exact, but browser arithmetic uses floating point and the displayed results are rounded. Very large integer byte counts may lose precision; preserve the original byte count when exact accounting is required.

What is an exabyte?

1 exabyte (EB) equals 1000000000000000000 bytes, or 1000 petabytes (PB).

How many bytes are in a kilobyte?

In decimal notation, 1 kilobyte (KB) = 1,000 bytes. In binary notation, 1 kibibyte (KiB) = 1,024 bytes. The binary system is more common in computer science and memory calculations.

What units does this converter support?

Our converter supports all common data size units: Byte (B), Kilobyte (KB), Megabyte (MB), Gigabyte (GB), Terabyte (TB), Petabyte (PB), and Exabyte (EB) for decimal, plus their binary equivalents (KiB, MiB, GiB, TiB, PiB, EiB).

Why use this data size converter instead of a calculator?

Our converter automatically calculates all unit conversions simultaneously in real-time, supports both decimal and binary systems, and eliminates manual calculation errors. It saves time and provides more accurate results than manual calculations.

How do I calculate data transfer time?

First, convert your file size to the appropriate unit (e.g., MB or GB). Then divide by your transfer speed (e.g., Mbps or MB/s). Remember that network speeds are often measured in bits per second (Mbps), while file sizes are in bytes (MB) - 8 bits = 1 byte.

Sources

  1. Seagate — Reported Drive Capacity and Unit Conventions
  2. NIST — Prefixes for Binary Multiples
  3. ECMA-262 — Number Values and Safe Integers

This guide explains published rules in plain language. It is not financial, legal or official advice — rules change, so confirm with the agency linked above before you commit.

Embed this tool on your website

Free to use. Paste this code into your page and keep the link back to ToolSG.