Text
JSON Formatter & Validator
JSON Linter checks the syntax of JSON text you paste in and formats it for readability. It validates value types, bracket matching, and the picky comma/colon rules of JSON. When it finds a problem, it reports the line and column with a clear message. The formatted output is one click away from your clipboard.
Everything is processed entirely in your browser and is never sent to a server.
Related Tools
Character Counter
Count characters, characters without spaces, and lines in real time — a free character counter for posts, essays, and SMS limits. Runs entirely in your browser.
Text Diff Checker
Compare two texts and highlight line, word, or character-level differences. Ignore whitespace and case; copy as a unified diff. Runs entirely in your browser.
Regex Tester
Test JavaScript regex with live match highlighting, capture groups, replace preview, flag toggles, presets, and shareable URLs. Runs entirely in your browser.
Password Generator
Generate strong, random passwords in bulk with custom length, character sets, and excluded characters. Nothing is stored. Runs entirely in your browser.
About JSON Formatter & Validator
JSON Linter checks the syntax of JSON text you paste in and formats it for readability. It validates value types, bracket matching, and the picky comma/colon rules of JSON. When it finds a problem, it reports the line and column with a clear message. The formatted output is one click away from your clipboard.
Pick an indent style — 2 spaces, 4 spaces, or tab — to match API payloads, config files, log dumps, or anything else. Enable "Allow JSONC" to validate and format JSONC dialects (used by VS Code config files) that include line comments //, block comments /* */, and trailing commas.
All processing happens entirely in your browser — your JSON is never sent externally. API responses or anything sensitive is safe to format here. Runs entirely in your browser.
How to use
- Paste the JSON text you want to validate or format into the input box.
- Pick the output indent: "2 spaces", "4 spaces", or "Tab".
- Toggle "Allow JSONC" if your input contains comments or trailing commas.
- Click "Format & validate" — valid JSON renders formatted output; any error shows the line/column and description.
- Use the "Copy" button at the top right of the output to copy the result and paste it wherever you need it.
Use cases
- Engineers turning a one-line JSON from an API response or log into something readable.
- Developers validating settings.json / tsconfig.json or other VS Code JSONC files.
- Operators tracking down a syntax error in a JSON dump from an external tool.
- Learners using direct feedback to nail down JSON rules (double quotes required, no trailing commas).
- Teams normalizing indent style across JSON files before committing.
Notes
- Validation and formatting happen entirely in the browser; your JSON is never sent externally.
- Strict JSON mode (JSONC off) treats comments and trailing commas as syntax errors.
- Comments survive formatting only in JSONC mode. Turn JSONC off to strip them.
- Very large JSON (tens of megabytes) may slow down the browser.
- Output line endings are normalized to LF (\n). Convert at the destination if you need CRLF.