Developer · DEV-01Submit an issue

JSON formatter & validator

Format, minify and validate JSON; check JSONL records and convert JSONL and JSON arrays.

JSON / JSONL · Validate and convert
Input
Output
Usage guide and examples

Format JSON and process JSONL records

Choose JSON formatting, JSONL validation and tidying, or conversion between JSONL and JSON arrays. Paste the data and optionally sort object keys recursively or skip blank JSONL lines. Check error line numbers and record counts, then copy or download JSON or JSONL.

Check the input format and options with this example before using your own data. Random values, file sizes and presentation vary with the input and settings.

Example input and settings

{"b":2,"a":1}
{"b":4,"a":3}
JSONL → JSON

What to check in the result

[
  {"b":2,"a":1},
  {"b":4,"a":3}
]
JSON syntax and formatting

Beautify JSON, minify it and check syntax

Paste JSON and choose Format or Minify. For line-delimited records, select JSONL validation or conversion between JSONL and a JSON array. Invalid JSONL reports the original line number.

01

Why does valid-looking JSON fail?

JSON requires double-quoted property names and strings. Comments and trailing commas are invalid. A JavaScript object literal is not necessarily valid JSON.

02

Does sorting keys reorder arrays?

Recursive key sorting sorts object properties, including objects inside arrays. Array item order is preserved. Use JSON Diff when you need to compare two documents instead of changing their layout.

03

Syntax validation is not schema validation

Valid syntax does not establish required fields or business rules. Use JSON Schema Validator for those checks. Numbers beyond the safe integer range can lose precision; represent identifiers as strings.