Bytes
Convert byte counts to human-readable size strings and parse them back into numerical values.
This server-side tool specializes in converting numerical byte counts into easily understandable size strings and vice-versa. It offers flexible support for both the 1024-based binary units (like KiB, MiB) and the 1000-based SI units (like kB, MB), making it adaptable for various data representation needs. It also intelligently handles loose unit notations (K, M, G, T) during parsing, treating them as binary by default.
Key Features
01Format byte counts into human-readable strings (e.g., '1.50 MB' from 1,500,000 bytes)
02Parse human-readable size strings back into numerical byte values (e.g., '2.5 GiB' to 2,684,354,560)
03Accepts loose units (K, M, G, T) for parsing, treating them as binary units
040 GitHub stars
05Support for both 1024-based binary units (KiB, MiB) and 1000-based SI units (kB, MB)
Use Cases
01Processing user input for data storage or transfer specifications
02Displaying file and data sizes in user-friendly formats within applications
03Standardizing byte unit conversions for data analytics or logging