JSON Validator & Formatter
Paste, type, or drop a file below to validate, format, repair, or minify your JSON instantly — all in your browser.
About JSONLint.app
JSONLint.app is a fast, free validator and formatter for JSON, a lightweight data-interchange format. Copy and paste, directly type, or input a URL in the editor above and let JSONLint.app tidy and validate your messy JSON code.
What Is JSON?
JSON (JavaScript Object Notation) is a human-readable and compact format for representing complex data structures. It's used extensively in web APIs, configuration files, and data exchange between systems. JSON is language-independent, making it a universal data format understood by virtually all modern programming languages.
How to Validate JSON
Validating JSON ensures your data follows the correct syntax before it's processed by an application. Here's how to validate JSON using JSONLint.app:
- Paste your JSON into the editor above
- Click the Validate JSON button (or press Ctrl+Enter)
- JSONLint.app will highlight any errors with line numbers and descriptions
- Fix the errors and re-validate until your JSON is valid
Example of Valid JSON
Here is a simple example of valid JSON:
{
"name": "John Doe",
"age": 30,
"email": "john@example.com",
"isActive": true,
"address": {
"street": "123 Main St",
"city": "New York",
"country": "US"
},
"hobbies": ["reading", "coding", "hiking"]
}Common JSON Errors
- Trailing commas — An extra comma after the last item:
{ "a": "b", } - Single quotes — JSON requires double quotes, not single:
{ 'key': 'value' }is invalid - Unquoted keys — Keys must be in double quotes:
{ key: "value" }is invalid - Missing commas — Forgetting a comma between items:
{ "a": 1 "b": 2 } - Comments — JSON does not support comments. Use JSONC format if you need them.
- Wrong boolean/null casing — Must be lowercase:
true,false,null(notTrue,FALSE,NULL)
Proper JSON Format Rules
- Data is in name/value pairs
- Data is separated by commas
- Objects are wrapped in curly braces
{} - Arrays are wrapped in square brackets
[] - Keys must be strings in double quotes
- String values must use double quotes
- Boolean values use
trueorfalse(lowercase) - Null values use
null(lowercase) - Numbers should not have leading zeroes
- No trailing commas allowed
- File extension:
.json— MIME type:application/json
Why Use JSONLint.app?
JSONLint.app helps you quickly find and fix errors in your JSON data. It highlights the exact line and character where the error occurs, saving you hours of manual debugging. All processing happens entirely in your browser — your data never leaves your machine.
Tips & Tricks
- Load JSON from a URL:
https://www.jsonlint.app/?url=https://www.jsonlint.app/datasets/programming-languages.json - Pass JSON directly via URL parameter:
https://www.jsonlint.app/?json=%7B%22hello%22:%20%22world%22%7D - Use keyboard shortcuts:
Ctrl+Enterto validate,Ctrl+Shift+Fto format. - Drag and drop a
.jsonfile directly into the editor.
In-Depth JSON Guides
Beyond validating and formatting, we write practical, developer-focused guides on the JSON problems that actually cost you time — with real reproductions and code samples in JavaScript, Python, and Go:
- Unexpected token < in JSON at position 0 — why
fetch().then(r => r.json())fails when an API returns an HTML error page, and how to surface the real response. - JSON numbers silently corrupt large IDs — integers above 253 lose digits in JavaScript. How to spot it and fix it with
BigInt, PythonDecimal, and Gojson.Number. - Parsing JSON files too big for memory — streaming multi-GB files with
stream-json,ijson, Go'sjson.Decoder, and NDJSON. - JSON Schema validation in practice — going from "is it valid JSON" to "is it the right shape" with Ajv,
jsonschema, and Go. - Reading and locating any JSON parse error — decode the error message and find the exact byte/line/column across JavaScript, Python, Go, and Java.
Browse all tutorials and free datasets on the Learn JSON hub.
Frequently Asked Questions
Is JSONLint.app free to use?
Yes. JSONLint.app is completely free, with no sign-up, no limits, and no watermarks. You can validate, format, minify, repair, and convert JSON as often as you like.
Does my JSON data leave my browser?
No. Validation, formatting, minifying, sorting, and the tree view all run entirely in your browser — your JSON never leaves your machine. (The optional AI Assistant is the only feature that sends text to a model, and only when you click it.)
How do I fix invalid JSON?
Paste your JSON and click Validate. JSONLint highlights the exact line and column of the first error with a plain-English message. Click Repair to auto-fix common issues like single quotes, trailing commas, unquoted keys, comments, and wrong true/false/null casing.
What are the most common JSON errors?
Trailing commas, single quotes instead of double quotes, unquoted keys, missing commas between items, comments (not allowed in standard JSON), and wrong boolean/null casing such as True or NULL instead of lowercase true/false/null.
What is the difference between JSON and JSONC?
JSONC is "JSON with Comments" — it allows // line comments, /* block */ comments, and trailing commas. Standard JSON does not. Use the JSONC to JSON tool to strip comments and produce strict, valid JSON.
Can I convert JSON to other formats?
Yes. JSONLint.app converts JSON to CSV, YAML, XML, SQL, Excel, and to TypeScript, Python, Java, Go, C#, and more — plus reverse converters like CSV to JSON and XML to JSON.
How do I validate large JSON files?
Drag and drop a .json file directly onto the editor, or paste the contents. Everything is processed locally in your browser, so even large files stay private and fast.