Data Size Converter
Convert bytes between decimal units (KB, MB, GB, TB) and binary units (KiB, MiB, GiB, TiB). See why a 500 GB disk shows up as 465 GiB. The math runs in the tab.
Runs in your browser. Nothing is uploaded.
Enter a size to see it in decimal (KB, MB) and binary (KiB, MiB) units. A bare number is read as bytes.
About this tool
Convert a byte count between decimal units (KB, MB, GB, TB, PB, powers of 1000) and binary units (KiB, MiB, GiB, TiB, PiB, powers of 1024). Disk makers use the first, and many operating systems and tools report the second.
How to use: type 1.5 GiB, 500 MB, or a bare number of bytes. Every unit appears in its own card with a copy button. Units are case-insensitive, so mb and MB both mean megabytes.
Example: 500 GB is 500000000000 bytes, which is about 465.66 GiB. That gap is why a new drive looks smaller than the box says. Bits are out of scope, so divide network speeds in Mbps by 8 first.
Math is local. Related: string length for the UTF-8 byte size of a pasted string. After load, converting works offline.
Related Convert tools
JSON ↔ YAML
Convert JSON to YAML and YAML back to JSON in the browser. Paste a config, Kubernetes snippet, or API fixture and copy the other format. Parsing uses js-yaml locally. Documents are never posted to a converter.
JSON ↔ TOML
Convert JSON objects to TOML and TOML documents back to JSON in the browser. Handy for Cargo.toml, pyproject, and app config fragments. Parsing stays on-device.
JSON ↔ XML
Convert JSON objects to XML and XML documents back to JSON. Useful for SOAP leftovers, RSS, and mixed API stacks. XML is parsed with the browser DOMParser so payloads stay on the device.
JSON ↔ CSV
Turn an array of JSON objects into CSV, or parse CSV headers into JSON objects. Quote-aware parsing runs in the tab so spreadsheets of IDs and emails are not uploaded to a conversion service.
JSON to SQL
Turn a JSON object or array of objects into SQL INSERT statements. Set a table name, copy the query, and keep rows on the device instead of pasting fixtures into a hosted converter.
CSV ↔ TSV
Convert comma-separated values to tab-separated values and back, preserving quoted fields. A small delimiter swap for dumps you would rather not paste into a spreadsheet SaaS.