LLM Output Healer & JSON Repair Tool
Auto-balance truncated arrays, strip reasoning tags, fix single quotes, trailing commas, and unquoted keys from streaming cutoffs.
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.
- ✓ 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 (}]})
Share This Tool
Help your team and fellow developers save time with free, private client-side utilities.
Systems & Security Engineers • Applied Cryptography & High-Performance Web Tools
How to Use LLM Output Healer & JSON Repair Tool
Paste Broken JSON Output
Paste your cut-off JSON, streaming output, reasoning logs, or markdown fences into the editor.
Review Auto-Applied Fixes
The engine automatically cleans reasoning tags, balances open brackets, and fixes trailing commas.
Select Output Format
Switch between Clean Formatted JSON, Minified JSON, and Auto-generated TypeScript types.
Copy or Download
Copy the validated production payload directly into your codebase.
Practical Examples & Conversions
{"users": [{"id": 1, "name": "Alice"}, {"id": 2, "name": "Bob"{"users": [{"id": 1, "name": "Alice"}, {"id": 2, "name": "Bob"}]}Frequently Asked Questions (PAA)
Related Tools & Converters
Algorithm Visualizer & Multi-Race
Interactive real-time visualization of sorting, pathfinding (A*, Dijkstra), and tree traversals.
In-Browser SQL Studio & SQLite WASM
Execute SQL queries, load schemas, import CSVs, and analyze execution plans client-side via SQLite WASM.
Regex State Machine Visualizer
Interactive AST and DFA/NFA state machine visualizer for regular expressions.
Java Execution Visualizer
Step-by-step Java code visualizer tracking stack frames, heap objects, and variable states.
JSON Formatter & Validator
Format, validate, minify, and inspect JSON with hierarchical tree navigation and syntax highlighting.
JWT Token Inspector & Decoder
Decode and inspect RFC 7519 JSON Web Tokens, headers, payload claims, and expiration timestamps.
Authoritative Standards & Citations
Calculations and algorithms on this page are implemented and verified in strict accordance with the following official technical specifications:
RFC 7519: JSON Web Token (JWT)
Standardized compact, URL-safe means of representing claims to be transferred between two parties.
Web Cryptography API Specification
Standard JavaScript API for performing basic cryptographic operations in web applications.
RFC 4122: A Universally Unique IDentifier (UUID) URN Namespace
Definition of uniform format and generation algorithms for UUIDs.