{"success":true,"version":"v1","request":{"tool":"get_calculator_schema","calculator_id":"data-storage"},"result":{"entity_type":"calculator","id":"data-storage","calculator_id":"data-storage","canonical_url":"https://tttkmbb.com/conversion/data-storage","name":"Data Storage Converter","title":"Data Storage Converter – Bits, Bytes, KB, MB, GB, TB and Binary KiB, MiB, GiB","category":"conversion","category_name":"Unit Conversion","tool_name":"convert_data_storage","featured_mcp_tool":false,"description":"Converts digital storage and transfer sizes between bits, bytes, decimal SI multiples (KB = 1000 B, MB, GB, TB, PB), binary IEC multiples (KiB = 1024 B, MiB, GiB, TiB, PiB) and kilobit/megabit/gigabit/terabit.","use_when":"You need a file, disk or memory size in another unit, e.g. GB to GiB, MB to bits or TB to GB, or want to explain why a '1 TB' drive shows as 931 GiB.","do_not_use_when":"You need transfer time from size and bandwidth (use download-time) or a number in binary/hex (use base-converter).","inputs":[{"name":"value","label":"Value","type":"number","required":true,"description":"Amount to convert, expressed in from_unit.","example":1},{"name":"from_unit","label":"From unit","type":"enum","required":true,"values":[{"value":"bit","label":"Bit (bit)","aliases":["bits"]},{"value":"B","label":"Byte (B)","aliases":["byte","bytes"]},{"value":"KB","label":"Kilobyte (KB)","aliases":["kilobyte","kilobytes"]},{"value":"MB","label":"Megabyte (MB)","aliases":["megabyte","megabytes"]},{"value":"GB","label":"Gigabyte (GB)","aliases":["gigabyte","gigabytes"]},{"value":"TB","label":"Terabyte (TB)","aliases":["terabyte","terabytes"]},{"value":"PB","label":"Petabyte (PB)","aliases":["petabyte","petabytes"]},{"value":"KiB","label":"Kibibyte (KiB)","aliases":["kibibyte","kibibytes"]},{"value":"MiB","label":"Mebibyte (MiB)","aliases":["mebibyte","mebibytes"]},{"value":"GiB","label":"Gibibyte (GiB)","aliases":["gibibyte","gibibytes"]},{"value":"TiB","label":"Tebibyte (TiB)","aliases":["tebibyte","tebibytes"]},{"value":"PiB","label":"Pebibyte (PiB)","aliases":["pebibyte","pebibytes"]},{"value":"kbit","label":"Kilobit (kbit)","aliases":["kilobit","kilobits"]},{"value":"Mbit","label":"Megabit (Mbit)","aliases":["megabit","megabits"]},{"value":"Gbit","label":"Gigabit (Gbit)","aliases":["gigabit","gigabits"]},{"value":"Tbit","label":"Terabit (Tbit)","aliases":["terabit","terabits"]}],"description":"Unit of the input value. Accepted symbols: bit, B, KB, MB, GB, TB, PB, KiB, MiB, GiB, TiB, PiB, kbit, Mbit, Gbit, Tbit; spelled-out names and common abbreviations are accepted too.","example":"GB"},{"name":"to_unit","label":"To unit","type":"enum","required":true,"values":[{"value":"bit","label":"Bit (bit)","aliases":["bits"]},{"value":"B","label":"Byte (B)","aliases":["byte","bytes"]},{"value":"KB","label":"Kilobyte (KB)","aliases":["kilobyte","kilobytes"]},{"value":"MB","label":"Megabyte (MB)","aliases":["megabyte","megabytes"]},{"value":"GB","label":"Gigabyte (GB)","aliases":["gigabyte","gigabytes"]},{"value":"TB","label":"Terabyte (TB)","aliases":["terabyte","terabytes"]},{"value":"PB","label":"Petabyte (PB)","aliases":["petabyte","petabytes"]},{"value":"KiB","label":"Kibibyte (KiB)","aliases":["kibibyte","kibibytes"]},{"value":"MiB","label":"Mebibyte (MiB)","aliases":["mebibyte","mebibytes"]},{"value":"GiB","label":"Gibibyte (GiB)","aliases":["gibibyte","gibibytes"]},{"value":"TiB","label":"Tebibyte (TiB)","aliases":["tebibyte","tebibytes"]},{"value":"PiB","label":"Pebibyte (PiB)","aliases":["pebibyte","pebibytes"]},{"value":"kbit","label":"Kilobit (kbit)","aliases":["kilobit","kilobits"]},{"value":"Mbit","label":"Megabit (Mbit)","aliases":["megabit","megabits"]},{"value":"Gbit","label":"Gigabit (Gbit)","aliases":["gigabit","gigabits"]},{"value":"Tbit","label":"Terabit (Tbit)","aliases":["terabit","terabits"]}],"description":"Unit to convert into (same symbols as from_unit).","example":"GiB"}],"outputs":[{"name":"result","label":"Result","type":"number","decimals":6,"description":"Converted value expressed in to_unit (rounded to 6 decimals; see result_text for very small or very large values)."},{"name":"result_text","label":"Conversion","type":"string","decimals":4,"description":"The conversion as text with 6 significant figures, e.g. \"5 mi = 8.04672 km\"."},{"name":"formula","label":"Unit relation","type":"string","decimals":4,"description":"Relation used, e.g. \"1 mi = 1.609344 km\"."},{"name":"factor","label":"Factor","type":"number","decimals":12,"description":"Multiplier from from_unit to to_unit (result = value × factor); absent for non-linear conversions."},{"name":"conversion_table","label":"Conversion table","type":"object","decimals":12,"description":"The input value expressed in every supported data storage unit (6 significant figures), keyed by unit symbol."}],"input_schema":{"type":"object","properties":{"value":{"description":"Amount to convert, expressed in from_unit.","type":"number","examples":[1]},"from_unit":{"description":"Unit of the input value. Accepted symbols: bit, B, KB, MB, GB, TB, PB, KiB, MiB, GiB, TiB, PiB, kbit, Mbit, Gbit, Tbit; spelled-out names and common abbreviations are accepted too.","type":"string","enum":["bit","B","KB","MB","GB","TB","PB","KiB","MiB","GiB","TiB","PiB","kbit","Mbit","Gbit","Tbit"],"examples":["GB"]},"to_unit":{"description":"Unit to convert into (same symbols as from_unit).","type":"string","enum":["bit","B","KB","MB","GB","TB","PB","KiB","MiB","GiB","TiB","PiB","kbit","Mbit","Gbit","Tbit"],"examples":["GiB"]}},"additionalProperties":false,"required":["value","from_unit","to_unit"]},"output_schema":{"type":"object","properties":{"result":{"description":"Converted value expressed in to_unit (rounded to 6 decimals; see result_text for very small or very large values).","type":"number"},"result_text":{"description":"The conversion as text with 6 significant figures, e.g. \"5 mi = 8.04672 km\".","type":"string"},"formula":{"description":"Relation used, e.g. \"1 mi = 1.609344 km\".","type":"string"},"factor":{"description":"Multiplier from from_unit to to_unit (result = value × factor); absent for non-linear conversions.","type":"number"},"conversion_table":{"description":"The input value expressed in every supported data storage unit (6 significant figures), keyed by unit symbol.","type":"object"}}},"formula":"result = value × factor, factor = (1 from_unit in B) / (1 to_unit in B)","method":"KB/MB/GB/TB/PB follow the SI decimal prefixes (powers of 1000, as used by drive manufacturers and IEC 80000-13); KiB/MiB/GiB/TiB/PiB are binary (powers of 1024, as most operating systems report). 1 byte = 8 bits.","sources":[{"name":"NIST – Metric (SI) Prefixes","url":"https://www.nist.gov/pml/owm/metric-si-prefixes","type":"standard","retrieved_at":"2026-09-23"},{"name":"Wikipedia – Binary prefix (IEC 80000-13 kibi/mebi/gibi)","url":"https://en.wikipedia.org/wiki/Binary_prefix","type":"reference","retrieved_at":"2026-09-23"},{"name":"Wikipedia – Conversion of units","url":"https://en.wikipedia.org/wiki/Conversion_of_units","type":"reference","retrieved_at":"2026-09-23"}],"freshness":{"type":"static","max_age_seconds":null,"note":"Deterministic formula with fixed constants; results never go stale. Inputs supplied by the caller determine the output."},"examples":[{"name":"1 GB to GiB","inputs":{"value":1,"from_unit":"GB","to_unit":"GiB"},"expected":{"result":0.931323,"formula":"1 GB = 0.9313225746 GiB","conversion_table":{"MB":1000,"MiB":953.674,"bit":8000000000}},"url":"https://tttkmbb.com/api/v1/calculate/data-storage?value=1&from_unit=GB&to_unit=GiB"},{"name":"500 MB to megabits","inputs":{"value":500,"from_unit":"MB","to_unit":"Mbit"},"expected":{"result":4000,"factor":8,"conversion_table":{"GB":0.5,"MiB":476.837}},"url":"https://tttkmbb.com/api/v1/calculate/data-storage?value=500&from_unit=MB&to_unit=Mbit"}],"faq":[{"q":"Is 1 KB 1000 or 1024 bytes?","a":"Here KB = 1000 bytes (SI) and KiB = 1024 bytes (IEC). Windows labels 1024-byte units as 'KB', which is why a 1 TB (10^12 B) drive shows as 931 GiB."},{"q":"How do I enter megabits?","a":"Use Mbit, kbit, Gbit or Tbit (or 'megabits'). Bandwidth figures such as 100 Mbps are megabits per second; divide by 8 for MB per second."}],"tags":["data storage converter","gb to gib","mb to kb","bytes to bits","megabits to megabytes","tb to gb"],"related":[{"calculator_id":"download-time","reason":"Time to transfer a file at a given bandwidth."},{"calculator_id":"base-converter","reason":"Convert numbers between binary, decimal and hexadecimal."}],"links":{"html":"https://tttkmbb.com/conversion/data-storage","markdown":"https://tttkmbb.com/conversion/data-storage.md","json":"https://tttkmbb.com/conversion/data-storage.json","api":"https://tttkmbb.com/api/v1/calculate/data-storage","schema":"https://tttkmbb.com/api/v1/calculators/data-storage","openapi":"https://tttkmbb.com/openapi.json","mcp":"https://tttkmbb.com/mcp"},"version":"v1","updated_at":"2026-09-23"},"timestamp":"2026-09-23T23:24:09Z","next_actions":[{"tool":"run_calculator","calculator_id":"data-storage","reason":"Run Data Storage Converter with the inputs above."}],"links":{"markdown":"https://tttkmbb.com/conversion/data-storage.md"}}