What Is JSON to JSONC Converter?
This tool takes valid JSON and adds descriptive inline comments to each key, producing JSONC format. JSONC is commonly used in configuration files like tsconfig.json, VS Code settings, and other tools that extend JSON with comment support.
How to Use
- Paste your standard JSON data into the input field.
- Click "Add Comments" to generate JSONC with inline comments describing each key.
- Copy the JSONC output for use in your configuration files.
Frequently Asked Questions
Are the comments configurable?
Comments are auto-generated based on key names and structure. Custom comment text is not yet supported.
Can I convert JSONC back to JSON?
Yes, click Swap to switch to comment-stripping mode and convert JSONC back to clean JSON.