Converters

JSONC to JSON Converter

Paste JSONC (JSON with comments) below to convert it into strict JSON.

What does this tool do?

Paste JSONC (JSON with comments) below to convert it into strict JSON. Everything runs locally using JavaScript in your browser — nothing you paste or upload is ever sent to a server.

How to use this tool

  1. Paste your jsonc input into the left-hand box.
  2. Click Convert to JSON.
  3. Copy the json output from the right-hand box.

Frequently asked questions

What is JSONC?

JSON with Comments — regular JSON syntax extended to allow // and /* */ comments and trailing commas, popularized by config files like VS Code's settings.json.

What does this tool do exactly?

It strips out comments and trailing commas, then parses the result as strict JSON so you get clean, standards-compliant output.

Does it support both comment styles?

Yes — both // line comments and /* */ block comments are stripped, as long as they're not inside a string value.