Code · Made a little simpler

JSON Lines Validator and Fixer

Validate JSON Lines or NDJSON in your browser. See the source lines and columns, choose specific repairs and download the result with exact JSON number tokens.

Free to useNo account neededProcessed on your device
Your workspaceProcessed on your device
Repairs to allow

Add this tool to your website

Paste this code into your page to add the tool and a visible ToolMellow credit link.

HTML embed code
Preview embed

JSON Lines Validator and Fixer: how to use it

  1. Paste one JSON value per line, open a UTF-8 file or load the sample export.
  2. Validate the source. For the sample, select Remove blank lines and Remove trailing JSON commas, then validate again.
  3. Review the diagnostic line numbers and download the validated JSONL when all errors are resolved.

Limits and notes

Checks up to 2,097,152 UTF-16 code units, 100,000 lines and 128 nesting levels per record. The available repairs remove a leading BOM, blank lines and trailing commas. The download uses LF line separators and a final newline.

How your privacy works →

JSON Lines Validator and Fixer: common questions

Can a JSON Lines record be null or a number?

Each nonblank line can contain one JSON value, including an object, array, string, number, boolean or null.

Does the fixer round large IDs or remove duplicate keys?

The output keeps number tokens and both occurrences of repeated keys. A repeated key raises a warning because readers may choose different values.

Can I download just the valid lines from a mixed file?

The download becomes available after all invalid lines are resolved. An explicitly selected blank-line repair can remove records containing only JSON whitespace.

Guides