VS Code & MCP JSON Config Validator & Formatter

VS Code & MCP JSON Config Validator & Formatter

Paste your settings.json, mcp.json or package.json below. The tool checks it instantly, points at the exact line of every syntax error, flags trailing commas and duplicate keys, and formats it cleanly. 100% client-side — nothing you paste ever leaves your browser.



How to use this validator

1. Paste your config. Copy the whole file — VS Code settings.json, an MCP server file mcp.json, or a package.json — and paste it into the box above. The tool never uploads anything; every check runs in your browser, so even configs with private paths are safe to paste.

2. Click Validate. The validator parses your text as strict JSON. If parsing fails, it shows the exact line and column of the error, plus the offending line of text, so you can fix it in seconds instead of guessing. It also scans for the two mistakes strict JSON parsers reject most often: trailing commas (a comma right before a closing } or ]) and duplicate keys in the same object (the second value silently wins, which causes confusing bugs).

3. Format and copy. Click Format / Beautify to re-indent the whole file with two spaces, then Copy Result to put the clean version on your clipboard and paste it back into your editor. A quick format pass also makes diffs readable when you commit config changes.

One thing to know: VS Code’s own settings.json is actually JSONC, which allows comments and trailing commas. This validator flags those on purpose — they are fine inside VS Code, but they will break any strict JSON parser, MCP loader or script that reads the same file. Fix them here if another tool complains, or leave them if only VS Code reads the file.

Runs entirely in your browser. No account, no upload, no tracking.