JL

JSONL 转换

JSON 数组与 JSON Lines 互转

🔒 100% client-side — your data never leaves this page
Input
Output
Converted output will appear here
🔒 100% client-side

About this tool

支持 JSON 数组与 JSONL(JSON Lines/NDJSON)双向转换,并自动识别输入方向。适用于日志处理、数据管道、模型训练数据整理、导入导出预处理等场景,输出结果可直接复制到脚本或命令行。

Frequently Asked Questions

What is the difference between JSON and JSONL?

JSONL stores one JSON object per line, while JSON array stores all objects inside one array structure.

Can this convert NDJSON?

Yes. NDJSON is line-delimited JSON and is compatible with JSONL conversion here.

Why does conversion fail on some lines?

Any invalid JSON line causes parsing errors. Make sure each non-empty line is valid JSON.