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
Sorted File Sizes
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 (1000): 1 KB = 1,000 bytes (commonly used for storage manufacturers)
Binary (1024): 1 KiB = 1,024 bytes (commonly used in operating systems)
Related Utils
Feedback
Help us improve this page by providing feedback, and include your name/email if you want us to reach back. Thank you in advance.
Sending...
Feedback sent. Thank you!
Error occurred!
-
-
-
-
-
-
-
-
-
- API Response
- ASCII Table
- Code Bug Detector
- Code Explanation
- CSS Beautifier
- Env Parser
- GraphQL Query
- Syntax Highlight
- HTML Beautifier
- JS Beautifier
- JSON Formatter
- JSONPath
- JWT Decoder
- JS keyCodes
- API Lorem Ipsum
- RegExp
- Regex Library
- Semver Compare
- SQL Beautifier
- TOML Formatter
- Code Unminifier
- XML Beautifier
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Amortization
- Break-Even
- Compound Interest
- Crypto Profit/Loss
- Debt Payoff
- Discount
- Effective Interest
- Emergency Fund
- Inflation Calculator
- Simple Interest
- Invoice Calculator
- IRR Calculator
- Mortgage
- NPV Calculator
- Portfolio
- Profit Margin
- Rent vs Buy
- Retirement Calc
- ROI Calculator
- Salary vs Hourly
- Savings Goal
- Tax Calculator
- VAT
-
-
-
-
-
-
-
-
-
- Equation Solver
- Exponent Calculator
- Factorial Calculator
- Fibonacci Sequence Generator
- Fraction Calculator
- Fraction Simplifier
- GCD Calculator
- GCD/LCM
- Least Common Multiple (LCM) Calculator
- Logarithm Calculator
- Magic Square
- Matrix Calculator
- Number Base Converter
- Pascal's Triangle
- Prime Number
- Prime Factorization
- Prime Number Checker
- Roman Numeral Converter
- Scientific Notation Converter
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Broken Link Checker
- Canonical URL
- Canonical URL Checker
- Core Web Vitals Checker
- Favicon
- Heading Structure
- Keyword Density
- Meta Tag Generator
- Meta Tag
- Mobile-Friendly Test
- Open Graph
- Open Graph Tag Generator
- Page Load Time Analyzer
- Redirect Checker
- robots.txt
- Robots.txt Analyzer
- Structured Data
- XML Sitemap
- Structured Data Generator
- Time on Page Tracker
- Page Title & Desc.
- Twitter Card Generator
- XML Sitemap Generator
-
-
-
-
-
-
- Acceleration
- Substance Amount
- Angle
- Area
- Astronomical
- Base Converter
- Capacitance
- Electric Charge
- Cooking
- Data Transfer
- Data Storage
- Density
- Energy Converter
- Force Converter
- Frequency Converter
- Fuel Economy
- Illuminance
- Inductance
- Length / Distance
- Power
- Pressure
- Electrical Resistance
- Time
- Speed
- Temperature
- Viscosity
- Volume
- Weight
-
-
-
-