File Size Calculator & Converter

Convert decimal and binary file sizes, estimate transfer times and compare the values in Three.js.

  • File & Data
  • Runs in your browser
  • Free, no signup

How to use

How to Use File Size Calculator & Converter

  1. 1

    Enter file details

    Input the dimensions, format, and quality of your file.

  2. 2

    View estimated size

    See the calculated file size in bytes, KB, MB, or GB.

  3. 3

    Compare formats

    Check how different formats affect the final file size.

Compress PDFs

The guide

Tested tool guide Tested browser tools Checked November 30, 2026

What File Size Calculator & Converter does, with a checked example

Enter a nonnegative size and select its unit. Read its equivalent in bytes, decimal units and binary units, then compare ideal transfer times for eight network speeds. The conversion appears as a table and in Three.js.

Worked example

A concrete input and expected output from the current implementation.

Input

Enter 1 with MiB as the input unit and inspect 1 Mbps.

Expected output

The result is 1048576 bytes, 1.048576 MB, and 8.388608 seconds at 1 Mbps.

The tool multiplies one MiB by 1024 squared, then converts bytes to bits and divides by one million bits per second.

How the result is produced

1

Convert the size to bytes

Decimal units scale by powers of 1000. Binary units scale by powers of 1024. The input accepts up to 24 integer digits and 12 digits after the decimal.

2

Read equivalent values

The tool keeps its intermediate arithmetic in integers and rounds displayed fractions to 12 places. Values too small to round above zero are marked as less than the display resolution.

3

Estimate a transfer

The transfer table multiplies bytes by eight and divides by the listed bits per second. Copy results includes both the size conversions and the ideal transfer times.

Good uses

  • Compare an advertised storage size with a binary capacity display.
  • Estimate the shortest expected transfer at a nominal rate.
  • Normalize file sizes before comparing or documenting them.

Limits and checks

  • Confirm whether the source size is in MB or MiB.
  • Use measured throughput to account for overhead and changing network speeds.
  • Remember that lowercase b refers to bits in connection speed names.

Common questions

What is the difference between MB and MiB?

One MB is 1,000,000 bytes and one MiB is 1,048,576 bytes. Select the unit used by your source.

Why is my actual download slower?

The estimates assume the full listed rate is available continuously. Protocol overhead, congestion and server limits can reduce actual throughput.

References and verification

The example and behavioral notes were checked against the browser implementation. Standards and primary references below define the relevant format, formula, or platform behavior.