JSON Formatter and Validator, With YAML and CSV Conversion

Paste JSON to format it for easy reading, find errors by line and column, minify it, or convert it to YAML or CSV. All in your browser, so your data goes nowhere.

Format now
data.json{ "name": "Hyyat", "services": [ "hosting", "vps" ], "active": true}Valid JSONYAML CSV

Formatter

How the tool works

Simple steps, all in your browser with no sign-up.

Paste JSON

From any API or file.

See errors

By line and column.

Copy or convert

Pretty, minified, YAML or CSV.

Common JSON errors

ErrorExampleCorrect
Trailing comma[1, 2,][1, 2]
Single quotes{'a': 1}{"a": 1}
Unquoted key{a: 1}{"a": 1}
Comments// noteJSON has no comments
Unsupported valuesundefinednull

When to use each format

FormatBest for
JSONAPIs and JavaScript config files
YAMLHuman-written config such as Docker Compose
CSVTables you open in Excel or Google Sheets

Building a Docker file? Try the Docker Compose generator. Writing structured data? Use the Schema generator.

Reading JSON in the terminal and code

CommandWhat it does
curl -s URL | python3 -m json.toolPretty-print an API response
curl -s URL | jq '.items[0]'Extract part of a response with jq
json_decode($s, true)PHP: text to array
JSON.parse(s)JavaScript: text to object
json.loads(s)Python: text to dict

Key terms

Short definitions of what you meet along the way.

JSON
A text format for exchanging data between programs, made of objects {}, arrays [] and values.
YAML
A config format using indentation instead of brackets, easier to read.
CSV
A text table: each line a row, values separated by commas.

Frequently asked questions

Did not find your answer? Ask us on WhatsApp

Is my data sent to your server?

No. Formatting and conversion happen only in your browser, so sensitive data is safe.

Is Arabic text kept intact?

Yes, text stays as is and is not turned into \u escapes.

How is nested JSON turned into CSV?

Each object becomes a row, and nested values are written as JSON text inside the cell.

Building an app or API?

We build custom systems and APIs for your business.

Contact us on WhatsApp