JSON to JSONL converter
Fine-tuning uploads, batch API requests and log pipelines all want JSONL rather than a JSON array: one record per line, so a file can be streamed, appended or resumed without rewriting the whole thing. The conversion is trivial until a record does not parse, and then a single position offset tells you nothing.
Converting to JSONL accepts either a JSON array or existing JSONL and normalises both. Converting back parses line by line, so a failure reports the exact line number rather than an offset into the file.
Runs entirely in this tab. Nothing you paste is uploaded, logged or stored — close the page and it is gone.
Questions about this tool
What is the difference between JSONL and NDJSON?
Nothing meaningful — both are one JSON value per line with no enclosing array. The name changed depending on who was writing the spec; tooling accepts either.
Why does one bad line fail the whole conversion?
Because it reports rather than guesses. Silently skipping a malformed record is how a training set ends up quietly missing rows, which is worse than an error you can fix.
Are blank lines a problem?
No, they are ignored in both directions, so a file with a trailing newline converts cleanly.
AI alternatives from the directory
Browse coding tools →This utility handles the job by hand. These do it with a model — worth a look when the task outgrows copy and paste.
The AI-first code editor
Built on VS Code, Cursor offers codebase-aware chat, multi-file edits and fast autocomplete for real engineering work.
Your AI pair programmer
Inline suggestions, chat and agentic edits inside your IDE, backed by OpenAI and trained on public code.
Anthropic's terminal agent that edits whole repos
Claude Code runs in your shell, reads the repository, plans a change and applies multi-file edits with tests.