MFAYSAL.DEV

MB to Bytes Converter (Megabytes to Bytes)

Type a value in megabytes (MB) to see it in bytes. Change either unit or press swap. Free, private and runs in your browser.

Your details

Result

How to convert megabytes (MB) to bytes

1 MB = 1,000,000 bytes in decimal units, and 1 MiB = 1,048,576 bytes in binary units. Developers often need exact byte counts for upload limits (for example PHP's upload_max_filesize) or HTTP Content-Length headers.

Decimal (MB) vs binary (MiB) units

Storage makers, networks and macOS use decimal units: 1 KB = 1,000 bytes, 1 MB = 1,000 KB, 1 GB = 1,000 MB. Windows and many programs count in binary units (1 KiB = 1,024 bytes, 1 MiB = 1,024 KiB), but still label them "KB", "MB" and "GB". That's why a "1 TB" drive shows as about 931 GB in Windows. Choose the KiB/MiB/GiB options above to convert the binary way.

Megabytes (MB) to bytes table

Frequently asked questions

How many bytes are in a megabyte?

1,000,000 bytes (decimal) or 1,048,576 bytes (binary MiB).

How do I convert bytes back to megabytes (MB)?

Press "Swap units" and type your value. The same factor is applied in reverse.

Is the result exact?

Yes. Results use the exact defined factors and show up to 8 decimal places.

✨ New: Remove the background from any image free – private, in your browser, transparent PNG.

Related free tools

Browse all 102 free tools →

Sources

Note: This free tool runs entirely in your browser. No data is sent or stored. Results are for information only.