Private by default

NDJSON Record Formatter

Expand each JSON Lines record into an indented block for inspection. This readable view is not valid NDJSON: downloads use .txt, not .ndjson.

Your data stays in this browser
Input NDJSONNDJSON
UTF-8Ln 1, Col 1
ResultTEXT
UTF-8—
Loading…
Browser-only autosaveInputs and settings stay saved only in this browser and return after a reload. Turn on Clear saved data to keep this tool session-only.
Your data stays in this browser
InstantNo server round trips
PrivateBrowser-side processing
AuditableDocumented semantics
PortableCorrectly typed downloads
Category

NDJSON Formatter: How to use this tool

Pretty-print each NDJSON record with 2, 3, or 4-space indentation. Download readable text blocks; use NDJSON Minifier for one record per line.

Expand each JSON Lines record into an indented block for inspection. This readable view is not valid NDJSON: downloads use .txt, not .ndjson.

Open guide and examples

How to use this tool

  1. Paste one complete JSON value per line or upload an NDJSON / JSONL file.
  2. Run Format to pretty-print each record. Choose 2, 3, or 4-space indentation in Advanced settings.
  3. Review the result, then copy it or download it with the correct file type.

Example to try

Input NDJSON
{"id":1,"event":"created"}
{"id":2,"event":"updated","active":true}
["heartbeat",1712345678]
Result
{
  "id": 1,
  "event": "created"
}

{
  "id": 2,
  "event": "updated",
  "active": true
}

[
  "heartbeat",
  1712345678
]
Learn

Frequently asked questions

Does this tool upload my JSON?

No. The transformation runs in your browser. URL import contacts only the address you explicitly enter.

What happens when the JSON is invalid?

The editor marks the likely location and keeps stale output out of the result pane.

What does NDJSON Formatter produce?

Each valid record becomes a readable JSON block, separated from the next by a blank line. String contents, duplicate members, and number tokens are preserved. The input is not overwritten.

What limitation applies to NDJSON Formatter?

Pretty-printed record blocks are a readable text view, not an NDJSON file or a single JSON document. Use NDJSON Minifier for compact lines or NDJSON to JSON for a JSON array. Invalid records prevent partial output.