Converters Tools

Convert between JSON, YAML, XML, CSV, and TypeScript.

Every converter in this category solves the same underlying problem — you have data in one structured format and need it in another — but the honest answer to "will this convert perfectly" is different for every pair, because JSON, YAML, XML, and CSV don't have the same expressive power. Converting down to a less expressive format always loses something; converting up from one usually requires inventing a convention to fill the gap.

JSON↔YAML is the closest to lossless of the group, since both are tree-structured with the same core types (objects/maps, arrays/sequences, strings, numbers, booleans, null) — key order is preserved in both directions, and the main thing that doesn't survive is YAML-only syntax like anchors/aliases or comments, since JSON has no analogous concept to encode them into. JSON↔XML is the lossiest pairing here: XML's attribute/element distinction and mixed content model don't map onto JSON's object/array/scalar model without a convention, so this tool folds attributes into @-prefixed keys and text content into a fixed key name — reasonable, but not the only convention that exists, so a round trip won't always reconstruct the original XML.

CSV↔JSON is the other shape entirely — CSV is flat and tabular where JSON can nest arbitrarily, so JSON to CSV only works cleanly on an array of flat(ish) objects, and nested objects or arrays inside a row get stringified rather than silently dropped. CSV to JSON adds delimiter detection and a header-row toggle so the common cases (comma vs. semicolon, first row as keys vs. positional) don't require manual configuration. CSV to SQL takes the same input one step further, generating INSERT statements with a table name you choose — useful for one-off data loads, though it doesn't infer a schema or column types beyond what's needed to quote values safely, so pair it with a real CREATE TABLE if you need actual typed columns (the Database category's SQL-to-ORM tools go the other direction, DDL to model, once you have one).