JSONC Converter

Extract text from JSON files with comments (JSONC)


Drop or upload your .JSONC file

How to extract text from your JSONC file

  1. Click the "Select File" button above, and choose your JSONC file.
  2. You’ll see a preview, if available.
  3. Click the "Convert file to..." button to extract text information.

Convert JSONC to another file type

To convert JSONC JSON files to another format, you need Visual Studio Code or other Developer software.

Convert a file to JSONC

To convert other file formats to the "Configuration File" file type, you need software like Visual Studio Code or a similar tool.


About JSONC files

A .jsonc file is a text-based data configuration file that uses JavaScript Object Notation (JSON) but adds support for block (/* */) and single-line (//) comments. Developers primarily use this format for human-readable configuration files, most notably in Microsoft Visual Studio Code. While extremely useful for leaving instructions inside a configuration file, the .jsonc format has a critical disadvantage: it is not valid JSON. Passing a .jsonc file into a standard JSON.parse() function or standard API endpoint will immediately trigger a syntax error and crash the parser. To use the data in standard web applications, developers must convert the file to strict json, which completely destroys and removes all comments. Alternatively, you can convert the file to yaml or .toml, which are formats that natively support both structured data and comments.

Convert.Guru analyzes your JSONC file, detects the exact format, and lets you read the text inside.

Users also converted HTML, LUA and JSON files.


FAQ

If you want to convert JSONC file to JSON, you can use Visual Studio Code or similar software from the "Configuration File Storage" category. In the File menu, look for Save As… or Export….

To convert files to JSONC, try Visual Studio Code or another comparable tool in the "Configuration File Storage" category.



The JSONC Converter Story

The history of Convert.Guru began over 25 years ago in California with Tom Simondi’s file-format database. A former contributor to Space Shuttle development and a software pioneer of the 1980s, Simondi established a trusted resource for file type analysis that was even referenced by Microsoft Windows XP. Today, we use modern technology to process and convert thousands of file formats while continually improving our JSONC converter.