Skip to main content
🟢 Beginner

Bytes to MB Converter — Bytes to Megabytes

Convert bytes to megabytes (MB) instantly. Uses the binary definition: 1 MB = 1,048,576 bytes. Includes conversion table, FAQ, and free online calculator.

★★★★★ 4.8/5 · 📊 0 hesaplama · 🔒 Özel & ücretsiz

The Conversion: 1 MB = 1,048,576 Bytes

One megabyte (MB) equals 1,048,576 bytes in the binary (IEC) system used by operating systems and most computing contexts. To convert bytes to megabytes, divide the number of bytes by 1,048,576.

Why 1,048,576? Computers use binary (base-2) counting. 1 MB = 220 bytes = 1,024 × 1,024 = 1,048,576 bytes. This is also called a mebibyte (MiB) under the IEC standard — though "MB" is more commonly used in everyday contexts.

Note on SI vs Binary: Hard drive manufacturers often use the decimal (SI) definition where 1 MB = 1,000,000 bytes. This is why a "500 GB" hard drive shows up as ~465 GB in Windows — the OS uses binary, the manufacturer used decimal. This converter uses the binary definition (1 MB = 1,048,576 bytes).

Bytes to Megabytes Conversion Table

Common byte amounts converted to megabytes for quick reference:

BytesMegabytes (MB)Common context
1,0240.000977 MB1 Kilobyte (KB)
10,0000.00954 MBSmall text file
102,4000.0977 MB100 KB document
524,2880.5 MBShort audio clip
1,048,5761 MB1 MB — standard reference point
2,097,1522 MBTypical JPEG photo (compressed)
5,242,8805 MBHigh-res photo or short video clip
10,485,76010 MBSmall app download
52,428,80050 MBShort HD video segment
104,857,600100 MBLarge software installer
1,073,741,8241,024 MB (1 GB)1 Gigabyte

Binary vs Decimal: Why MB Means Different Things

One of the most persistent sources of confusion in computing is that "megabyte" has two legitimate definitions depending on context:

The IEC standard introduced the term "mebibyte" (MiB) in 1998 to eliminate ambiguity. Technically, 1 MiB = 1,048,576 bytes and 1 MB = 1,000,000 bytes. However, this distinction is rarely used outside of technical documentation. In practice, "MB" almost always means 1,048,576 bytes in OS and software contexts.

The discrepancy grows at larger scales: at 1 TB, the binary-vs-decimal gap is about 9.95% — which is why a "1 TB" hard drive appears as ~931 GB in Windows Explorer. This is not a defect or a scam; it's the result of two different definitions of the same unit. Understanding this difference is essential for system administrators, developers, and anyone purchasing storage.

For this converter, we use the binary definition (1 MB = 1,048,576 bytes) as it matches what your operating system reports and what most users expect when they see a file size reported in megabytes.

File Sizes in Bytes: Real-World Examples

Understanding how common file types translate to byte and megabyte values helps with storage planning, email attachments, upload limits, and data transfer estimates:

File typeTypical size (bytes)Megabytes (MB)
Plain text file (1 page)~2,000–5,000~0.002–0.005 MB
Word document (20 pages, no images)~50,000–200,000~0.05–0.19 MB
JPEG photo (smartphone, compressed)~1,000,000–4,000,000~0.95–3.81 MB
RAW photo (DSLR)~20,000,000–45,000,000~19–43 MB
MP3 audio (3-minute song)~3,500,000–7,000,000~3.3–6.7 MB
WAV audio (3-minute, CD quality)~30,000,000~28.6 MB
MP4 video (1 minute, 1080p)~100,000,000–300,000,000~95–286 MB
PDF (10 pages, text only)~500,000–1,500,000~0.48–1.43 MB
ZIP archive (typical app)~10,000,000–100,000,000~9.5–95.4 MB

Data Units: The Full Hierarchy

Bytes sit at the base of the computing storage hierarchy. Understanding how units relate helps you estimate storage needs and data transfer times:

UnitAbbreviationSize in bytes (binary)
ByteB1
KilobyteKB1,024
MegabyteMB1,048,576
GigabyteGB1,073,741,824
TerabyteTB1,099,511,627,776
PetabytePB1,125,899,906,842,624

