Megabyte to Byte Converter

Convert megabytes to bytes instantly with our free MB to byte calculator. Supports decimal and binary standards. Free, no signup.

Megabyte to Byte Converter Tool
Enter a value to convert between megabytes and bytes with bidirectional conversion (1 MB = 1,048,576 bytes)
Note: This converter uses binary conversion (1 megabyte = 1,048,576 bytes). Perfect for file size calculations, data storage planning, memory management, and digital storage conversions.

Use this megabyte converter to instantly find out how many bytes in a megabyte. It supports both decimal (SI) and binary (IEC) standards. Converting MB to bytes is a core operation in computing. It applies to file size calculations, storage capacity planning, and data-heavy application development.

Megabyte to Byte Formula

Two standards define the megabyte to byte conversion, and knowing which one applies to your use case ensures accurate results.

Decimal (SI standard):
1 Megabyte = 1,000,000 Bytes
Bytes = Megabytes x 1,000,000

Binary (IEC standard):
1 Megabyte = 1,048,576 Bytes
Bytes = Megabytes x 1,048,576

Example: To convert 5 MB to bytes using the decimal standard: 5 x 1,000,000 = 5,000,000 bytes. Using the binary standard: 5 x 1,048,576 = 5,242,880 bytes.

Megabyte to Byte Conversion Table

This megabytes to bytes converter table covers the most commonly searched values in both decimal and binary formats.

Megabytes (MB)Bytes (Decimal)Bytes (Binary)
0.5 MB500,000524,288
1 MB1,000,0001,048,576
2 MB2,000,0002,097,152
5 MB5,000,0005,242,880
10 MB10,000,00010,485,760
25 MB25,000,00026,214,400
50 MB50,000,00052,428,800
100 MB100,000,000104,857,600
200 MB200,000,000209,715,200
500 MB500,000,000524,288,000
1,000 MB1,000,000,0001,073,741,824

For common reference values: 500 mb to bytes equals 500,000,000 bytes (decimal) or 524,288,000 bytes (binary). The table above covers all popular ranges from 0.5 MB to 1,000 MB.

1 MB in Bytes

When converting 1 megabyte to bytes, the result depends on which standard you apply. 1 MB in bytes equals 1,000,000 bytes using the decimal (SI) system, or 1,048,576 bytes using the binary (IEC) system. If you want to know how many bytes in 1 MB for operating system purposes, use the binary value (1,048,576). For storage hardware and internet providers, use the decimal value (1,000,000). Most operating systems including Windows and macOS used the binary definition when reporting file sizes. This is why the same 1 MB file may show different byte counts across platforms.

100 MB to Bytes

100 MB equals 100,000,000 bytes (100 million bytes) using the decimal standard, or 104,857,600 bytes using the binary standard. A 100 MB file is equivalent to approximately 25 high-resolution photographs or 100 million characters of plain text. This value appears frequently as an email attachment limit, a mobile data threshold, or an app download size listed on major app stores.

Decimal vs Binary: Understanding the Difference

The difference between decimal and binary megabytes comes from two competing standards used by different industries. According to NIST (National Institute of Standards and Technology), the SI prefix mega equals 1,000,000. The IEC binary prefix mebi equals 1,048,576 (2^20).

Decimal (SI) standard: 1 MB = 1,000,000 bytes. Used by hard drive and SSD manufacturers, internet speed providers, and most technical documentation.

Binary (IEC) standard: 1 MB = 1,048,576 bytes. Used by operating systems when reporting RAM usage, file sizes on disk, and memory addresses in software development.

This discrepancy explains why a 500 GB hard drive appears as roughly 465 GB in Windows. The manufacturer measured in decimal (500 x 1,000,000,000 bytes) while the OS reports in binary (dividing by 1,073,741,824 instead of 1,000,000,000). To eliminate this confusion, the IEC introduced the term mebibyte (MiB) for 1,048,576 bytes, reserving megabyte strictly for 1,000,000 bytes. However, everyday usage continues to mix both definitions.

