Convert JSONC to JSON Online Free
Drag & drop your .jsonc file here, or click to browse
Converts to JSON in your browser · first daily conversion free · no signup
Your first conversion each day is free. A $2.99 one-time Day Pass unlocks 24 hours and ends by itself.
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.
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
Developers
- Convert JSONC config files to JSON for compatibility with different tools or frameworks
- Transform JSONC API responses to JSON for debugging, logging, or documentation
Data Analysts
- Convert JSONC exports to JSON for importing into spreadsheet software, databases, or BI tools
- Transform JSONC datasets to JSON for sharing with teammates who use different analysis tools
System Administrators
- Convert JSONC configuration to JSON when migrating between infrastructure tools or platforms
- Transform JSONC log exports to JSON for ingesting into monitoring or analysis systems
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.
Convert JSONC to JSON via API
Integrate this conversion into your pipeline with 3 lines of code. Free tier: 25 conversions/month.
The free converter above runs entirely in your browser — your file is never uploaded. This optional API is a separate server-side endpoint for automating conversions at scale.
curl -X POST https://changethisfile.com/v1/convert \ -H "Authorization: Bearer YOUR_API_KEY" \ -F "file=@input.jsonc" \ -F "target=json" \ -o output.json --fail
YOUR_API_KEY with your free key — no credit card needed.
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.
Ready to convert your file?
Convert JSONC to JSON instantly — free, no signup required.
Start Converting