AI & LLM

LLM JSON Extractor

Pull valid JSON out of model output, repairing common structural damage.

  • Draft kept in this tabYour draft is kept in this tab's session storage and cleared when the tab closes.
  • Runs in your browserProcessing happens in this page. No application server receives your input.

Model reply

Extracted JSON

What this tool does

Pulls JSON candidates out of a model reply: through surrounding prose, Markdown code fences, and structural damage from token truncation, using an ordered 8-rung repair ladder (fence, prose, python-literal, trailing-comma, single-quote, unquoted-key, unterminated-string, unclosed) and reports every repair applied.

Limits

Repairs are structural. It closes brackets, removes trailing commas, quotes bare keys, and translates Python's True, False, and None: it never invents a value. A reply truncated in the middle of a key produces a failure, not a guessed null, because a guessed value is indistinguishable from a real one once it is in your data. Where a reply contains several JSON-shaped spans they are all offered and none is chosen for you. A span that nests deeper than 64 levels is refused, which is the bound every JSON surface here holds to.

Scope: this covers the page itself. Your browser, operating system, clipboard, downloads, extensions, and crash recovery may keep copies, and a compromised site origin would not be protected.