JSONC to JSON — Free Online Tool

Strip comments and trailing commas from JSONC, then validate and reformat as clean JSON. JSONC to JSON is a free online tool from the ToolsRift Code Formatters collection. It runs entirely in your browser — nothing to install, no signup, and your data never leaves your device.

Loading JSONC to JSON

How to use JSONC to JSON

  1. Open the JSONC to JSON above — it loads instantly, no account needed.
  2. Enter or upload your input. Everything is processed locally on your device.
  3. Get your result immediately and copy or download it with one click.

Frequently asked questions

What is JSONC?

JSONC is JSON with comments, used by config files like tsconfig.json and VS Code settings. Standard JSON parsers reject its comments and trailing commas.

Does it protect strings?

Yes. Comment markers and commas inside string values are ignored, so URLs like http://example.com and comment-like text inside strings are preserved.

Is the output validated?

Yes. After stripping comments and trailing commas the tool parses the JSON, so invalid input produces a clear error instead of broken output.

More Code Formatters

JSON to Query String
Convert a flat JSON object into a URL-encoded query string with repeated keys for arrays
Line Counter
Count lines of code, blank lines, comment lines, and character statistics
Code Diff Viewer
Compare two code snippets and highlight differences with additions and deletions
Indentation Converter
Convert between tabs and spaces with customizable tab size for code formatting
Universal Code Beautifier
Generic code beautifier that works with any programming language syntax
CSV Column Aligner
Align CSV columns into an even monospace table so data is easy to read and scan

← View all Code Formatters