sitekits.dev
press ⌘K to switch tools
FORMAT & CONVERT

Data Format Converter — JSON, YAML, CSV

Convert data between JSON, YAML, and CSV formats.

local
data-converter
§01 ABOUT THIS TOOL

Overview

This tool converts structured data between three common formats: JSON, YAML, and CSV. It parses the input with the source format’s rules, then re-serializes the same data in the target format — JSON with 2-space indentation, YAML with 2-space indentation and no line wrapping, CSV with proper quoting of values that contain commas, quotes, or newlines.

How to use

  1. Pick the source format in the From select and the target in the To select (json, yaml, or csv).
  2. Paste your data into the Input textarea. Conversion happens as you type.
  3. Read or copy the result from the Output textarea. Parse errors appear above it.

Examples

  • JSON → YAML: [{"id":1,"name":"Alice"}]- id: 1 / name: Alice
  • CSV → JSON: id,name + 1,Alice[{"id": "1", "name": "Alice"}]
  • JSON → CSV: [{"a":1},{"a":2,"b":3}] → columns a,b with blanks for missing keys.

Notes

CSV values are always parsed as strings — numbers are not auto-typed on the CSV side. Round-tripping through CSV therefore loses type information, and nested structures cannot be expressed in CSV at all.

FAQ
Is my data uploaded when I convert it?
No. Parsing and serialization run entirely in your browser with js-yaml and a local CSV parser. Nothing is sent to any server.
How is CSV interpreted?
The first row is treated as the header, and each following row becomes an object whose keys are the trimmed header names. Converting to CSV requires the data to be an array of objects; the column set is the union of all object keys.
Why does converting to CSV sometimes fail?
CSV can only represent a flat table. If the parsed input is not an array of objects — for example a single object or deeply nested data — the tool reports "CSV output requires an array of objects".