File Size Converter
File Size Converter
Conversion Results
Common Conversion Rules
Convert B, KB, MB, GB, TB, PB and KiB, MiB, GiB
Online File Size Converter: Decimal and Binary Units Supported
This file size converter quickly converts bytes (B), KB, MB, GB, TB, PB and other storage units. It also supports binary units such as KiB, MiB, GiB, TiB and PiB. Enter a value and select its original unit to see the converted results in different units instantly.
The tool supports both decimal (1000) and binary (1024) conversion standards and displays the complete results for both. Whether you are checking file sizes, hard drive capacity, memory capacity or estimating download data, you can convert units quickly. All calculations run locally in your browser, and the values you enter are not sent to the server as conversion requests.
How Do You Convert File Sizes?
The base unit for file size conversion is the byte (B). To convert a larger unit to a smaller one, multiply by the corresponding base; to convert in the opposite direction, divide by that base. For example, under the decimal standard, 1 GB = 1000 MB = 1,000,000 KB. Under the binary standard, 1 GiB = 1024 MiB = 1,048,576 KiB. Choosing the correct unit standard is essential to avoid capacity calculation errors.
Decimal Units: KB, MB, GB, TB and PB
Decimal storage units use 1000 as their base. They are commonly used to label the capacity of hard drives, SSDs and memory cards, as well as to represent some network data and file sizes. Common conversions include:
- 1 KB = 1000 B
- 1 MB = 1000 KB = 1,000,000 B
- 1 GB = 1000 MB
- 1 TB = 1000 GB
- 1 PB = 1000 TB
Binary Units: KiB, MiB, GiB, TiB and PiB
Binary storage units use 1024 as their base. They are commonly used in calculations and technical documentation where binary capacity needs to be stated precisely. Dedicated symbols such as KiB, MiB and GiB help distinguish them from decimal units:
- 1 KiB = 1024 B
- 1 MiB = 1024 KiB
- 1 GiB = 1024 MiB
- 1 TiB = 1024 GiB
- 1 PiB = 1024 TiB
What Is the Difference Between MB and MiB?
Both MB and MiB represent data capacity, but they use different conversion bases. 1 MB = 1,000,000 B, while 1 MiB = 1,048,576 B. Therefore, 1 MiB is larger than 1 MB. The same distinction applies to GB and GiB, as well as TB and TiB. KB, MB and GB usually refer to decimal units, while KiB, MiB and GiB explicitly refer to binary units.
Why Might a 1 TB Hard Drive Show Less Than 1 TB?
Hard drive manufacturers usually label capacity using decimal units, while some operating systems or applications may use a different unit standard or display binary calculations under names such as GB and TB. For example, 1 TB in decimal units equals 1,000,000,000,000 B, which is approximately 0.9095 TiB. File systems and space reserved by the operating system can also affect usable capacity, so the advertised drive capacity may differ from the value displayed by the system.
How to Use the File Size Converter
First, select the decimal (1000) or binary (1024) standard. Then enter a file size and choose its unit. The tool automatically calculates the byte value and displays the results in units such as KB, MB, GB, TB, PB or KiB, MiB, GiB, TiB and PiB. The unit corresponding to your input is highlighted so you can easily verify the starting unit.
The page also provides shortcuts for common values and file-related examples, including images, videos, games and hard drive capacities. After conversion, you can copy an individual unit result or copy all converted values from both standards at once. For very large input values, the tool warns about potential JavaScript number precision limits. Very small values are displayed using significant digits or scientific notation to reduce the chance of non-zero results appearing as zero.
File Size Conversion FAQs
How many MB are in 1 GB? Under the decimal standard, 1 GB = 1000 MB. Under the binary standard, 1 GiB = 1024 MiB. These two unit pairs should not be confused.
How many KB are in 1 MB? Under the decimal standard, 1 MB = 1000 KB. For binary units, 1 MiB = 1024 KiB.
How many GiB are in 1 GB? 1 GB in decimal units equals 1,000,000,000 B, or approximately 0.9313 GiB.
Should I choose 1000 or 1024? Choose 1000 when the original value uses decimal units such as KB, MB or GB. Choose 1024 when it uses binary units such as KiB, MiB or GiB. When checking capacity displayed by software, consider the actual unit definitions it uses.
Why might a precision warning appear? Browsers use JavaScript Number for calculations. Integer precision may be affected when values exceed the safe integer range. The tool continues to display a reference result while warning that precision may be limited.
File Size Conversion: What Is the Difference Between 1000 and 1024?
- Decimal unit conversion: Supports B, KB, MB, GB, TB and PB using a base of 1000, such as 1 GB = 1000 MB
- Binary unit conversion: Supports B, KiB, MiB, GiB, TiB and PiB using a base of 1024, such as 1 GiB = 1024 MiB
- Dual-standard comparison: Enter a value once to view conversion results under both decimal and binary standards
- Real-time calculation and unit highlighting: Results update automatically when you change the value, unit or conversion standard, with the input unit highlighted
- Quick values and practical examples: Includes common capacity values and reference examples for images, videos, games and hard drives
- Copy results: Copy an individual unit value or all conversion results from both standards at once
- Precision warnings: Very small values use significant digits or scientific notation; potential precision risks are flagged when values exceed JavaScript's safe integer range
- Local browser calculations: Conversions run in the current browser without uploading the entered file size values