File Size Converter

Convert decimal and binary file-size units without mixing up MB and MiB.

How to use

These are example steps; replace the values for your task.

  1. Enter 1, select GB as the source and MiB as the target.
  2. Switch the target to MB to compare the unit scales.

Enter values

Result

—

About this tool

Convert between decimal units used by many storage vendors and binary units commonly used by operating systems. One MB is 1,000,000 bytes; one MiB is 1,048,576 bytes.

Results are formatted for readability while calculations retain the full conversion factor.

Try a use case and check the result

Compare the different byte counts represented by one MB and one MiB.

Example buttons replace the inputs and settings above and calculate. Restore previous input steps back one example at a time. After trying multiple examples, repeat restore to return to your original input. This history is lost when the page closes.

Express one MB in bytes

Input and settings

Value: 1 / From: MB / To: B

Expected result

1,000,000 B

Express one MiB in bytes

Input and settings

Value: 1 / From: MiB / To: B

Expected result

1,048,576 B

How to read the result

MB means 1000² bytes; MiB means 1024² bytes, a difference of 48,576 bytes. The result follows the selected unit definition. This does not read a file or measure its actual size.

Scope and limits

B through TB use powers of 1000; KiB through TiB use powers of 1024. Values must be non-negative. Bits, transfer rates, compressed size and disk allocation are excluded. Fractional bytes are possible and are not automatically rounded to whole bytes. JavaScript number precision makes this unsuitable for exact byte comparisons of very large integers.

Verification: existing convertFileSize checks cover decimal and binary constants, a round trip and rejection of negative values against the unit-labelled output. No file is selected or modified.

Continue with the next task

Compare GB with MiB

1 GB equals 1,000 MB, but approximately 953.6743164063 MiB.

Conversion is value multiplied by the source byte factor, divided by the target byte factor.

This does not inspect a file or predict compressed size. It converts the numeric capacity you enter.

Frequently asked questions

Are MB and MiB the same?

No. MB uses powers of 1000, while MiB uses powers of 1024.

Can I enter a negative size?

No. Negative values are rejected because a file size cannot be negative.

Is the value saved?

No. The value is not stored.

Related tools

Inputs and storage

Keep any content you need before clearing. This tool does not autosave inputs or results. Reloading or closing the page, clearing inputs or resetting may discard your work.

Favorites and language preferences are stored separately and may be lost when site data is cleared. Tool resets and site-data deletion do not delete files already downloaded to your device.

Explore tools & games

All 120 tools · 16 games

All 120 tools · 16 games

Text & writing 26

Calculators & converters 22

Date & time 12

Images & PDF 26

Data & web 28

Random & handy 6

Games 16