{"uid":"cap_1DDMVJU2gf2CKsVVQc73C","slug":"fastx402-byte-size-parser-3827b00e","name":"FastX402 Byte Size Parser","description":"146 pay-per-call tools for AI agents, from $0.001 per request in USDC on Base or Solana with x402. No account, no API key.","url":"https://fastx402.tools/byte-size-parse?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["size"],"properties":{"size":{"type":"string","description":"Human-readable size such as 1.5 MiB, 800 KB, 42 bytes. Units: B, KB..PB (decimal), KiB..PiB (binary). A bare number means bytes."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"si":{"type":"string"},"iec":{"type":"string"},"unit":{"type":"string"},"bytes":{"type":"integer"},"input":{"type":"string"},"system":{"type":"string"}}}}}}},"responseSchema":{"type":"json","example":{"si":"1.573 MB","iec":"1.5 MiB","unit":"MiB","bytes":1572864,"input":"1.5 MiB","system":"IEC"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_uF_DfJ5m58csh5PnYd76h","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Parses a human-readable byte size string (e.g. '1.5 MiB', '800 KB') and returns its canonical SI and IEC representations along with the exact byte count.","exampleAgentPrompt":"How many bytes is 1.5 MiB, and what does that look like in SI units (MB)?","exampleUseCases":[{"title":"Normalizing file sizes from user input","prompt":"A user typed '2.3 GiB' as an upload limit — can you parse that into an exact byte count and give me both the SI (GB) and IEC (GiB) representations?"},{"title":"Storage quota comparison across systems","prompt":"I have two systems reporting sizes differently: one says '1.5 TB' and another says '1.4 TiB' — parse both and tell me the exact byte counts so I can compare them."},{"title":"Validating size strings in a data pipeline","prompt":"My pipeline received the string '500 MB' from a user config — parse it into bytes and confirm whether it's using SI or IEC units so I can apply the right conversion downstream."}],"resultDescription":"Returns a JSON object with: `bytes` (exact integer byte count), `si` (SI-formatted string, e.g. '1.573 MB'), `iec` (IEC-formatted string, e.g. '1.5 MiB'), `unit` (detected unit, e.g. 'MiB'), `system` (detected system, 'SI' or 'IEC'), and `input` (the original input string).","failureModes":["Missing `size` query parameter returns an error","Unrecognized unit suffix (e.g. 'ZZB') causes a parse failure","Negative or zero values may be rejected","Extremely large numbers beyond supported range may fail","Malformed input like '1.5 MBKB' returns an error"],"whenToPreferThis":"Use this endpoint when you need to programmatically parse a human-readable byte size string into an exact integer byte count and get both SI and IEC canonical representations. It handles ambiguous unit prefixes (KB vs KiB, MB vs MiB) correctly, making it ideal for data pipelines, storage quota systems, or any agent that receives user-supplied file size strings and needs normalized, unambiguous values.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-17T12:41:01.730Z","isFirstParty":false,"canonicalSlug":"fastx402-byte-size-parser-3827b00e"}