Each step up multiplies by 1,024. So 1 GB = 1,024 MB = 1,048,576 KB = 1,073,741,824 bytes. A helpful mnemonic: each step is roughly 1,000× larger, though the precise binary multiplier is 1,024.

In practical terms: a 256 GB smartphone stores about 268,435,456,000 bytes (binary), or roughly 268 billion bytes. A typical 4K video stream consumes about 15–25 MB per second — meaning 1 GB of data supports about 40–70 seconds of 4K streaming. For 1080p HD streaming (typically 4–8 MB/s), 1 GB covers about 2–4 minutes of video. These calculations always use the binary MB definition (1,048,576 bytes).

Bandwidth and Data Transfer: Bytes vs Bits

A critical distinction in networking: internet speeds are measured in bits per second (bps), while file sizes are measured in bytes. Since 1 byte = 8 bits, you must divide bandwidth by 8 to get bytes per second.

Download time formula: Time (seconds) = File size (bytes) ÷ (Speed (bps) ÷ 8)

Examples with a 100 Mbps (megabits per second) connection:

The confusion between bits and bytes causes common misunderstandings about download speeds. When your ISP advertises "100 Mbps", your download manager showing "12 MB/s" is correct — not slow. The capital "B" in MB means bytes (8 bits each); the lowercase "b" in Mbps means bits. Always check which unit a speed test or marketing claim is using.

For mobile data plans, carriers typically count data in MB and GB of bytes transferred. A 1 GB data plan allows approximately 1,073,741,824 bytes of transferred data — about 500–1,000 webpage loads, 200–300 photos, or 1–3 hours of standard-definition video streaming depending on compression.

Programming and Development: Working with Bytes

Software developers and system administrators frequently convert between bytes and megabytes when working with file I/O, memory allocation, API rate limits, and database sizing.

Common programming contexts:

In Python, you can convert bytes to MB with: mb = bytes_value / (1024 ** 2) or mb = bytes_value / 1_048_576. In JavaScript: const mb = bytes / 1048576;. Many languages also provide utility constants or libraries that handle this conversion, but understanding the underlying math ensures you use the right definition for your context.

When logging file system usage, Unix tools like du -m (disk usage in megabytes) and df -m (disk free in megabytes) use the binary definition. The ls -lh command uses human-readable units that round to the nearest unit. System monitoring tools like htop and free -m use binary megabytes for RAM reporting.

Frequently Asked Questions

How many bytes is 1 MB?

1 megabyte (MB) = 1,048,576 bytes in binary (what your OS uses). In the decimal (SI) system used by storage manufacturers, 1 MB = 1,000,000 bytes. The difference is about 4.86%. This converter uses the binary definition.

How do I convert bytes to MB?

Divide the number of bytes by 1,048,576. For example: 5,242,880 bytes ÷ 1,048,576 = 5 MB. In a spreadsheet: =A1/1048576. In Python: mb = bytes_value / 1048576.

Why does my hard drive show less space than advertised?

Hard drive manufacturers define 1 GB = 1,000,000,000 bytes (decimal). Your operating system defines 1 GB = 1,073,741,824 bytes (binary). A "1 TB" drive has 1,000,000,000,000 bytes, which your OS reports as ~931 GB. This is not a defect — it's a definitional difference.

What is the difference between MB and MiB?

Technically, MB (megabyte) = 1,000,000 bytes (SI/decimal) and MiB (mebibyte) = 1,048,576 bytes (IEC/binary). In practice, most people use "MB" to mean 1,048,576 bytes (the binary value), making the distinction academic in everyday use. This converter uses the binary definition.

How many bytes is 100 MB?

100 MB = 100 × 1,048,576 = 104,857,600 bytes. In decimal terms, 100 MB = 100,000,000 bytes. The difference (~4.86%) matters when you need precision in storage calculations.

Practical Storage Planning with MB Conversions

Whether you're managing a server, uploading to cloud storage, or figuring out how many photos fit on a memory card, bytes-to-MB conversions are fundamental to practical storage planning. Here's a real-world guide to estimating your storage needs across different use cases.

