JSONC to JSON Converter

Strip comments from JSONC (JSON with Comments) files to produce valid standard JSON.

Clean JSON will appear here...

What Is JSONC to JSON Converter?

JSONC (JSON with Comments) allows single-line // and multi-line /* */ comments in JSON files, commonly used in configuration files like tsconfig.json or VS Code settings. This tool strips all comments to produce clean, standard JSON.

How to Use

  1. Paste your JSONC content with comments into the input field.
  2. Click "Strip Comments" to remove all comments and produce valid JSON.
  3. Copy the clean JSON output for use in tools that require strict JSON.

Frequently Asked Questions

Will trailing commas be removed too?

This tool only removes comments. Use the JSON Repair tool to handle trailing commas and other syntax issues.

Can I add comments back to JSON?

Yes, the tool supports bidirectional conversion. Click Swap to add inline comments to JSON keys.

Related Tools