Skip to main content
Toolbox
Developer

LLM Output Healer & JSON Repair Tool

Auto-balance truncated arrays, strip reasoning tags, fix single quotes, trailing commas, and unquoted keys from streaming cutoffs.

Quick Answer & Summary

Instantly repair broken and truncated JSON from LLM max_token cutoffs, strip <think> reasoning tags, fix trailing commas and unquoted keys, and generate TypeScript interfaces in real-time.

LLM Output Healer & Truncated JSON / Markdown Repair

Auto-balance truncated arrays, strip reasoning tags, fix single quotes, trailing commas, and unquoted keys.

Repair Status: Successfully Repaired7 Fixes Applied
  • Stripped reasoning tags (<think>)
  • Trimmed conversational preamble/suffix
  • Converted Python literals (True/False/None to true/false/null)
  • Converted single quotes to double quotes
  • Quoted unquoted object keys
  • Removed illegal trailing commas
  • Auto-closed unclosed containers (}]})
Next Pipeline Action1-Click Handoff

Share This Tool

Help your team and fellow developers save time with free, private client-side utilities.

TB
Toolbox Editorial TeamVerified Authors

Systems & Security Engineers • Applied Cryptography & High-Performance Web Tools

Updated:
100% In-BrowserZero server storage
Standards AuditedRFC & ISO compliant
Peer ReviewedEditorial Policy
Documentation & Guide

How to Use LLM Output Healer & JSON Repair Tool

1

Paste Broken JSON Output

Paste your cut-off JSON, streaming output, reasoning logs, or markdown fences into the editor.

2

Review Auto-Applied Fixes

The engine automatically cleans reasoning tags, balances open brackets, and fixes trailing commas.

3

Select Output Format

Switch between Clean Formatted JSON, Minified JSON, and Auto-generated TypeScript types.

4

Copy or Download

Copy the validated production payload directly into your codebase.

Pro Tips
Use the TypeScript tab to generate instant interfaces from healed payloads
Test with Truncated Cutoff preset to see auto-closing in action

Practical Examples & Conversions

Input
{"users": [{"id": 1, "name": "Alice"}, {"id": 2, "name": "Bob"
Output
{"users": [{"id": 1, "name": "Alice"}, {"id": 2, "name": "Bob"}]}

Frequently Asked Questions (PAA)

Related Tools & Converters

Authoritative Standards & Citations

Calculations and algorithms on this page are implemented and verified in strict accordance with the following official technical specifications: