Saved calculators
Conversion

KB to bytes converter

Report a bug

Share calculator

Add our free calculator to your website

Please enter a valid URL. Only HTTPS URLs are supported.

Use as default values for the embed calculator what is currently in input fields of the calculator on the page.
Input border focus color, switchbox checked color, select item hover color etc.

Please agree to the Terms of Use.
Preview

Save calculator

What is a Kilobyte?

A kilobyte (KB) is a unit of digital information storage, but its definition varies depending on the context. Historically, computing systems used the binary system (base-2), where 1 kilobyte equaled 1,024 bytes. However, the International System of Units (SI) defines 1 kilobyte as 1,000 bytes (base-10). To resolve confusion, the International Electrotechnical Commission (IEC) introduced binary prefixes like kibibyte (KiB) for base-2 measurements.

  • SI (Base-10): Used in data storage (e.g., hard drives, USB drives).
  • IEC (Base-2): Used in computing contexts (e.g., RAM, software).

Formula

Base-10 (SI System)

In the SI system, kilobytes (KB) follow the decimal system:

1 KB=103 bytes=1,000 bytes1 \text{ KB} = 10^3 \text{ bytes} = 1{,}000 \text{ bytes}

Base-2 (IEC Standard)

In the binary system, kibibytes (KiB) follow powers of two:

1 KiB=210 bytes=1,024 bytes1 \text{ KiB} = 2^{10} \text{ bytes} = 1{,}024 \text{ bytes}

Conversion formulas

  • KB to Bytes (SI):
Bytes=KB×1,000\text{Bytes} = \text{KB} \times 1{,}000
  • KiB to Bytes (IEC):
Bytes=KiB×1,024\text{Bytes} = \text{KiB} \times 1{,}024

Examples

Example 1: Converting 5 KB to Bytes (SI)

5 KB=5×1,000=5,000 bytes5 \text{ KB} = 5 \times 1{,}000 = 5{,}000 \text{ bytes}

Example 2: Converting 5 KiB to Bytes (IEC)

5 KiB=5×1,024=5,120 bytes5 \text{ KiB} = 5 \times 1{,}024 = 5{,}120 \text{ bytes}

Example 3: Practical File Size

A 2.5 KB text file (SI) equals:

2.5×1,000=2,500 bytes2.5 \times 1{,}000 = 2{,}500 \text{ bytes}

If measured in KiB (IEC), the same file is:

2.5×1,024=2,560 bytes2.5 \times 1{,}024 = 2{,}560 \text{ bytes}

Historical context

The ambiguity between KB and KiB dates back to early computing. In the 1960s–1990s, manufacturers used base-10 for storage devices (e.g., floppy disks labeled “1.44 MB” actually held 1.44×1,000×1,0241.44 \times 1{,}000 \times 1{,}024 bytes). The IEC standardized binary prefixes in 1998 to clarify this confusion, but the legacy use of “KB” for 1,024 bytes persists in many operating systems.

Notes

  1. Check the context: Always verify whether a value uses SI (KB) or IEC (KiB) units.
  2. Symbols matter: “KB” (kilobyte) vs. “KiB” (kibibyte).
  3. Operating systems: Windows often reports file sizes in KiB but labels them as “KB,” causing discrepancies.

Frequently Asked Questions

How many bytes are in a kilobyte?

In the SI system:

1 KB=1,000 bytes1 \text{ KB} = 1{,}000 \text{ bytes}

In the IEC system:

1 KiB=1,024 bytes1 \text{ KiB} = 1{,}024 \text{ bytes}

Many systems conflate these terms, so always confirm the standard being used.

Why does my file show a different size in Windows?

Windows uses IEC units but labels them as SI. For example, a file reported as “5 KB” in Windows is actually:

5×1,024=5,120 bytes5 \times 1{,}024 = 5{,}120 \text{ bytes}

How to convert 3.5 KiB to bytes?

Using the IEC formula:

3.5 KiB=3.5×1,024=3,584 bytes3.5 \text{ KiB} = 3.5 \times 1{,}024 = 3{,}584 \text{ bytes}

Are SSDs and hard drives advertised in SI or IEC units?

Storage manufacturers use SI units. A “500 GB” SSD has:

500×109=500,000,000,000 bytes500 \times 10^9 = 500{,}000{,}000{,}000 \text{ bytes}

But your OS might display it as:

500,000,000,0001,073,741,824465.66 GiB\frac{500{,}000{,}000{,}000}{1{,}073{,}741{,}824} \approx 465.66 \text{ GiB}

How to convert 10,000 bytes to KB and KiB?

  • SI (KB):
10,0001,000=10 KB\frac{10{,}000}{1{,}000} = 10 \text{ KB}
  • IEC (KiB):
10,0001,0249.7656 KiB\frac{10{,}000}{1{,}024} \approx 9.7656 \text{ KiB}

What is the difference between MB and MiB?

  • Megabyte (MB): 1,000×1,000=1,000,0001{,}000 \times 1{,}000 = 1{,}000{,}000 bytes (SI).
  • Mebibyte (MiB): 1,024×1,024=1,048,5761{,}024 \times 1{,}024 = 1{,}048{,}576 bytes (IEC).