tsconfig.json Validator
CodeParse a tsconfig.json file as JSONC and flag structural mistakes: unknown top-level keys, unknown compilerOptions keys, wrong value types, and malformed files/include/exclude/references/paths
Paste a tsconfig.json file and get back every structural mistake in it, checked against a curated list of the compilerOptions tsc actually recognizes. Comments and trailing commas are stripped before parsing, the same JSONC leniency tsc itself applies, so a file with a // note or a trailing comma won't falsely show as broken. It catches type mismatches like strict set to the string "true" instead of a real boolean, an enum option like target given a value outside its known set, and array-shaped fields like include given a plain string instead of a list. Unknown top-level keys and unrecognized compilerOptions are reported as warnings rather than errors, since tsc itself is often lenient about unfamiliar keys added by newer versions or tooling.
How to use tsconfig.json Validator
- 1.Paste the contents of your tsconfig.json file into the input box.
- 2.Review the issues list: errors mean a value's type or enum choice doesn't match what tsc expects, warnings are unrecognized keys that may still be valid in a newer TypeScript version.
- 3.Check the compilerOptions and top-level key counts to confirm the file parsed the way you expected, especially after stripping comments.
Frequently asked questions
Use via API, SDK, or MCP
cURL# Free: 1,000 req/day · Pro: 10,000 req/day
curl -X POST https://api.utilix.tech/v1/tools/tsconfig-validator \
-H "Authorization: Bearer utx_live_..." \
-H "Content-Type: application/json" \
-d '{"text":"{\n \"compilerOptions\": {\n \"target\": \"ES2020\",\n \"module\": \"ESNext\",\n \"strict\": true\n },\n \"include\": [\"src/**/*.ts\"]\n}\n"}'Get an API key from your dashboard · Full API docs →