Online JSON Repair & Auto-Fixer

Turn malformed JSON, Python dictionaries, and JavaScript object literals into valid, standard JSON in one click.

100% Client-Side Processing — your JSON never leaves this browser. Works offline. How it works

0 lines • 0 bytes Ready
Tip: drop a file anywhere on the editor
Input
Paste, type or drop a file
1
Result
Updates as you type
// Output will appear here…
About this tool

How the JSON Repair works

Fix broken and malformed JSON automatically. Converts Python True/False/None dicts, fixes unquoted keys, strips trailing commas, and removes comments.

Python Dict to JSON

Converts True -> true, False -> false, and None -> null from Python logs and outputs.

Fix Quotes & Keys

Converts single-quoted strings to double quotes and wraps unquoted object keys in double quotes.

Strip Trailing Commas & Comments

Removes trailing commas in objects and arrays, and strips // and /* */ comments.

Repair Audit Log

Displays a breakdown of exactly what syntax errors were detected and fixed.

FAQ

Common questions

What kind of broken JSON can this tool repair?

It repairs trailing commas, single quotes, unquoted keys, Python literals (True/False/None), JavaScript comments, missing commas between elements, and undefined/NaN values.

Why did my Python dictionary fail standard JSON parsing?

Python uses single quotes ('key') and uppercase True/False/None, which violate the strict RFC 8259 JSON standard. JSON Repair converts them instantly.

Does repair modify string contents?

No, it only fixes syntax tokens outside of strings and safely escapes double quotes within single-quoted string values.

Can I format the repaired JSON immediately?

Yes! Once repaired, the output is automatically formatted and can be shared or opened in any other tool.