JSON Lint
Validate, lint, format and debug JSON with line-by-line error detection.
About this tool
Validate, lint, and format JSON data instantly in your browser. Paste any JSON snippet or load a file to check its syntax, pinpoint the exact line number and character column of any syntax errors, and view clear explanations so you can debug payloads fast. Prettify with clean indentation or minify for production. Everything runs locally on your machine — your sensitive configuration and API data is never transmitted to any server.
How to use the JSON Lint
- 1Paste your JSON data into the editor or upload a JSON file.
- 2Click the "Validate" button to check for syntax errors and structural validity.
- 3If the JSON is invalid, inspect the highlighted line and detailed error alert showing exactly where the syntax failed.
- 4If valid, view size and item statistics, or click "Format (2 spaces)", "Format (4 spaces)" or "Minify" to format and copy your JSON.
Frequently asked questions
How does JSON Lint find the broken line?
The tool parses the JSON strictly according to the RFC 8259 specification. When a syntax violation is encountered (such as an unquoted key, unescaped character, or trailing comma), the engine determines the exact line number and column where parsing failed and displays a visual pointer at that position.
Why does JSON disallow trailing commas?
Standard JSON is a strict data-interchange specification that does not permit trailing commas after the final element in an object or array. JSON Lint specifically flags trailing commas and points directly to the line causing the failure.
Is my JSON uploaded to any server or logged?
No. All validation, parsing, formatting, and minification execute entirely inside your browser using client-side JavaScript. Your data never leaves your computer.
Can I format or minify valid JSON?
Yes. Once validated, you can beautify your JSON with customizable 2-space or 4-space indentation ("Format (2 spaces)" / "Format (4 spaces)") or minify it into a compact single line ("Minify"), then copy the result with one click.