CSV ↔ JSON Converter

CSV ↔ JSON Converter

Convert CSV to JSON objects, or JSON arrays to CSV. The result updates as you type.

Free
No signup
Instant
Private
Input
0 words • 0 characters • 0 without spaces • 0 lines
Direction
Convert to
Output
0 words • 0 characters • 0 without spaces • 0 lines

Private by design

This conversion runs entirely in your browser. Your text is not sent to a server.

Tip

YAML → JSON and XML → JSON keep nested structure. CSV expects a header row, or a JSON array of objects the other way.

How to convert with CSV ↔ JSON Converter

  1. Paste YAML, XML, or CSV (or JSON for the reverse direction).

  2. The converted result updates as you type — nothing is uploaded.

  3. Pick a direction, or Convert to to open YAML, XML, or CSV.

  4. Copy the result. Invalid input shows an error instead of output.

When should you use it?

  • YAML

    Turn config files into JSON, or JSON back into YAML.

  • XML

    Map elements to objects, or objects back to elements.

  • CSV

    Use the header row as keys, or emit a table from objects.

  • Stays here

    Spreadsheets and configs never leave this tab.

Your data stays private.

YAML, XML, and CSV conversion run entirely in your browser.

Learn more about privacy →

About converting YAML, XML, and CSV with JSON

YAML ↔ JSON, XML ↔ JSON, and CSV ↔ JSON share this family. YAML and XML keep nested structure. CSV expects a header row, or a JSON array of objects the other way. Invalid input shows an error instead of a guessed document. Convert to jumps between YAML, XML, and CSV.

Worked example: a YAML mapping with nested keys becomes a JSON object; a two-column CSV with a header becomes an array of objects. XML attributes and repeated tags follow the converter’s mapping — inspect the result before you ship it.

Related: JSON Formatter to pretty-print, XML Formatter if you only need indent, SQL Formatter for queries. Nothing is uploaded. These are not database migrations.

Related data tools

CSV ↔ JSON Converter examples

CSV → JSON

Input
name,age Ada,36 Lin,41
Output
[ { "name": "Ada", "age": "36" }, { "name": "Lin", "age": "41" } ]

Data converters

ToolExampleTypical use
YAML{ "name": "Ada" }Configs and documents as JSON
XML{ "user": { "name": "Ada" } }Nested tags as JSON objects
CSV[{ "name": "Ada" }]Tables as an array of objects

CSV ↔ JSON Converter FAQ

Paste CSV with a header row, choose CSV → JSON, and run the tool. Each data row becomes a JSON object.

Provide a JSON array of objects. Keys become CSV headers and values become cells.