Convert between bytes and megabytes in decimal (MB) or binary (MiB). Accurate, accessible, and built for speed.
Quick Convert
Tip: Press Enter to convert. MB = 10^6 bytes. MiB = 2^20 bytes.
Choose decimal (MB) or binary (MiB). Type in either box—the other updates instantly.
*Mega in computing can mean 1,000,000 (MB, decimal) or 1,048,576 (MiB, binary). Pick the scale that matches your use‑case.
1 MB = 1,000,000 bytes (106). Common in storage marketing and network throughput.
1 MiB = 1,048,576 bytes (220). Widely used by operating systems and developers.
We calculate with either Number or BigInt math. Toggle digit grouping and copy results instantly.
MB uses decimal powers (10^6), while MiB uses binary powers (2^20). 1 MiB ≈ 1.048576 MB.
Use MB for marketing/network specs; use MiB for OS‑level file sizes and developer tooling.
With BigInt enabled, inputs can be extremely large (up to dozens of digits). Without it, JavaScript safely handles integers up to 9,007,199,254,740,991 (2^53‑1).
bytestomb.com can be extended for KB/GB/TB, throughput, time‑to‑download, and more. Reach out to discuss your use case.
Generate a full reference list and visualize it. Choose decimal (MB) or binary (MiB).
Linear chart of Mega* (x) vs Bytes (y) for values 1–1000.
| # | Mega* | Bytes |
|---|