Logo

MonoCalc

/

Binary Size Formatter

Encode/Decode
IEC · Binary (÷ 1024)

1.00 GiB

GiB • 1 GiB = 1,073,741,824 B

SI · Decimal (÷ 1000)

1.07 GB

GB • 1 GB = 1,000,000,000 B

Raw Bytes

1,073,741,824 B

Bit Equivalent

8,589,934,592 bits

UnitValue1 Unit = ? Bytes
Bytes1073741824.001
KiB1048576.001,024
MiB1024.001,048,576
GiBbest fit1.001,073,741,824
TiB0.001,099,511,628,000
PiB0.001,125,899,907,000,000
EiB0.001,152,921,505,000,000,000
ZiB0.001,180,591,621,000,000,000,000
YiB0.001,208,925,820,000,000,000,000,000

About This Tool

🖥️ Binary Size Formatter – IEC & SI Unit Converter Explained

The Binary Size Formatter converts any file size, storage capacity, or data-transfer value into every common unit simultaneously — from bits all the way to yottabytes. It supports both IEC binary (KiB, MiB, GiB…) and SI decimal (KB, MB, GB…) standards, making it indispensable for developers, sysadmins, students, and anyone who needs to reconcile operating-system displays with advertised storage specs.

📐 IEC vs SI: Why Two Standards Exist

The confusion between kilobyte and kibibyte dates back to the early days of computing, when "kilo" was informally borrowed from the metric system and applied to powers of two. In 1998, the International Electrotechnical Commission (IEC) standardised the Ki/Mi/Gi prefixes to eliminate ambiguity:

NameIEC SymbolIEC BytesSI SymbolSI Bytes
Kilobyte / KibibyteKiB1,024KB1,000
Megabyte / MebibyteMiB1,048,576MB1,000,000
Gigabyte / GibibyteGiB1,073,741,824GB1,000,000,000
Terabyte / TebibyteTiB1,099,511,627,776TB1,000,000,000,000
Petabyte / PebibytePiB1,125,899,906,842,624PB1,000,000,000,000,000

Today, Linux and macOS report file sizes in IEC units (GiB), while storage manufacturers advertise capacity in SI units (GB). This is why a 1 TB SSD appears as only ~931 GiB in Disk Utility — nothing is missing, it is a difference in measurement convention.

⚙️ How the Conversion Works

Every conversion starts by reducing the input to a raw byte count. From there, the formatter divides by each unit's factor to produce all tier values at once:

IEC tier = floor(log₂(bytes) / 10)

IEC value = bytes ÷ 1024^tier

SI tier = floor(log₁₀(bytes) / 3)

SI value = bytes ÷ 1000^tier

Bits ↔ Bytes = bytes × 8 (or ÷ 8)

The best-fit result automatically picks the largest unit where the formatted number is still ≥ 1, keeping the output compact and readable. You can adjust decimal precision from 0 to 10 places for documentation, logging, or rough estimates.

📊 Reading the Full Breakdown Table

The All Units tab lists every tier from bits to yottabytes in a single scrollable table. Each row shows the value in that unit and its standard (IEC or SI). The best-fit row is highlighted with a badge so you can spot it instantly. Switch between IEC Units and SI Units tabs for focused views.

🔗 Practical Use Cases

File system quotasRAM sizingNetwork bandwidthCloud storage billingDatabase backup sizesDocker image layers
  • Developers — quickly verify whether a log file exceeds a 50 MiB limit or confirm that an API payload is under a 10 MB threshold.
  • Sysadmins — reconcile df -h output (GiB) with storage purchase orders (GB) without manual arithmetic.
  • Students — learn the IEC/SI distinction hands-on with live examples and the step-by-step division chain.
  • Network engineers — convert Mbps (megabits) to MiB/s (mebibytes per second) by selecting "Bits" as the input unit.

🎓 The Step-by-Step Division Chain

Expand the Step-by-Step IEC Division Chain panel to see every division stage — for example, how 1,073,741,824 bytes becomes 1,048,576 KiB, then 1,024 MiB, then finally 1.00 GiB. This walkthrough is ideal for exam preparation or debugging unexpected size readings in monitoring dashboards.

💡 Tips & Common Pitfalls

  • RAM is always IEC — a "16 GB" RAM module contains exactly 16 GiB (16 × 2³⁰ bytes) because memory chips are manufactured in exact powers of two.
  • Hard drives use SI — a "2 TB" drive holds 2 × 10¹² bytes, which your OS may display as ~1.82 TiB.
  • Network speeds are in bits — a 1 Gbps connection transfers 125 MB/s (SI) or ~119.2 MiB/s (IEC). Use the Bits input unit to see both.
  • Precision matters at scale — at petabyte scale, the difference between IEC and SI approaches 12.6 %, which can significantly affect billing calculations.

Frequently Asked Questions

Is the Binary Size Formatter free?

Yes, Binary Size Formatter is totally free :)

Can I use the Binary Size Formatter offline?

Yes, you can install the webapp as PWA.

Is it safe to use Binary Size Formatter?

Yes, any data related to Binary Size Formatter 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 IEC and SI units for file sizes?

IEC (binary) units use powers of 1024: 1 KiB = 1,024 bytes, 1 MiB = 1,048,576 bytes. SI (decimal) units use powers of 1000: 1 KB = 1,000 bytes, 1 MB = 1,000,000 bytes. Operating systems often display IEC values while storage manufacturers advertise SI values, causing apparent size discrepancies.

How does the Binary Size Formatter work?

Enter a numeric value and select its unit (Bytes, KiB, MB, GiB, etc.). The tool converts it to raw bytes, then expresses that byte count in every IEC and SI unit simultaneously. It also highlights the most human-readable 'best-fit' result and shows a step-by-step division chain for the IEC conversion.

Why does my 1 TB hard drive appear as 931 GiB in Windows?

Hard drive manufacturers measure 1 TB as 1,000,000,000,000 bytes (SI). Windows displays storage in GiB (IEC), where 1 GiB = 1,073,741,824 bytes. Dividing the SI terabyte by the IEC gibibyte gives ≈ 931 GiB — no storage is missing, it is purely a difference in unit standards.

Can I convert bits to bytes and vice versa?

Yes. Select 'Bits' as the input unit and the tool will divide by 8 to get bytes before performing all unit conversions. The full breakdown table always shows both a 'Bits' row and a 'Bytes' row alongside every IEC and SI tier.

How accurate is the formatter for very large values?

The tool uses JavaScript's 64-bit floating-point arithmetic. Results are exact for values up to 2⁵³ bytes (~8 petabytes). For exabyte-scale values or beyond, minor floating-point rounding may occur. The step-by-step breakdown helps you verify each division stage.

What is the 'best-fit' result?

The best-fit result automatically selects the smallest unit where the numeric value is ≥ 1. For example, 1,073,741,824 bytes is shown as '1.00 GiB' (IEC) or '1.07 GB' (SI) rather than a very long number. You can adjust decimal precision (0–10 places) for finer or coarser output.