Saved calculators
Conversion

MB 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 megabyte (MB)?

A megabyte (MB) is a unit of digital information storage. Its value depends on the context:

  1. Binary (IEC Standard):
  • 1 MB = 1,024 kilobytes (KB) = 1,048,576 bytes.
  • Used in computing and operating systems (e.g., RAM, file sizes).
  1. SI (Decimal):
  • 1 MB = 1,000 kilobytes (KB) = 1,000,000 bytes.
  • Used by storage manufacturers (e.g., hard drives, USB drives).

A byte is the smallest addressable unit of memory, typically representing 8 bits.

Formula for converting MB to bytes

The conversion formula depends on the standard:

1. Binary system (Base-2)

Bytes=MB×1,048,576=MB×10242\text{Bytes} = \text{MB} \times 1,048,576 = \text{MB} \times 1024^2

2. SI System (Base-10)

Bytes=MB×1,000,000=MB×10002\text{Bytes} = \text{MB} \times 1,000,000 = \text{MB} \times 1000^2

Examples of MB to Bytes conversions

Example 1: Binary system

Convert 5 MB to bytes using the binary standard:

5×1,048,576=5,242,880 bytes5 \times 1,048,576 = 5,242,880 \text{ bytes}

Example 2: SI System

Convert 5 MB to bytes using the SI standard:

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

Example 3: Mixed system confusion

A 256 GB SSD advertised using the SI system contains:

256×1,000,000,000=256,000,000,000 bytes256 \times 1,000,000,000 = 256,000,000,000 \text{ bytes}

However, Windows (using binary) displays this as:

256,000,000,0001,073,741,824238.42 GB\frac{256,000,000,000}{1,073,741,824} \approx 238.42 \text{ GB}

This discrepancy explains why storage devices often show less capacity than advertised.

Historical context: why two systems exist

  • 1960s: Early computers used binary for simplicity in circuitry.
  • 1970s: Storage manufacturers adopted decimal units for marketing (larger numbers).
  • 1998: The International Electrotechnical Commission (IEC) standardized binary prefixes (e.g., mebibyte, MiB), but adoption remains inconsistent.

Applications of MB to Bytes conversions

  1. File storage: Understanding file sizes (e.g., a 10 MB photo = 10,485,760 bytes in binary).
  2. Data transfer: Calculating download times (1 Gbps internet transfers 125,000,000 bytes per second).
  3. Programming: Memory allocation in code (e.g., buffers in C++).
  4. Hardware: Comparing SSD (SI) vs. RAM (binary) capacities.

Notes on usage

  • Operating systems: Windows uses binary; macOS and Linux often display decimal units.
  • Precision: Always specify the standard to avoid errors in scientific or engineering contexts.
  • Mebibytes (MiB): 1 MiB = 1,048,576 bytes. Use MiB for unambiguous binary references.

Frequently Asked Questions

How many bytes are in 3.5 MB using the binary system?

3.5×1,048,576=3,670,016 bytes3.5 \times 1,048,576 = 3,670,016 \text{ bytes}

This is common for calculating RAM or application memory.

Why do storage devices use the SI system?

Manufacturers use decimal units (1 MB = 1,000,000 bytes) to advertise larger capacities. For example, a 1 TB HDD contains 1,000,000,000,000 bytes, but your OS shows ~931 GB (binary).

Is a megabyte always larger than a mebibyte?

No. 1 MB (SI) = 1,000,000 bytes, while 1 MiB (binary) = 1,048,576 bytes. Thus, 1 MiB ≈ 1.0486 MB.

How does this affect internet speeds?

Internet providers use bits (not bytes) and decimal units. For example, 100 Mbps = 100,000,000 bits per second = 12,500,000 bytes per second.