File Size Sorter
Sort file sizes in various units (B, KB, MB, GB, TB) with automatic unit detection and conversion.
Input File Sizes
Sort Options
1 KB = 1000 or 1024 bytes?
Sorted File Sizes
Total Files
-
Total Size
-
Duplicates Removed
-
Sort Order
-
About File Size Sorting
The File Size Sorter properly sorts file sizes by their actual byte value, not alphabetically. It recognizes various units (B, KB, MB, GB, TB), handles both decimal (1000) and binary (1024) unit systems, and can convert all sizes to a consistent format.
Features
- Automatic Unit Detection: Recognizes B, KB, MB, GB, TB, PB units
- Mixed Units Support: Sort files with different units in the same list
- Unit Conversion: Convert all sizes to a consistent output format
- Binary/Decimal Support: Handle both 1000-based and 1024-based units
- Total Calculation: Optionally display total size of all files
- Duplicate Removal: Option to remove duplicate file sizes
- Smart Formatting: Auto-format to the most appropriate unit
Supported Formats
1024 Bor1024 bytes- Bytes1.5 KBor1.5 KiB- Kilobytes500 MBor500 MiB- Megabytes2.3 GBor2.3 GiB- Gigabytes1.8 TBor1.8 TiB- Terabytes5000000- Numbers without units (assumed bytes)
Common Use Cases
- Sort file listings from disk usage reports
- Organize backup sizes for storage planning
- Compare database sizes across environments
- Sort log file sizes for cleanup
- Analyze disk space usage reports
- Order download sizes in documentation
How to Use
- Input file sizes via text input, file upload, or URL (one per line)
- Select sort order (smallest first or largest first)
- Choose output format (keep original or convert to specific unit)
- Select unit type (decimal 1000-based or binary 1024-based)
- Optionally remove duplicates or show total size
- Click "Sort Sizes" to process your data
- Copy the results or download as a text file
Decimal vs Binary:
Decimal (1000): 1 KB = 1,000 bytes (commonly used for storage manufacturers)
Binary (1024): 1 KiB = 1,024 bytes (commonly used in operating systems)
Decimal (1000): 1 KB = 1,000 bytes (commonly used for storage manufacturers)
Binary (1024): 1 KiB = 1,024 bytes (commonly used in operating systems)
Related Tools
Feedback
Help us improve this page by providing feedback:
Sending...
Feedback sent. Thank you!
Error occurred!
-
-
-
-
-
-
-
-
- Acceleration
- Amount of Substance
- Angle
- Area
- Astronomical
- Blood Sugar
- Body Mass Index
- Capacitance
- Electric Charge
- Cooking
- Data Transfer
- Data Storage
- Density
- Energy and Work
- Force
- Fuel Economy
- Illuminance
- Inductance
- Length
- Power
- Pressure
- Electrical Resistance
- Time
- Speed
- Temperature
- Viscosity
- Volume
- Weight
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-