JSON Validator Online — Syntax Checker & Linter
Validate JSON online with VS Code-style squiggle error highlighting. Shows ALL syntax errors at once with exact line and column. One-click Fix All for missing commas, unquoted keys. Free JSON syntax checker.
What is ilovejson?
ilovejson is a free, fast, and fully private online JSON tool built for developers. It runs entirely in your browser — pasted and opened JSON is processed locally. Open URL contacts the address you provide, and Share creates a link containing your data; only share data you intend recipients to see.
Unlike most JSON formatters that stop at the first syntax error, ilovejson shows all errors at once with red wavy underlines, exact line and column numbers, and one-click Fix All — just like VS Code.
Frequently Asked Questions
Is my JSON data private?
JSON formatting and validation run locally in your browser. Open URL sends a request to the supplied URL. Shared links contain the JSON in the URL, so avoid sharing secrets. The site also loads Firebase Analytics for usage measurement.
What formats does ilovejson support?
Standard JSON, JSON5 (with // comments and trailing commas), JSONL/ndjson (JSON Lines), Python dicts (None/True/False), Ruby Hashes (symbol => syntax), PHP arrays, and JavaScript object literals with unquoted keys — all auto-detected.
How do I compare two JSON files?
Click the Diff button in the top bar. The editor switches to a side-by-side view — paste your original JSON on the left and modified JSON on the right. Added lines are highlighted green, removed lines red, and changed lines yellow.
What is JSONL (JSON Lines)?
JSONL (also called ndjson or newline-delimited JSON) is a format where each line is a valid JSON object. It is commonly used for log files, data pipelines, and streaming APIs. ilovejson parses each line separately and shows them as individual collapsible records in the tree view.
Can ilovejson handle large JSON files?
Yes. The tree view uses virtual scroll — only the rows visible on screen are rendered as DOM nodes, regardless of file size. Practical file limits depend on your browser, available memory, and the structure of the data.
What is JSON5?
JSON5 is a superset of JSON that allows JavaScript-style comments (// and /* */), trailing commas, unquoted keys, and single-quoted strings. It is often used in configuration files (like VS Code's settings.json). ilovejson converts JSON5 to standard JSON automatically.
How do I load JSON from a URL?
Click Open URL in the top bar and paste any URL that returns JSON. Alternatively, add ?url=https://api.example.com/data to the ilovejson URL to load it directly on page open — useful for sharing pre-loaded views.