file_file_size_calculator
Convert data sizes between decimal and binary units, compare multiple file sizes, estimate transfer times, and calculate storage capacity fit. Handles common units like KB, MiB, and Mbps.
Instructions
File Size Calculator (Units, Compare, Transfer Time, Storage Fit). Convert a data size between SI/decimal units (KB, MB, GB, TB, PB, EB = powers of 1000) and IEC/binary units (KiB, MiB, GiB, TiB, PiB, EiB = powers of 1024), plus bit units, via four operations selected by "operation": convert (one size to every unit), compare (rank 2-32 sizes by bytes), transferTime (download/upload seconds at a given speed), and storageFit (how many items fit in a capacity). Use this for byte-unit math and bandwidth estimates; use conversion_base_converter for numeric radix conversion instead. Runs locally on the values you provide: read-only, non-destructive, contacts no external service, and is rate-limited (30 requests/minute for anonymous callers). Returns precise byte/bit counts plus human-readable decimal and binary strings; the result object's shape depends on the operation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| operation | Yes | Which calculation to run. Each operation reads a different subset of the other fields. | |
| value | No | convert only: the numeric size to convert. Pair with "unit". | |
| unit | No | convert only: unit of "value". Decimal (KB=1000), binary (KiB=1024), or bit units. | |
| items | No | compare only: 2-32 sizes to rank by byte count. | |
| size | No | transferTime only: the amount of data to transfer. | |
| speed | No | transferTime only: the transfer rate; must be greater than zero. | |
| targetCapacity | No | storageFit only: total capacity to fill. | |
| itemSize | No | storageFit only: size of one item; must be greater than zero. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| success | No | Always true on a 200; errors return 400/500 with an "error" string. | |
| operation | No | Echo of the requested operation. | |
| result | No | Operation-specific payload. |