Byte to Megabyte Conversion

To perform a byte to megabyte conversion, divide by the appropriate factor based on the standard being used.

Decimal: MB = Bytes / 1,000,000
Binary: MB = Bytes / 1,048,576

Example: 52,428,800 bytes / 1,048,576 = 50 MB (binary). The same 52,428,800 bytes / 1,000,000 = 52.43 MB (decimal). This reverse calculation is used when reading raw byte values from a database, file system, or API and converting them into a human-readable megabyte figure.

Real-World File Size Examples

Knowing how many bytes are in a megabyte helps make sense of everyday storage decisions. Here are common real-world file sizes measured in MB and their byte equivalents:

  • Email attachment limit (25 MB): Gmail allows attachments up to 25 MB, equal to 25,000,000 bytes (decimal).
  • Average MP3 song (4 MB): A 4-minute song at 128 kbps is approximately 3.84 MB or 3,840,000 bytes.
  • High-resolution photo (5 MB): A 12-megapixel JPEG photo averages around 5 MB or 5,000,000 bytes at standard compression.
  • Mobile app (100 MB): A typical app download listed as 100 MB on an app store equals 100,000,000 bytes in decimal.
  • One-hour audio recording (55 MB): A standard WAV recording at 44.1 kHz mono produces approximately 55 MB or 55,000,000 bytes per hour.

Data Storage Unit Hierarchy

The megabyte sits in the middle of the data storage hierarchy. Understanding how it relates to other units simplifies storage planning and file management.

UnitSymbolDecimal ValueEquivalent
ByteB1 byte8 bits
KilobyteKB1,000 bytes0.001 MB
MegabyteMB1,000,000 bytes1,000 KB
GigabyteGB1,000,000,000 bytes1,000 MB
TerabyteTB1,000,000,000,000 bytes1,000 GB

The kilobyte (1,000 bytes) is directly below the megabyte, while the gigabyte (1,000 megabytes) sits above it. This hierarchy forms the basis of all digital data measurement, from small configuration files to large cloud backup systems.

Practical Uses of the MB to Byte Calculator

The mb to byte calculator is used across many fields where precise data measurement is required:

  • Software development: Programmers convert MB to bytes when allocating memory buffers, setting file upload limits, or calculating bandwidth usage in application logic.
  • Network engineering: Data transfer rates are often expressed in bytes per second by hardware specs, requiring conversion from the MB values listed in documentation.
  • Database management: Administrators convert storage allocations from MB to bytes when writing SQL scripts, configuring table spaces, or estimating record sizes.
  • Cloud storage: Cloud platforms report usage in bytes through APIs while billing in gigabytes, making the MB to bytes conversion necessary for accurate cost calculations.
  • Mobile development: App developers check asset file sizes in bytes to comply with app store size limits and optimize load times on mobile connections.

Limitations of This Calculator

This megabyte to byte converter provides results based on standard SI (decimal) and IEC (binary) definitions. A few limitations apply:

  • Legacy system inconsistency: Older operating systems label binary megabytes as MB rather than the correct MiB. This causes confusion when comparing values across different platforms.
  • Rounding differences: Some systems round byte values when displaying results, so displayed figures may differ slightly from raw calculations.
  • Megabits vs megabytes: Internet speeds are measured in megabits (Mb), not megabytes (MB). One megabyte equals 8 megabits. This calculator converts megabytes only, not megabits. For that, use DigiCalc megabyte to bit converter at /megabyte-to-bit.
  • Compressed file sizes: This calculator shows raw uncompressed byte values. Actual file sizes after compression vary based on the compression algorithm and content type.

For related conversions, explore DigiCalc byte to bit converter. Or use the full data storage converter to switch between kilobytes, gigabytes, and terabytes.

Frequently Asked Questions

Published: 5/21/2026