Photography storage planning: A modern smartphone camera produces JPEG files ranging from 2 MB to 8 MB depending on resolution and scene complexity. A 128 GB memory card holds approximately 131,072 MB. At an average of 4 MB per photo, that's about 32,768 photos — more than most people take in a decade. RAW files from a DSLR average 25–40 MB each, so the same 128 GB card holds only about 3,000–5,000 RAW files. Photographers switching from JPEG to RAW need to plan for approximately 10× the storage per shoot. Cloud backup services like Google Photos count against your quota in bytes; if Google says you have 15 GB free, that's 15 × 1,073,741,824 = 16,106,127,360 bytes or roughly 3,800 average-sized smartphone photos.

Email attachment limits: Most email services have attachment size limits measured in MB: Gmail allows 25 MB per message (total for all attachments), Outlook.com allows 20 MB, and many corporate email servers limit attachments to 10 MB. These limits are in binary megabytes (10,485,760 bytes for a 10 MB limit). A single high-resolution photo at 8 MB = 8,388,608 bytes fits within most limits; three such photos at 24 MB = 25,165,824 bytes would exceed Gmail's limit. When hitting attachment limits, compressing to ZIP can reduce size by 20–60% for photos and documents, though photos (already compressed) benefit less than uncompressed files.

Server log management: Web servers generate access logs continuously. A busy web server might generate 1,000–10,000 log entries per second, each averaging 150–200 bytes. At 5,000 entries/second × 175 bytes = 875,000 bytes/second = ~0.83 MB/second. That's ~72 GB per day — clearly requiring log rotation and archival. DevOps engineers configure log rotation based on file size limits in MB: rotate when size > 100M is a common setting. Understanding the byte-to-MB relationship ensures log retention policies are set correctly.

Mobile app sizes: App stores report app sizes in MB. iOS App Store limits app download sizes over cellular to 200 MB (though this limit changes). An app showing "45.3 MB" requires 47,529,779 bytes of download. After installation, the app may use 2–5× the download size due to extracted assets, caches, and user data. When managing a phone with limited storage, understanding which MB value the OS reports (used storage) vs what the App Store shows (download size) helps explain apparent discrepancies in space usage.

The bytes-to-megabytes conversion — dividing by 1,048,576 — is one of the most frequently needed calculations in technology work. Memorizing key reference points accelerates estimation: 1 MB ≈ 1 million bytes; 10 MB ≈ 10 million bytes; 100 MB ≈ 100 million bytes (slightly more in binary). For quick mental math, the 4.86% difference between decimal and binary MB rarely matters except when precision is required, such as in storage provisioning, file system configuration, or meeting exact size constraints in software development.

},{"@type":“Question”,“name”:“How do I convert bytes to MB?”,“acceptedAnswer”:{"@type":“Answer”,“text”:“Divide the number of bytes by 1,048,576. For example: 5,242,880 bytes ÷ 1,048,576 = 5 MB. In Python: mb = bytes_value / 1048576.”}},{"@type":“Question”,“name”:“Why does my hard drive show less space than advertised?”,“acceptedAnswer”:{"@type":“Answer”,“text”:“Hard drive manufacturers define 1 GB = 1,000,000,000 bytes (decimal). Your OS defines 1 GB = 1,073,741,824 bytes (binary). A ‘1 TB’ drive has 1,000,000,000,000 bytes, which your OS reports as ~931 GB.”}},{"@type":“Question”,“name”:“What is the difference between MB and MiB?”,“acceptedAnswer”:{"@type":“Answer”,“text”:“Technically, MB (megabyte) = 1,000,000 bytes (SI/decimal) and MiB (mebibyte) = 1,048,576 bytes (IEC/binary). In practice, most people use ‘MB’ to mean 1,048,576 bytes.”}},{"@type":“Question”,“name”:“How many bytes is 100 MB?”,“acceptedAnswer”:{"@type":“Answer”,“text”:“100 MB = 100 × 1,048,576 = 104,857,600 bytes. In decimal terms, 100 MB = 100,000,000 bytes.”}}]}