MB to Bytes
Converts megabytes to bytes using both 1000 and 1024 and shows both answers exactly.
One megabyte equals 1,000,000 bytes in the decimal system and 1,048,576 bytes in the binary one. You multiply the number of megabytes by one of these values, and the answer is always a whole number when the megabytes are whole.
You need the exact byte count when a program asks for a size in bytes: an upload limit in the server settings, or the size of a partition or a buffer.
Formula
By 1000: bytes = MB ร 1,000,000. By 1024: bytes = MB ร 1,048,576.
Ready-made values
| Megabytes | By 1000 | By 1024 |
|---|---|---|
| 1 | 1,000,000 bytes | 1,048,576 bytes |
| 2 | 2,000,000 bytes | 2,097,152 bytes |
| 5 | 5,000,000 bytes | 5,242,880 bytes |
| 10 | 10,000,000 bytes | 10,485,760 bytes |
| 16 | 16,000,000 bytes | 16,777,216 bytes |
| 100 | 100,000,000 bytes | 104,857,600 bytes |
| 1,000 | 1,000,000,000 bytes | 1,048,576,000 bytes |
Rate this tool
Help us get better
Tell us what was missing.
Other tools
JSON Formatter
Format and repair JSON in the browser, flagging duplicate keys and long numbers
Regex Tester
Regex testing with a plain-language breakdown and hang protection
JWT Decoder
JWT parsing with fields explained and signature verification
CSV to JSON
A table to JSON with honest types and a reverse check
JSON to CSV
JSON to a table for Excel, with verification and formula protection
SQL Formatter
A readable query layout, verified against the source, with risky spots flagged
XML Formatter
Readable XML, errors explained with a hint, verified against the source
XML Validator
Markup, XSD schema, sitemap, YML and RSS rules, with the path to each error