Bytes to MB Calculator: Convert Instantly
- Megabytes (decimal)
- MB
- Result
- Gigabytes (binary)
- GB
- Result
- Bytes
- 1048576
- You entered
This calculator converts a number of bytes into megabytes (MB) using the standard 1 MB = 1,048,576 bytes (220) definition, which is what Windows and most storage manufacturers use for file sizes. You enter the byte count, and you get the equivalent in MB, along with the result in gigabytes (GB) for context. The tool also shows the result using the decimal (1 MB = 1,000,000 bytes) convention, so you can see both standards side by side.
Formula
The binary formula is:
MB (binary) = Bytes ÷ 1,048,576
The decimal formula is:
MB (decimal) = Bytes ÷ 1,000,000
Where:
- Bytes – the raw number of bytes you input (unit: bytes).
- MB (binary) – megabytes using the power-of-2 definition, used by operating systems and most file managers (unit: MB).
- MB (decimal) – megabytes using the power-of-10 definition, used by hard drive and SSD manufacturers for capacity labels (unit: MB).
Worked Example
Using the default input of 1,048,576 bytes:
- Binary: 1,048,576 ÷ 1,048,576 = 1.00 MB
- Decimal: 1,048,576 ÷ 1,000,000 = 1.05 MB
- Gigabytes (binary): 1,048,576 ÷ 1,073,741,824 = 0.0010 GB
So 1,048,576 bytes is exactly 1 MB in binary, but 1.05 MB in decimal. The calculator rounds to two decimal places for MB and four for GB.
Why Two Definitions Exist
The confusion comes from two different numbering systems. Computers work in binary (base 2), so memory and file sizes are naturally expressed in powers of 2: 210 = 1,024 bytes per kilobyte, 220 = 1,048,576 bytes per megabyte. This is the “binary� or “MiB� convention (though the term MiB is rarely used outside technical circles).
Hard drive and SSD manufacturers, however, use decimal (base 10) for marketing: 1 MB = 1,000,000 bytes, 1 GB = 1,000,000,000 bytes. This makes a 500 GB drive show as ~465 GB in Windows, because Windows uses binary. Both are “correct� – they just measure differently. The calculator shows both so you can reconcile what you see in your file manager versus what’s printed on a drive’s label.
How to Use the Calculator
- Enter the byte count in the “Bytes� field. You can type large numbers like 5000000000 or use scientific notation if you prefer (e.g., 5e9).
- Read the first result (binary MB) as the number you’ll see in Windows, macOS, or Linux file properties.
- Read the second result (decimal MB) as the number a storage manufacturer would quote for the same amount of data.
- Use the GB result for context when dealing with files larger than a few hundred MB.
For example, a 2-hour movie file might be 3,500,000,000 bytes. The calculator shows 3,337.86 MB (binary) or 3,500 MB (decimal). Most video players report the binary number, so you’d see ~3.34 GB.
Common Mistakes and Misconceptions
- Mixing up MB and MiB: Technically, MiB is the binary megabyte, but almost no consumer software labels it that way. If a file manager says “MB,� it usually means binary MB.
- Assuming 1 MB = 1,000,000 bytes in software: That’s only true for drive capacity labels. File sizes in Windows, macOS, and most Linux tools use 1,048,576.
- Confusing MB with Mb: MB is megabytes (8 bits per byte × 1,048,576), while Mb is megabits (1,000,000 bits). Internet speeds are in megabits per second (Mbps), so a 100 Mbps connection downloads at about 12.5 MB/s, not 100 MB/s.
- Rounding too early: If you round the byte count to the nearest thousand before dividing, you’ll get a noticeably different answer for large files. Always use the exact byte count from file properties.
When to Use Which Definition
Use the binary result when you are:
- Checking file sizes in an operating system (Windows Explorer, Finder, Nautilus).
- Estimating how many files fit on a USB stick or SD card – those capacities are also reported in binary by the OS.
- Working with RAM or memory – RAM is always binary (e.g., 8 GB = 8 × 1,073,741,824 bytes).
Use the decimal result when you are:
- Comparing a drive’s advertised capacity (e.g., a “1 TB� drive = 1,000,000,000,000 bytes) to what the OS shows.
- Calculating transfer times for network speeds, which are decimal-based.
- Dealing with cloud storage quotas – most providers (Google Drive, Dropbox, etc.) count bytes in decimal.
Limits of the Formula
This calculator handles pure byte-to-MB conversion. It does not account for file system overhead, which can reduce usable space by a few percent (e.g., NTFS, APFS, ext4 all use some space for metadata). It also doesn’t convert between bits and bytes – if you have a speed in Mbps, divide by 8 to get MB/s, but that’s a separate calculation. The formula assumes a straightforward division, so it’s exact for any integer byte count.
Frequently Asked Questions
Why does my 1 TB drive show only 931 GB in Windows?
Because the drive manufacturer uses decimal: 1 TB = 1,000,000,000,000 bytes. Windows uses binary: 1 TB = 1,099,511,627,776 bytes. Dividing 1,000,000,000,000 by 1,099,511,627,776 gives 0.9095, so you see ~931 GB. This is normal and not a defect.
Is there a difference between MB and MiB?
Yes, technically. MiB (mebibyte) is always 1,048,576 bytes, while MB can mean either 1,000,000 or 1,048,576 depending on context. The International Electrotechnical Commission (IEC) introduced MiB in 1998 to remove ambiguity, but most consumer software still uses “MB� for binary. This calculator uses the term “MB (binary)� to avoid confusion.
How do I convert bytes to MB in Excel?
Divide the byte value by 1,048,576 for binary MB, or by 1,000,000 for decimal MB. For example, if cell A1 contains 5,000,000,000, the formula =A1/1048576 returns 4,768.37 MB (binary). Format the cell to show two decimal places.
What is the largest file size I can convert?
There is no practical limit – the calculator accepts any positive number up to the maximum safe integer in JavaScript (about 9 quadrillion). Beyond that, precision may be lost, but for realistic file sizes (even multi-terabyte video files), it’s exact.
Does this calculator work for bits?
No. It only converts bytes to megabytes. If you have a bit count, divide by 8 first to get bytes, then use this calculator. For example, 1,000,000,000 bits = 125,000,000 bytes = 119.21 MB (binary).
Related
Formula used
in bytes | Bytes | - | 1048576 | 0 out mb_binary | Megabytes (binary) | MB | bytes / 1048576 | 2 out mb_decimal | Megabytes (decimal) | MB | bytes / 1000000 | 2 out gb_binary | Gigabytes (binary) | GB | bytes / 1073741824 | 4
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.