Convert JSONC to JSON Online Free
Convert your JSONC files to JSON format instantly in your browser. Free, no signup, no limits.
By ChangeThisFile Team · Last updated: March 2026
ChangeThisFile converts JSONC to JSON instantly in your browser. Drop your JSONC file, get a JSON file in seconds. Free, no signup. Your files never leave your device.
Convert JSONC to JSON
Drop your JSONC file here to convert it instantly
Drag & drop your .jsonc file here, or click to browse
Convert to JSON instantly
JSONC vs JSON: Format Comparison
Key differences between the two formats
| Feature | JSONC | JSON |
|---|---|---|
| Comments | ✓ Single-line // and multi-line /* */ | ✗ Not supported |
| Trailing Commas | ✓ Allowed in objects and arrays | ✗ Syntax error |
| File Size | Larger (with comments) | Smaller (no comments) |
| Use Cases | Config files, VS Code settings | APIs, data exchange, production |
| Browser Support | ✗ Not natively supported | ✓ Universal support |
When to Convert
Common scenarios where this conversion is useful
VS Code Settings and Configuration
Convert VS Code settings.json, launch.json, and tasks.json files from JSONC to JSON for automated deployments or when sharing configuration files that need to work across different editors that don't support JSONC comments.
TypeScript Configuration Files
Transform tsconfig.json files with inline comments explaining compiler options into clean JSON format for build systems, CI/CD pipelines, or tools that require standard JSON without comment syntax.
API Documentation with Inline Comments
Convert JSONC API schemas, OpenAPI specifications, or configuration templates with developer comments into production-ready JSON files for deployment to servers or integration with tools that require strict JSON compliance.
Who Uses This Conversion
Tailored guidance for different workflows
JavaScript and TypeScript Developers
- Converting tsconfig.json with comments to JSON for automated build systems
- Preparing JSONC configuration files for deployment to production servers
VS Code Users
- Sharing VS Code settings.json configurations with team members using different editors
- Converting workspace settings for automated environment setup scripts
Configuration File Maintainers
- Migrating JSONC configuration files to systems that only support standard JSON
- Preparing API schemas and configuration templates for third-party integrations
How to Convert JSONC to JSON
-
1
Upload your JSONC file
Drag and drop your JSONC file onto the converter, or click to select it from your device.
-
2
Convert
Your file is converted in your browser. Your files never leave your device.
-
3
Download your JSON
Click download to save your converted JSON file.
Frequently Asked Questions
No. The conversion happens entirely in your browser. Your file never leaves your device.
Yes. ChangeThisFile is completely free with no limits on conversions.
JSONC (JSON with Comments) is an extension of JSON that allows single-line (//) and multi-line (/* */) comments, plus trailing commas. It's commonly used in VS Code settings, TypeScript configurations, and other developer tools where comments help explain configuration options.
JSONC files need conversion to JSON for production environments, APIs, or tools that require strict JSON compliance. Many servers, databases, and web browsers don't support JSONC syntax and will throw parsing errors if comments are present.
Yes, the conversion only removes comments and trailing commas while preserving the exact data structure, key names, values, and nesting. Your configuration data remains identical after conversion.
Absolutely. VS Code uses JSONC format for settings.json, launch.json, and tasks.json files. Converting these to JSON is useful for automation, deployment scripts, or sharing configurations with tools that don't support JSONC.
Yes, TypeScript compiler accepts both JSONC and JSON formats for tsconfig.json. Converting removes helpful comments but maintains all compiler options and configurations exactly as specified.
Trailing commas are automatically removed during JSONC to JSON conversion. This ensures the output is valid JSON that won't cause syntax errors in strict JSON parsers.
Currently, the converter handles one file at a time. For batch conversion of multiple JSONC files, you'll need to convert each file individually through the web interface.
The converter preserves the original formatting and indentation of your JSONC file, only removing comments and trailing commas. The resulting JSON maintains the same readable structure.
Related Tools
Free tools to edit, optimize, and manage your files.
Need to convert programmatically?
Use the ChangeThisFile API to convert JSONC to JSON in your app. No rate limits, up to 500MB files, simple REST endpoint.
Ready to convert your file?
Convert JSONC to JSON instantly — free, no signup required.
Start Converting