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.
Data conversion tools help turn structured text into the format you need without publishing your input or routing it through an account system.
Paste a spreadsheet export and get a JSON array of objects, with the odd rows pointed out…
Hand it an API response and get a spreadsheet: nested fields become columns, and the wrapper…
A strict XML reader that keeps attributes, CDATA and namespaces, and stops at the exact…
Resolves anchors and merge keys so you can see the data your YAML really means, with…
Clean, readable YAML where strings that could be misread are quoted, so reading it back gives…
Well-formed XML from JSON, with @ keys for attributes, one root element, and a notice when a…
Spreadsheet rows become a YAML list of mappings, typed by column, with codes and odd strings…
Takes a list buried in a YAML file and lays it out as a table, with nested fields as their own…
Swaps commas for tabs properly, so a quoted cell stays one cell, and you decide what happens to…
Tab-separated text in, standards-compliant CSV out, with commas quoted and a choice for how to…
Turn a CSV into INSERT statements escaped for your database, with an optional CREATE TABLE and…
Generates interfaces from a sample response, reading every item in a list so optional fields…
Writes a draft 2020-12 or draft 7 schema from sample JSON, merging list items so required keys…
Collapses nested JSON into one level of paths such as user.address.city, with a warning if two…
Turns keys such as user.address.city and roles[0] back into nested objects and lists, and…
Finds the repeating element in your XML and turns each one into a row, with attributes and…
Turns spreadsheet rows into well-formed XML with element names you choose, as child elements or…
Copy cells from a spreadsheet, paste them here, and get typed JSON records with no export step…
A list of JSON records becomes INSERT statements, with columns gathered from every record and…
CSV suits flat tables that will end up in a spreadsheet or a database import. JSON suits nested data and anything going to or from an API. YAML is for configuration that people edit by hand. XML is what you will meet when working with older systems, feeds and many enterprise integrations.
Conversions from nested data to flat tables need a decision about what to do with the nesting. JSON to CSV and the JSON Flattener handle this differently, so it is worth checking the output on a small sample first.
Beyond format changes, you can generate code from data: JSON to TypeScript writes types from a sample, JSON to JSON Schema writes a validation schema, and CSV to SQL writes insert statements. Treat generated code as a first draft, because one sample cannot reveal every case your real data will contain.
Because this all runs in your browser, customer lists and internal exports stay on your machine.
Yes. Data tools surface parsing errors and warnings instead of silently changing malformed input. Invalid JSON, YAML, or CSV produces a clear error message.
Conversions between text-based formats (CSV, JSON, YAML, XML) are lossless for well-formed input. Type coercion notes are shown where values are automatically interpreted.
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