How to Convert File Size Units Using 1,024-Based Scaling
Enter the numeric size, match its source unit, and select a destination or automatic display. The calculator converts among B, KB, MB, GB, TB, and PB with 1,024-based scaling.
Choose the right kind of conversion
A file size conversion starts with a number and the unit attached to that number. This calculator is useful when a value expressed in bytes, kilobytes, megabytes, gigabytes, terabytes, or petabytes needs to be viewed in another supported unit. It performs a numeric conversion rather than examining a file, so the size must be supplied as an input.
The calculation follows 1,024-based scaling between neighboring units. That distinction matters when you are comparing a result with a value produced under a different convention. For a fixed comparison, choose the unit you want to see. For a quick human-readable view, automatic display can choose a larger supported unit as the number grows.
Enter the value and set its units
-
Enter the numeric size in the input field. The declared starting value is 0, but replace it with the value you want to convert. Enter only the quantity represented by the selected source unit; for example, a one-megabyte value is entered as
1rather than as a complete phrase. -
Set the source unit to match the number you entered. The available source choices are B, KB, MB, GB, TB, and PB. A mismatch here changes the meaning of the input before the conversion begins, so check the unit shown beside the number instead of assuming that it matches your intended value.
-
Choose a destination unit when the output needs to use a particular scale. The destination choices include B, KB, MB, GB, TB, and PB. Selecting KB, for instance, requests a result expressed in kilobytes. The effective conversion also supports automatic display when no destination is supplied through that conversion path.
-
Use automatic display when a readable scale is more useful than a predetermined output unit. In that mode, the value is repeatedly divided by 1,024 while it is at least 1,024, and the display moves upward through the supported units. The process stops at PB, so a value already at the upper end does not move beyond the supported range.
-
Check the displayed number together with its unit. The numeric display is rounded to two decimal places, which makes the shown value easier to read but does not change the unit you requested. For repeated comparisons, keep the source and destination choices consistent so that the results describe the same kind of measurement.
-
Treat a negative entry as a zero-size input when interpreting the result. Negative numeric sizes are changed to zero before conversion, rather than being carried through as negative output. If you need a meaningful positive measurement, revise the entered quantity and then review the conversion again.
Read the number and unit together
A result is meaningful only when the source unit correctly describes the number you supplied. If the source is MB, the calculator interprets 1 as one megabyte; changing that source selection to KB represents a different starting quantity even though the digits stay the same. The destination label then tells you how to read the converted value.
With an explicitly selected destination, the output remains tied to that requested unit. With automatic display, the output can change to a larger unit whenever the current value reaches 1,024, which is useful when a long string of smaller-unit digits would be harder to read. The displayed quantity is rounded to two decimal places, so use the shown precision when reporting the result.
Pay attention to the destination behavior if the control appears to have a default. The documented control default is MB, while the effective conversion function uses automatic display when its destination is omitted. Selecting a destination yourself removes that ambiguity when the output unit is part of a comparison, form entry, or calculation elsewhere.
Zero has a unit-dependent display. Automatic display presents a zero-size input as 0 B, whereas an explicitly selected destination presents zero with that selected unit. A negative input follows the zero handling described above, so it should not be read as a negative converted size.
Worked example
You need to express a one-megabyte value in kilobytes for a storage comparison.
Enter 1 as the size, choose MB as the source unit, and choose KB as the destination unit.
The result shows a numeric value of 1024.0 with KB as the output unit.
Limitations
- The calculator converts a numeric size that you provide; it does not determine a size by examining a file or its metadata.
Common errors
- If a result seems off, the source unit may not match the entered number or the calculation may have been expected to use 1,000-based scaling. Match the source to the supplied quantity and use the calculator's 1,024-based relationship between neighboring units.
FAQ
Which units does the calculator support?
The supported source and destination choices are B, KB, MB, GB, TB, and PB. Automatic display is also available through the effective conversion when a destination is omitted.
When should I use automatic display?
When automatic display is selected, the value moves upward by dividing by 1,024 while it remains at least 1,024, stopping at PB. The displayed number is rounded to two decimal places.
How are negative and zero sizes displayed?
If the entered number is negative, it is treated as zero before conversion. Automatic display then shows 0 B, while a chosen destination uses that destination's unit for the zero result.