CSV vs JSON: Structure, Types, Size and When to Use Each
CSV is smaller and opens in Excel. JSON keeps types and nesting. Measured file sizes, streaming trade-offs, and a clear pick for each common situation.
Practical guides for converting structured data between formats: CSV, JSON, XML, YAML, TSV, SQL INSERT statements, TypeScript interfaces, and JSON Schema, all without uploading files to any server.
CSV is smaller and opens in Excel. JSON keeps types and nesting. Measured file sizes, streaming trade-offs, and a clear pick for each common situation.
The three CSV escaping rules, why line breaks inside fields break naive parsers, what Excel does to your data, and the bugs that come from each of them.
JSON Schema describes what valid JSON looks like. See a tested schema with real validator errors, what the drafts changed, its limits, and when to skip it.
Why NO becomes false, 1.10 becomes 1.1 and 12:30:00 becomes 45000 in YAML, tested on real parsers, plus the YAML 1.1 versus 1.2 split and safe quoting rules.
Your privacy choice
We use cookies for analytics and ads. Files and text you use in our tools are never part of this. Cookie policy