Data Format

Convert between JSON, YAML, TOML, CSV.

A free data-format converter between JSON, YAML and CSV, with extra outputs for minified JSON and TypeScript interfaces. It auto-detects the input and runs entirely in your browser.

How to use

  1. Paste JSON, YAML or CSV — leave the input on Auto or pick the format yourself.
  2. Choose an output: pretty JSON, minified JSON, YAML, CSV or a TS interface.
  3. Turn on Sort keys to order object keys alphabetically.
  4. Copy the result on the right.

FAQ

Which formats are supported?
Input accepts JSON / YAML / CSV; output covers pretty JSON, minified JSON, YAML, CSV and a TypeScript interface. CSV output needs an array of objects as input.
Is my data safe?
Yes. Parsing and conversion run in your browser; your data is never sent to a server.
Does it handle complex YAML?
It uses a lightweight parser covering common key/value, nesting and lists; advanced features like anchors or multi-document streams may not work — convert very complex files via JSON first.

Related tools