Back to public tools
All tools
Browser utility

File Size Converter

Convert MB to GB, bits to bytes and other file size units. Type a size or choose a file on your device to use its size.

Your inputs stay in your browser.

Convert MB, GB, MiB, bits or bytes. Enter one quantity, paste a batch or total selected file metadata, then Convert file sizes. Decimal units use 1,000; binary byte units use 1,024. File contents are never read.

Quantities and units

Paste a quantity from your clipboard

Paste normally; this page does not request permission to read your clipboard. Unit symbols are case-sensitive. KB, rate units, grouped numbers and exponents are rejected.

Favorite units

Up to six favorites, kept in memory until refresh. Unit shortcuts select a unit; they do not convert or overwrite the entered quantity.

Initializing local controls…

Advertised disk capacity and available space

Decimal GB/TB and binary GiB/TiB describe the same bytes differently. This unit difference is not lost storage. Enter your own reserved percentage and fixed bytes for a separate estimate of available capacity; this page does not inspect a disk.

Compare unit sizes

Each bar represents one unit, using the source and destination choices. The larger unit fills the chart; very small ratios may be too narrow to see. Exact values remain in the labels.

1 MB = 1000000 bytes1 MiB = 1048576 bytes

How to use File Size Converter

Choose one quantity, a pasted batch or selected file metadata. Enter your quantities, choose the destination unit and select Convert file sizes. The total, every supported unit and each individual row appear below. Exact fractions retain all digits; choose 1–24 significant digits for the displayed values. Approximately marks rounded displays.

Quantities and quick unit choices

Type up to 18 whole and 12 fractional digits, using a decimal dot or comma without thousands grouping or exponents. Batch mode accepts up to 100 nonempty lines, such as 1.5 MB or 2 MiB. Paste a quantity into the clipboard field and choose Use pasted quantity to load it for review. Symbols are case-sensitive: MB means decimal megabytes, Mbit means decimal megabits and MiB means binary mebibytes. Ambiguous KB is rejected.

Search the unit menus by symbol or label, or use favorite-unit shortcuts. Up to six favorites remain in memory until refresh. Shortcuts change the selected unit without changing your typed number; convert again afterwards. Swap exact values converts the current destination quantity back into an input only when its decimal fits the original input limits; it never promotes a rounded display into an exact value.

File metadata and storage estimates

Choose or drop up to 64 files to total their browser-reported sizes. Names are shown locally and omitted from exports; file contents are never read. Each batch line or selected file counts as one file for storage planning. For whole-byte quantities, choose a power-of-two allocation unit from 1 to 1,048,576 bytes, optional metadata per file up to 1 MiB, and 0–100% additional overhead. Each file rounds up separately; the percentage applies once to that allocated total and rounds up to a whole byte. Empty files consume no allocation units, but still receive your chosen metadata allowance. Actual filesystems may differ.

Disk capacity, reports and transfer planning

Compare advertised decimal GB, TB or PB with the same byte quantity in GiB. A smaller number caused by binary units is not lost capacity. Enter your own reserved percentage and fixed reserved bytes to estimate available space. Percentage reserves round up once, then fixed bytes are subtracted; reserves cannot exceed capacity.

The chart compares the byte sizes of one source unit and one destination unit on a linear relative scale. Tiny ratios may be too narrow to see, so exact labels remain available. Full CSV includes every quantity and destination unit, even rows outside the preview. JSON also includes exact totals and entered storage/capacity assumptions when those estimates are current. Reports are limited to 2 MiB.

Open download-time calculator carries only the total byte quantity in the link fragment. Fractional bytes explicitly round up for transfer planning. Review and Apply the incoming size there to replace the queue with one size-only item; existing speed and allowance settings remain. Undo restores the old queue. No estimate starts automatically. Clear and Try an example can be undone in this converter too. Refreshing clears quantities, results and favorites.

Example: compare MB and MiB

One MB is 1,000,000 bytes. One MiB is 1,048,576 bytes. Try an example totals one of each plus eight bits, giving 2,048,577 bytes. With a 4,096-byte allocation unit and no metadata or percentage allowance, three separate files need an estimated 2,056,192 bytes. A drive advertised as 1 TB contains 1,000,000,000,000 bytes before your chosen reserves, about 931.323 GiB.

About digital size units

A byte is eight bits. Decimal byte prefixes increase by powers of 1,000; binary byte prefixes increase by powers of 1,024. This tool changes how a quantity is expressed, rather than resizing a file or measuring a drive. Fractional quantities are useful mathematically even though physical file sizes use whole bytes. Read NIST’s explanation of decimal and binary prefixes.

All calculations and metadata inspection run in your browser. Files are never uploaded or read for this tool, and no clipboard read permission is requested. Your explicit CSV/JSON downloads contain quantity rows and assumptions; the transfer link contains a byte count. Review those values before sharing.

Stars and feedback

Loading…

Tool reference #139