JSON formatter and validator

Input format

Output format

Enter something to see the result.

Validate against JSON Schema

Paste a schema, or use the one generated from your data.

Help & info

About this tool

Paste JSON, YAML, TOML, XML or CSV; the format is detected automatically. Format with 2 or 4 spaces or a tab, minify onto one line, or sort all keys. If the text is invalid, the tool shows the line and column of the error and can jump to it. Choose another output format to convert, or JSON Schema to describe the data. Everything is processed in your browser.

Good to know

JSON needs double quotes around keys and strings, no trailing commas and no comments. Very large numbers may lose precision, because JSON numbers are read as floating point values.

More tools