How the Data Storage Converter Works
AnyTool Data Storage Converter performs every calculation in the browser. Each unit declares a single linear factor relative to a shared byte base — the exact number of bytes in one of that unit — so any unit converts to any other through bytes without an N-by-N table. A bit is 1/8 byte. Decimal (SI) prefixes are powers of 1000: 1 KB = 1000 B, 1 MB = 1e6 B, 1 GB = 1e9 B, 1 TB = 1e12 B, 1 PB = 1e15 B. Binary (IEC) prefixes are powers of 1024: 1 KiB = 1024 B, 1 MiB = 2²⁰ B, 1 GiB = 2³⁰ B, 1 TiB = 2⁴⁰ B, 1 PiB = 2⁵⁰ B. Network bit-rate units are decimal and measured in bits: 1 kbit = 125 B, 1 Mbit = 125,000 B, 1 Gbit = 125,000,000 B. A value is multiplied to bytes and then divided into the target unit.
- Fifteen units: bits, bytes, decimal KB–PB, binary KiB–PiB and bit-rate kbit/Mbit/Gbit
- The byte is the shared base; each unit is one exact factor
- Decimal prefixes step by 1000; binary prefixes step by 1024
- Editing either field converts both directions live
- All arithmetic is client-side JavaScript — no server round-trip
