JSONLint is a free online JSON validator and reformatter at jsonlint.com. You can paste, type, or load JSON from a URL, and it reports problems with line and column numbers plus diagnostic error codes.
What JSONLint does
JSONLint checks JSON against the standard rules: name/value pairs, comma-separated members, objects in {}, arrays in [], keys and strings in double quotes, lowercase true/false/null, numbers without leading zeros, special characters escaped with a backslash, and no comma after the last member. Dates belong in strings. Files use the .json extension and the application/json MIME type.
When the input is valid, JSONLint can tidy it. When it is not, the report points to the line and column of the problem and includes a diagnostic error code, so you can find the exact spot instead of scanning the whole file.
How to validate JSON in JSONLint
- Open https://jsonlint.com/.
- Paste or type your JSON into the input area, or supply a URL as shown below.
- Click Validate, or press Ctrl/Cmd + Enter.
- Read the result. Valid JSON is confirmed; invalid JSON returns the error location with line, column, and diagnostic error code.
- Fix the reported problem and validate again until the document passes.
You can repeat steps 4 and 5 as often as needed. Each run checks the whole document, so a fix in one place can reveal the next error further down.
Format, minify and sort keys
After the JSON validates, use Prettify to format it with indentation. The keyboard shortcut is Ctrl/Cmd + Shift + F, and it applies to valid JSON.
Use Compress to minify the document and remove extra whitespace. If you want a stable key order, enable the optional sort object keys setting before formatting. Copy the result with the copy action when you are done.
Load JSON from a URL or link
JSONLint accepts a remote URL through the url parameter. It fetches and parses that JSON:
https://jsonlint.com/?url=https://jsonlint.com/datasets/programming-languages.json
You can also pass JSON directly in the json parameter, URL-encoded. This example carries {"hello": "world"}:
https://jsonlint.com/?json=%7B%22hello%22:%20%22world%22%7D
The first pattern is useful for checking a hosted dataset or API response. The second is useful for sharing a small snippet in a message or issue.
Fixing the most common JSON errors
- Trailing comma. JSON does not allow a comma after the last member. Wrong:
{"a": 1,}. Right:{"a": 1}. - Single quotes. Keys and strings must use double quotes. Wrong:
{'a': 1}. Right:{"a": 1}. - Unquoted keys. Every key needs double quotes. Wrong:
{a: 1}. Right:{"a": 1}. - Comments. JSON has no comment syntax. Wrong:
{"a": 1} // note. Right:{"a": 1}.
Missing commas and unbalanced brackets are also common. JSONLint's line and column report usually points you to the right place.
Large files and sensitive data
JSONLint advises against loading very large files into an online tool or browser tab. Use a local command instead. To format a file with jq:
jq . data.json > formatted.json
Or with Python's built-in tool:
python3 -m json.tool data.json formatted.json
To inspect a file before opening it, check its size, look at the first bytes, and confirm the top-level type:
wc -c large.json
head -c 500 large.json
jq -r 'type' large.json
To stream part of a big array without loading everything:
jq -c '.items[]' large.json | head
The JSON Formatter page says everything runs in your browser and pasted JSON is not uploaded for server-side formatting. Even so, JSONLint's own guide says not to paste files containing passwords, API keys, or personal records into any online tool. For that data, keep the work local.
Related JSONLint tools
The site also offers JSON Pretty Print with a side-by-side view, JSON Minifier, JSON Repair for common syntax mistakes, a JSON error analyzer, JSON Tree Viewer, and JSON to Table. Guide pages cover how to open a JSON file and JSON Lines/NDJSON.

