Skip to content

JSON to JSONC Converter

Add inline comments to JSON keys to create JSONC (JSON with Comments) format.

Input

json
loading editor…

Paste your JSON here...
or drop a file anywhere in this pane

Output

text

JSONC with comments will appear here...
press to add comments

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

  1. Paste your standard JSON data into the input field.
  2. Click "Add Comments" to generate JSONC with inline comments describing each key.
  3. 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.

Related Tools