How to use
- Enter a size and choose its unit, or select a local file.
- Compare SI and IEC values in the result table.
- Copy a value or download the exact-ratio JSON report.
File Size Converter
Enter a non-negative decimal value and choose its unit. The results show bit, B, KB through PB, and KiB through PiB. You can also select a local file to fill in its byte size without reading its contents.
Processing stays in your browser. DevToolsy does not receive the pasted data or selected file.
Input and processing
SI units use powers of 1,000; IEC units use powers of 1,024. B is a byte and bit is a single bit. Decimal calculations use integer ratios so large values do not pass through JavaScript floating-point numbers.
1{
"rows": [
{
"unit": "bit",
"value": "8388608",
"approximate": false
},
{
"unit": "B",
"value": "1048576",
"approximate": false
},
{
"unit": "KB",
"value": "1048.576",
"approximate": false
},
{
"unit": "MB",
"value": "1.048576",
"approximate": false
},
{
"unit": "GB",
"value": "0.001048576",
"approximate": false
},
{
"unit": "TB",
"value": "0.000001048576",
"approximate": false
},
{
"unit": "PB",
"value": "0.000000001048",
"approximate": true
},
{
"unit": "KiB",
"value": "1024",
"approximate": false
},
{
"unit": "MiB",
"value": "1",
"approximate": false
},
{
"unit": "GiB",
"value": "0.0009765625",
"approximate": false
},
{
"unit": "TiB",
"value": "0.000000953674",
"approximate": true
},
{
"unit": "PiB",
"value": "0.000000000931",
"approximate": true
}
],
"bitsNumerator": "8388608",
"bitsDenominator": "1"
}This example uses the default settings.
Result and limitations
Repeating results are truncated after 12 decimal places and marked approximately. JSON export includes the exact rational number of bits. This measures size, not network speed or download duration.
Using the output
Copy a value or download the exact-ratio JSON report.
Non-negative decimal input up to 100 characters. Results display up to 12 fractional digits; the exported bit ratio is exact.
Frequently asked questions
What is the difference between KB and KiB?
Enter a non-negative decimal value and choose its unit. The results show bit, B, KB through PB, and KiB through PiB. You can also select a local file to fill in its byte size without reading its contents.
How are large or fractional sizes calculated?
SI units use powers of 1,000; IEC units use powers of 1,024. B is a byte and bit is a single bit. Decimal calculations use integer ratios so large values do not pass through JavaScript floating-point numbers.
What does the approximation mark mean?
Repeating results are truncated after 12 decimal places and marked approximately. JSON export includes the exact rational number of bits. This measures size, not network speed or download duration.
Is the input uploaded?
Processing stays in your browser. DevToolsy does not receive the pasted data or selected file.
Can I keep the result?
Copy a value or download the exact-ratio JSON report.