Skip to content
JSON Viewer

Fix invalid JSON

JSON Repair

Paste broken JSON and fix it in one click. Trailing commas, single quotes, comments, unquoted keys, missing brackets and Python-style values are turned into valid JSON.

InputWaiting for JSON

The beautified JSON and tree appear here as soon as your input is valid.

0 B0 linesLn 1, Col 1

Load JSON from a URL

Your browser fetches it directly; it does not pass through our servers. The site must allow cross-origin requests.

How it works

How to use the JSON Repair

  1. 01

    Paste the broken JSON. Errors are highlighted straight away.

  2. 02

    Press Fix JSON. The repaired text replaces the original so you can review it.

  3. 03

    Use Undo (⌘/Ctrl + Z) if you want to go back, or Format to beautify the result.

FAQ

Frequently asked questions

What kinds of problems can be repaired?

Trailing and missing commas, single or curly quotes, unquoted keys, JavaScript and Python comments, Python True/False/None, unclosed brackets and strings, JSONP wrappers, and newline-delimited JSON.

Can repair guess wrong?

Repair follows predictable rules, but heavily broken input can be ambiguous. Always review the result. Undo restores the original text.

Where does broken JSON usually come from?

Hand-edited config files, JavaScript objects copied from source code, log lines, LLM output and truncated API responses are the most common sources.

Is my JSON uploaded to a server?

No. All parsing, formatting and validation happens in your browser with JavaScript. Nothing you paste or open is sent to us or stored on a server. Share links keep the JSON inside the URL fragment (after the #), which browsers never send to servers.

Tools