Конвертация
Локально · нулевая загрузка

Конвертер NDJSON / JSONL

Lines ↔ array · Validate rows · Local

Конвертация YAML

Готово

Исходный ввод

                                
                            
Вывод разбора

                                
Фиксированная высота, длинный код прокручивается внутри

ABOUT

About Конвертер NDJSON / JSONL

NDJSON (JSON Lines) is one JSON value per line. This page converts a line stream to an array, an array back to lines, or reports which lines fail to parse.

Use it for log exports, eval sets, and streaming APIs. Formatter still treats input as a single document.

DEEP DIVE

Конвертер NDJSON / JSONL

LLM fine-tunes and Elasticsearch dumps often arrive as .jsonl. Pasting that into Formatter fails because two objects cannot sit side by side in one JSON text.

Validate mode lists line numbers and parse errors. Samples use fictional order ids (A-1042), never live secrets.

FEATURES

Конвертер NDJSON / JSONL

01

JSONL → JSON

Skip empty lines; emit a JSON array.

02

JSON → JSONL

Each array element becomes one compact line.

03

Validate lines

Report line number and parse error.

04

Local files

Drag .ndjson / .jsonl — nothing is uploaded.

05

Not Formatter

Single-document beautify stays on the Formatter page.

06

Pairs with Flatten

Flatten objects after you have an array.

HOW TO USE

How to use

  1. 1

    Paste JSONL or a JSON array.

  2. 2

    Pick JSONL → JSON, JSON → JSONL, or Validate lines.

  3. 3

    Fix any reported bad line.

  4. 4

    Copy or export the result.

FAQ

FAQ

Is this JSON Formatter?

No. Formatter parses one document. This page is one value per line.

Are blank lines errors?

They are skipped.

Can a line be an array or number?

Yes. Each line is any JSON value.

Do you keep key order?

JSON.stringify uses engine defaults; treat this as a data conversion, not pretty-print.

Is data uploaded?

No.

What about concatenated JSON without newlines?

Use Formatter Auto Fix for glued objects; this page expects line breaks.

Скопировано в буфер обмена