변환
로컬 실행 · 업로드 없음

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.

클립보드에 복사됨