Web Tools
JSONC to JSON Converter
Strip comments and trailing commas from JSONC (JSON with Comments) to produce valid JSON. Handles single-line (//) and multi-line (/* */) comments, trailing commas in objects and arrays, preserves string content. Runs entirely in your browser — your data never leaves your machine.
jsonc json comments converter tsconfig vscode formatter
Published May 30, 2026
All interactive tools run entirely in your browser. Your data never leaves your device.
How It Works
Paste JSONC (JSON with Comments) — the format used by tsconfig.json, VS Code settings, ESLint configs, and more — and get clean, valid JSON output. The tool strips all comments and trailing commas while preserving string content.
Features
- Single-line comments: strips
//comments to end of line - Multi-line comments: strips
/* ... */block comments - Trailing commas: removes trailing commas before
}and] - String safety: never modifies content inside quoted strings (URLs, regex, etc.)
- Format or minify: output as pretty-printed or compact JSON
- Statistics: shows how many comments and trailing commas were removed
- 5 examples: tsconfig, VS Code settings, ESLint config, simple object, nested with comments
- Private: runs entirely in the browser — no data transmitted
Use Cases
- Converting
tsconfig.jsonto valid JSON for programmatic parsing - Cleaning VS Code
settings.jsonfor use in JSON-only tools - Preparing JSONC config files for APIs that only accept standard JSON
- Stripping comments from configuration files before deployment