N
NJHTools

Data Size Converter

Convert bytes, KB, MB, GB, TB and PB instantly — with decimal (SI, 1000) and binary (IEC, 1024) units shown side by side, so you always know whether a GB means 1000 or 1024 MB.

Kkilo
KB
Mmega
MB
Ggiga
GB
Ttera
TB
Ppeta
PB

Quick examples

Decimal (SI) vs binary (IEC)

The same number of bytes is 0.005 GB in decimal (÷1000) but 0.004656613 GiBin binary (÷1024). Disk makers use GB; operating systems often report GiB, which is why a “1 TB” drive shows as about 931 GiB.

  • 1 KB = 1000 bytes  ·  1 KiB = 1024 bytes
  • 1 MB = 1000 KB  ·  1 MiB = 1024 KiB
  • 1 GiB = 1024 MiB ≈ 1.0737 GB
  • 1 GB ≈ 0.9313 GiB

How to convert data sizes

  1. Type a value into any field — bytes, or KB/KiB, MB/MiB, GB/GiB, TB/TiB, PB/PiB — and every other field updates instantly.
  2. Read the decimal (SI) and binary (IEC) columns side by side to see exactly how 1000-based and 1024-based units differ.
  3. Click Copy next to any field to grab the value with its unit.

Decimal (SI) units multiply by 1000 at each step and are labelled KB, MB, GB. Binary (IEC) units multiply by 1024 (210) and are labelled KiB, MiB, GiB. Everything is computed locally — no data is ever sent to a server.

Frequently Asked Questions

How many MB is 5,000,000 bytes?↓

In decimal (SI) units, 5,000,000 bytes is exactly 5 MB (÷1,000,000). In binary (IEC) units it is about 4.7684 MiB (÷1,048,576). The Data Size Converter shows the decimal and binary values side by side.

Is a GB 1000 or 1024 MB?↓

It depends on the standard. In decimal (SI) units, 1 GB = 1000 MB. In binary (IEC) units, 1 GiB = 1024 MiB. Storage manufacturers use the decimal GB, while many operating systems report the binary GiB but label it 'GB', which is why a 1 TB drive shows as about 0.909 TiB.

What is the difference between GB and GiB?↓

GB (gigabyte) is a decimal unit equal to 1,000,000,000 bytes. GiB (gibibyte) is a binary unit equal to 1,073,741,824 bytes (1024^3). 1 GiB is about 1.0737 GB. The Data Size Converter shows both side by side.

How many bytes are in a kilobyte?↓

A kilobyte is 1000 bytes in decimal (SI) units. The binary equivalent, a kibibyte (KiB), is 1024 bytes. Both are available on the Data Size Converter.

Why does my hard drive show less space than advertised?↓

Drive manufacturers measure capacity in decimal (SI) units where 1 TB = 1,000,000,000,000 bytes, while operating systems often report binary (IEC) units. So a '1 TB' drive holds 10^12 bytes, which is about 931 GiB — and the OS shows that smaller-looking number even though no space is missing.

Does this data size converter send my values to a server?↓

No. All conversion runs entirely in your browser with plain JavaScript arithmetic. Nothing is uploaded to a server.

Last updated: