# JSONL Validator & Training-File Checker

> Validate JSON Lines line by line, check chat-format structure, and estimate what training on the file would cost.

This validator checks a JSON Lines file line by line, reporting the exact line number and cause of every parse failure, then applies the structural rules for chat training formats: role alternation, required first and last turns, and empty content. It also counts tokens per row, flags rows that exceed the training context, and reports which top-level keys are missing from which rows.

**URL:** https://convertto.tech/t/jsonl-validator
**Category:** AI & LLM Tools (https://convertto.tech/c/ai-tools)
**Privacy:** Runs entirely in the browser; no upload
**Cost:** Free, no sign-up
**Last updated:** 2026-08-01

## Key facts

- **Privacy:** Runs entirely in your browser — nothing is uploaded
- **Cost:** Free, unlimited, no sign-up

## How to use

1. Enter or paste your jsonl.
2. Choose the check as.
3. Set the warn over.
4. Choose the price against.
5. Press Run, then download the result when it is ready.

## FAQ

### Why does my file fail with "Unexpected end of JSON input"?

Almost always because the JSON was pretty-printed. JSONL requires each record to be one complete JSON value on one line — a multi-line object is valid JSON and invalid JSONL. Minify each record before writing it.

### Does a valid file mean training will work?

It means the file will be accepted. Whether the content teaches anything useful is a different question, and no validator can answer it. Consistent formatting, enough examples, and assistant turns that actually demonstrate the behaviour you want are what decide that.

## Sources

- [JSON Lines specification](https://jsonlines.org/) — jsonlines.org

## Related tools

- [Fine-Tuning Dataset Converter](https://convertto.tech/t/fine-tuning-dataset-converter): Convert training data between the six common chat formats, and validate the result against the rules the upload endpoints enforce.
- [JSON Formatter & Validator](https://convertto.tech/t/json-formatter): Format, validate, repair and analyse JSON — with errors that point at the exact line.
- [JSON Validator](https://convertto.tech/t/json-validator): Check whether JSON is valid, with the precise position of the error and what usually causes it.
- [Sample Dataset Generator](https://convertto.tech/t/sample-dataset-generator): Download ready-made sample datasets — users, orders, products, transactions — as CSV, JSON, SQL or Excel-ready TSV.
- [Chat Export Formatter](https://convertto.tech/t/chat-export-formatter): Drop in an exported conversations file and get clean Markdown, HTML or plain text — one document per conversation.
- [CSV Column Extractor](https://convertto.tech/t/csv-column-extractor): Pull selected columns out of a CSV by name or position, and reorder them.
- [Data Format Converter](https://convertto.tech/t/data-format-converter): Convert between JSON, YAML, XML, CSV, TSV and TOML in any direction, locally in your browser.
- [.env to JSON Converter](https://convertto.tech/t/env-to-json): Convert .env files to JSON and back — for config migrations and CI variables.
