Private by default

NDJSON Minifier — One Record per Line

Remove insignificant whitespace while keeping one complete JSON value per line. This tool produces compact NDJSON, not multi-line pretty-printed records.

Your data stays in this browser
Input NDJSONNDJSON
UTF-8Ln 1, Col 1
ResultNDJSON
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 Minifier: How to use this tool

Minify NDJSON into compact JSON Lines while preserving string contents, number tokens, and record order. Validate each line and remove ignored blank lines.

Remove insignificant whitespace while keeping one complete JSON value per line. This tool produces compact NDJSON, not multi-line pretty-printed records.

Open guide and examples

How to use this tool

  1. Paste one complete JSON value per line or upload NDJSON / JSONL.
  2. Run Minify to validate records and produce compact one-record-per-line output.
  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 Minifier produce?

The output preserves record order, string whitespace, escape sequences, duplicate object members, and number tokens. Blank lines are removed and counted.

What limitation applies to NDJSON Minifier?

Each input record must already be valid JSON on one physical line. Invalid records prevent partial output. Minification removes whitespace; it is not gzip or Brotli compression.