What is Kibibyte and Mebibyte (Binary vs Decimal Units)?

Published on November 10, 2026 • Last updated November 10, 2026

Mathematical Formula Included

Official Definition

A kibibyte (KiB) is 1,024 bytes and a mebibyte (MiB) is 1,048,576 bytes, while a decimal kilobyte (kB) is 1,000 bytes and a decimal megabyte (MB) is 1,000,000 bytes.

Detailed Explanation

In-Depth Guide

Key Takeaway

File sizes are written with two competing systems. Operating systems, memory and many programming languages count in powers of two, so each step up is 1,024 times larger.

Hard drive makers and some web APIs count in powers of ten, so each step is 1,000 times larger. The International Electrotechnical Commission introduced the names kibibyte, mebibyte and gibibyte to make the binary meaning unambiguous, but the everyday labels KB, MB and GB are still used for both.

When you test an upload limit you need to know which system your server uses, because a 5 MB file is 5,242,880 bytes in one and 5,000,000 bytes in the other.

Interactive Formula Hub

Learn how Kibibyte and Mebibyte (Binary vs Decimal Units) is calculated

View Kibibyte and Mebibyte (Binary vs Decimal Units) Formula

Mathematical Formula

$$S = n \times B^{k}$$

Calculation Examples

A 5 MB limit: - Binary: 5 × 1,048,576 = 5,242,880 bytes - Decimal: 5 × 1,000,000 = 5,000,000 bytes A 5,100,000 byte file passes the binary limit but fails the decimal one.

Frequently Asked Questions

Both are used. The binary convention (1,024) is common in operating systems and server configuration, and the decimal convention (1,000) is common in storage marketing and some APIs. Check your own system rather than assuming.

MiB stands for mebibyte, the unambiguous name for 1,048,576 bytes. KiB is 1,024 bytes and GiB is 1,073,741,824 bytes.

The drive maker counts 1 TB as 1,000,000,000,000 bytes, while the operating system reports space in binary units, so the same drive appears as about 931 GiB.

What do you need to work out next?

Search 276+ free tools by name, or pick a category below. Every one runs instantly in your browser — no signup, nothing to install.

More Developer Tools
AI ADVISOR & COACH

Ask AI Advisor

Ask AI