Code Formatting

JSON Lines Validator

Validate and normalize JSONL/NDJSON line by line or convert it to a JSON array.

JSON Lines / NDJSON
Each non-empty line must contain one complete JSON value.
0Non-empty lines
0Valid lines
0Invalid lines
0Input characters
Validation and output
Output will appear here after validation.

JSON Lines Validation

JSONL, also called NDJSON, stores one complete JSON value per non-empty line. This tool reports line-level errors and produces normalized JSONL or a regular JSON array.

Boundaries

  • Blank lines are ignored
  • A single JSON value cannot span multiple lines
  • Object keys can be sorted recursively without reordering arrays