
A gigabyte (GB) is a unit of digital storage and is equal to 1,073,741,824 bytes (1024^3 bytes). A megabyte (MB) is a smaller unit of storage and is equal to 1,048,576 bytes (1024^2 bytes).
So, to convert from GB to MB, we can simply divide the number of GB by 1024^3 and then multiply the result by 1024^2.
For example, to convert 5 GB to MB:
5 GB / (1024^3) = 0.005 GB 0.005 GB * (1024^2) = 5120 MB
Therefore, 5 GB = 5120 MB
In general, 1 GB is equivalent to 1024 MB. So, you can use the following formula to convert between GB and MB:
MB = GB * 1024 GB = MB / 1024
It’s important to note that the abbreviation GB is typically used to refer to gibibytes, while MB is used to refer to mebibytes. The difference between a gibibyte and a gigabyte, or a mebibyte and a megabyte, is that the former uses binary prefixes, while the latter uses decimal prefixes. In practice, the terms are often used interchangeably.
Simply –
1 GB (gigabyte) is equal to 1,000 MB (megabytes)