JSON Wrench

Extract JSON from Log Lines

Input
All processing happens in your browser. Your JSON is never uploaded.
Output
Paste JSON on the left.Paste JSON above. It's checked as you type. Broken JSON gets an exact error location and a one-click fix.

Application logs often embed JSON after a timestamp, log level and message, which makes it hard to read and impossible to parse directly. Paste the whole line above and press Fix: the prefix is removed and the JSON is formatted.

Example

Input
2026-10-09T12:01:44Z INFO  order.created {"id": 42, "total": 19.99, "items": ["book", "pen"]}
Result in JSON Wrench
{
  "id": 42,
  "total": 19.99,
  "items": [
    "book",
    "pen"
  ]
}

What it handles

  • Prefixes such as timestamps, [INFO], [2026-11-10] or ERROR tags and messages before the first { or [.
  • Several JSON objects pasted together, such as NDJSON or JSON Lines, which become one JSON array. This also works when each line has its own prefix, or one line holds several values like req={…} res={…}.
  • Escaped payloads like "{\"id\":42}" pasted on their own, which are unescaped automatically.
  • Python dicts printed into the log, with single quotes and True, False or None.
  • Lines that were cut off by a log length limit: missing brackets are closed.

Example: several log lines at once

Paste NDJSON like {"level": "info"} and {"level": "warn"} on separate lines, press Fix, and you get a single array containing both objects, ready to explore in the tree view or copy into a script.

Private by design

Logs often contain user data, tokens and internal hostnames. JSON Wrench processes everything in your browser, so log contents are never uploaded.

Frequently asked questions

Can I paste many log lines at once?

Yes. NDJSON, and log lines that each have their own timestamp or prefix, become one JSON array with an item per JSON value. Lines without any JSON are left out.

Are my logs uploaded?

No. Extraction and formatting run in your browser.

More JSON tools