File Size Converter
Convert digital storage values between bytes, kilobytes, megabytes, gigabytes, terabytes, and petabytes. Toggle between binary (1024) and decimal (1000) modes to match the convention used by your operating system, drive manufacturer, or network provider.
File Size Converter
| Unit | Symbol | Value |
|---|
What is a File Size Converter?
A file size converter translates digital storage quantities between different units of measurement, such as bytes, kilobytes, megabytes, gigabytes, terabytes, and petabytes. Because digital data spans an enormous range — from a single text character to entire data center archives — we use scaled units to keep numbers readable. This converter handles every common unit and lets you switch between the two competing conventions that govern how those units are defined.
The byte is the fundamental building block of digital storage, typically representing a single character of text or eight binary bits. A typical email might be a few kilobytes, a song a few megabytes, a feature film several gigabytes, and a hard drive several terabytes. As data volumes grow with higher-resolution media, larger databases, and cloud backups, units like terabytes and petabytes have become part of everyday vocabulary.
The complication with file size units is that two definitions coexist. The decimal system, favored by storage manufacturers, defines each successive unit as 1,000 times the previous one, matching the metric prefixes used in science. The binary system, favored by operating systems, uses 1,024 because computers work naturally with powers of two. The result is that a "1 TB" drive shows up as about 931 GB in your file explorer — both numbers describe the same physical storage, just using different conventions.
This converter removes that ambiguity. By toggling between binary (1,024) and decimal (1,000) modes, you can replicate the calculation performed by any software, advertisement, or technical specification. Whether you are buying storage, sizing a cloud upload, estimating bandwidth needs, or learning computer science, accurate unit conversion is essential for making sense of digital quantities.
How File Size Conversion Works
Each unit is a power of the base multiplier. To convert from one unit to another, multiply or divide by the base raised to the power of the difference in unit levels. The base is 1,024 in binary mode and 1,000 in decimal mode.
Convert 5 MB to bytes (binary mode, base 1024):
MB is 2 levels above bytes, so multiply by 1024².
5 × 1024 × 1024 = 5 × 1,048,576 = 5,242,880 bytes
Convert 5 MB to bytes (decimal mode, base 1000):
5 × 1000 × 1000 = 5,000,000 bytes
How to Use This File Size Converter
- Enter your value: Type any positive number, including decimals, in the value field.
- Choose the source unit: Select the unit your value is currently expressed in (B, KB, MB, GB, TB, or PB).
- Pick a mode: Toggle between binary (1,024) and decimal (1,000) to match the convention you need.
- Read the results table: All six unit representations are computed and displayed simultaneously for quick comparison.
- Switch modes on the fly: Changing the mode instantly recalculates every value in the table, so you can compare conventions side by side.