JSON Converter

Convert JSON to CSV, XML, YAML and vice versa.

Tool input is processed in your browser. The site uses visitor analytics; conversion operations do not send the input content.

JSON and YAML convert both ways, retaining numbers, booleans, arrays and null. Dates stay strings. Cycles, multiple documents and non-JSON values are not supported.

Conversion examples

JSON → CSV

Input (JSON)

[
  { "name": "Alice", "age": 28 },
  { "name": "Bob", "age": 31 }
]

Converted output (CSV)

name,age
Alice,28
Bob,31

JSON → XML

Input (JSON)

{
  "users": {
    "user": [
      {
        "name": "Alice",
        "age": 28
      },
      {
        "name": "Bob",
        "age": 31
      }
    ]
  }
}

Converted output (XML)

<users>
  <user>
    <name>Alice</name>
    <age>28</age>
  </user>
  <user>
    <name>Bob</name>
    <age>31</age>
  </user>
</users>

JSON → YAML

Input (JSON)

{
  "users": [
    {
      "name": "Alice",
      "age": 28
    },
    {
      "name": "Bob",
      "age": 31
    }
  ],
  "active": true
}

Converted output (YAML)

users:
  - name: Alice
    age: 28
  - name: Bob
    age: 31
active: true

Usage & Scenarios

JSON to CSV

Suitable for exporting JSON data to spreadsheet format (like Excel) for data analysis and viewing.

JSON to XML

Suitable for integration with legacy systems or using SOAP protocols, XML is a universal markup language.

JSON to YAML

YAML format is commonly used for configuration files (like Kubernetes config), it is more readable than JSON and supports comments.

CSV to JSON

Convert a CSV table with headers to an array of JSON objects. Cells remain strings to preserve identifiers and leading zeros.

XML to JSON

Convert XML nodes to JSON while retaining the root, attributes, text and repeated nodes. Useful for reading XML responses and configuration data.

YAML to JSON

Convert YAML configuration to JSON while retaining numbers, booleans, arrays and null for validation, comparison or queries.

Example

{
  "name": "JSON Master",
  "features": ["Format", "Validate", "Convert"],
  "active": true
}

Open Toolbox

JSON Converter - JSON ↔ CSV / XML / YAML | JSON Master