Bytes to MB – Fast Reference
1 MB = 1,048,576 bytes. To convert bytes → MB divide by 1,048,576. Inverse: Bytes = MB × 1,048,576. Use the live box above; use the formula offline.
Formula
MB = Bytes ÷ 1,048,576
Bytes = MB × 1,048,576
1,048,576 = 1024 × 1024 (220)
Quick Values
1,024 B = 0.001 MB
524,288 B = 0.5 MB
1,048,576 B = 1 MB
10,485,760 B = 10 MB
104,857,600 B = 100 MB
1,073,741,824 B = 1024 MB (1 GB)
3‑Step Conversion
- Take the byte count (e.g., 5,242,880)
- Divide by 1,048,576
- Result = 5 MB
Typical Uses
- Email attachment limits (≈25 MB)
- Image & asset optimization
- API / upload size validation
- Log rotation & quota management
Accuracy & Tips
- Use binary (1 MB = 1,048,576 B) for OS, RAM, code.
- Decimal (1,000,000) is marketing only—avoid unless specified.
- Round to 2–3 decimals for UI; keep full precision internally.
- Back‑check: MB × 1,048,576 should return original bytes.
Examples
- 2,621,440 B ÷ 1,048,576 = 2.5 MB
- 50 MB × 1,048,576 = 52,428,800 B
- 734,003,200 B ÷ 1,048,576 ≈ 700 MB
FAQ
Exact bytes in 1 MB? 1,048,576.
MB vs MiB? Practically same in many tools; MiB explicitly binary.
Why device sizes look smaller? Vendor decimal vs OS binary reporting.
Action Tip: In code: const MB = 1024 * 1024; sizeMB = (bytes / MB).toFixed(2);