Logo

MonoCalc

/

Byte Size Converter

Encode/Decode

SI (Decimal)

1 KB = 1,000 B

1 MB = 1,000,000 B

1 GB = 1,000,000,000 B

Used by storage manufacturers

IEC (Binary)

1 KiB = 1,024 B

1 MiB = 1,048,576 B

1 GiB = 1,073,741,824 B

Used by operating systems

Bits

1 byte = 8 bits

100 Mbps = 12.5 MB/s

1 Gbps = 125 MB/s

Used for network speeds

About This Tool

💾 Byte Size Converter – SI & IEC Digital Storage Units

The Byte Size Converter translates digital storage sizes between all standard units — bits, bytes, kilobytes, megabytes, gigabytes, terabytes, petabytes, and exabytes — covering both SI (decimal, base-10) and IEC (binary, base-2) standards simultaneously. Whether you are sizing memory buffers, calculating network throughput, verifying disk capacity, or simply trying to understand why your "1 TB" drive shows less space in Windows, this tool gives you instant, accurate answers.

SI vs IEC: Why Two Standards Exist

The confusion around storage sizes stems from two competing conventions that use similar-sounding names but different multipliers:

StandardBaseUnit ExampleFactorTypical Use
SIBase-10 (decimal)1 GB1,000,000,000 bytesStorage manufacturers, network speeds
IECBase-2 (binary)1 GiB1,073,741,824 bytesOperating systems, RAM, compilers

The gap widens at larger units: at the gigabyte scale the difference is ~7.4 %, and at the terabyte scale it grows to nearly 10 %. This is why a drive labelled "1 TB" (SI: 10¹² bytes) displays as only about 931 GiB in Windows — no storage has been lost, it is purely a unit mismatch.

Supported Units

SymbolFull NameStandardFactor (bytes)
bBit1/8
BByte1
KBKilobyteSI10³ = 1,000
KiBKibibyteIEC2¹⁰ = 1,024
MBMegabyteSI10⁶ = 1,000,000
MiBMebibyteIEC2²⁰ = 1,048,576
GBGigabyteSI10⁹ = 1,000,000,000
GiBGibibyteIEC2³⁰ = 1,073,741,824
TBTerabyteSI10¹²
TiBTebibyteIEC2⁴⁰
PBPetabyteSI10¹⁵
PiBPebibyteIEC2⁵⁰
EBExabyteSI10¹⁸
EiBExbibyteIEC2⁶⁰

How the Conversion Works

The algorithm follows three steps:

  1. Parse input: read the numeric value and source unit (e.g., 1.5 GB).
  2. Convert to bytes: multiply by the source unit factor (1.5 × 10⁹ = 1,500,000,000 bytes).
  3. Divide by each target factor: for every output unit, divide the raw byte count by that unit's factor (÷ 2³⁰ for GiB gives ≈ 1.3970 GiB).

For bits: multiply bytes by 8 (there are always exactly 8 bits per byte). The best-fit formatter scans from the largest unit downward and picks the first unit whose converted value is ≥ 1, producing a compact human-readable result.

Network Bandwidth Conversions

Network speeds are quoted in bits per second (bps, Kbps, Mbps, Gbps), while file transfer progress is shown in bytes per second. To convert, divide by 8: 100 Mbps ÷ 8 = 12.5 MB/s. Select Mb as your input unit and the table will show both the bit-level and byte-level equivalents across all scales.

Practical Examples

ScenarioInputSI ResultIEC Result
4K video file50 GB50,000 MB46.566 GiB
RAM size16 GiB17.179 GB16,384 MiB
Floppy disk1.44 MB1,440 KB1.373 MiB
Internet speed1 Gb (gigabit)125 MB/s equivalent119.2 MiB/s equivalent

Bulk Conversion Mode

The Bulk / Multi-Row tab accepts multiple values — one per line — optionally followed by a unit symbol (e.g., 512 MiB). If no unit is specified, bytes are assumed. Each line is converted independently and the results appear in a scrollable comparison grid, ideal for processing file-size lists from directory listings or log files.

When to Use Each Standard

  • SI units (KB, MB, GB…) — use when communicating with storage manufacturers, reading drive specifications, or working with network bandwidth figures.
  • IEC units (KiB, MiB, GiB…) — use when working with operating system reports, programming languages that allocate memory in powers of two, or when precision matters in technical documentation.
  • Bits (b, Kb, Mb…) — use for all network throughput and interface speed calculations.

Frequently Asked Questions

Is the Byte Size Converter free?

Yes, Byte Size Converter is totally free :)

Can I use the Byte Size Converter offline?

Yes, you can install the webapp as PWA.

Is it safe to use Byte Size Converter?

Yes, any data related to Byte Size Converter only stored in your browser (if storage required). You can simply clear browser cache to clear all the stored data. We do not store any data on server.

What is the difference between SI (decimal) and IEC (binary) units?

SI units (KB, MB, GB) use powers of 10: 1 KB = 1,000 bytes, 1 MB = 1,000,000 bytes. IEC units (KiB, MiB, GiB) use powers of 2: 1 KiB = 1,024 bytes, 1 MiB = 1,048,576 bytes. This distinction matters in practice — a drive marketed as 1 TB (SI) holds 1,000,000,000,000 bytes, but your OS may display it as ~931 GiB.

How does the Byte Size Converter work?

Enter a numeric value and select its source unit. The tool converts the value to bytes first, then divides by each target unit's factor to produce all outputs simultaneously. Both SI (base-10) and IEC (base-2) equivalents are shown side-by-side in a single table.

Why do storage devices show less capacity than advertised?

Hard drive manufacturers use SI units (1 GB = 1,000,000,000 bytes), while most operating systems display storage using IEC units (1 GiB = 1,073,741,824 bytes). A 1 TB drive therefore appears as roughly 931 GiB in Windows, macOS, or Linux — nothing is missing, it is simply a difference in measurement standards.

What is the best-fit auto-formatter?

The best-fit formatter takes a raw byte count and automatically selects the most human-readable unit. For example, 2,097,152 bytes is shown as 2 MiB (IEC) or 2.10 MB (SI) rather than a very large or very small number.

Can I convert network bandwidth units like Mbps?

Yes. Select 'Mb' (megabit) as your input unit. The tool handles bit-level conversions: 100 Mbps equals 12.5 MB/s because there are 8 bits in a byte. The full table shows equivalent bit and byte rates across all units.

How accurate are the conversions for very large values?

The tool uses JavaScript's native floating-point arithmetic for most conversions. Values beyond 2⁵³ (≈ 9 petabytes) may lose precision; for exabyte-scale values the results are approximate. For everyday file sizes, network speeds, and storage capacities the output is exact.