Blog
Image Tools
Crop Image
Resize Image
Rotate & Flip
Compress Image
Photo Filters
Meme Generator
GIF Maker
Collage Maker
Watermark Image
Blur Image
Convert
JPG to PNG
PNG to JPG
HEIC to JPG
DNG to JPG
Image Converter
PDF to JPG
JPG to PDF
Merge PDF
Compress PDF
MP4 to MP3
Video to GIF
MOV to MP4
MP3 Converter
Video & Audio
Trim Video
Crop Video
Remove Audio
Text to Speech
Audio Cutter
MP3 Compressor
Design & Editor
Resume Builder
Design Editor
Add Text to Photo
Social Media Resizer
QR Code Generator
Signature Generator
More Tools
Word Counter
Password Generator
Random Picker
Dice Roller
Spinner Wheel
Favicon Generator
Barcode Generator
Browse All Tools

JSON to JSONC Converter

Turn JSON into a JSONC settings file: neatly indented JSON with an optional comment at the top, ready for you to add // notes next to each setting in your editor.

100% Free
No Sign-up
JSON → JSONC
Instant
Private · Nothing Saved Online
JSON to JSONC
Your Text
Input Characters—
Output Characters—
Lines In → Out—
Input Words—
Type or paste in the input box, or open a file. The result updates as you type.
JSONC to JSON
JSONType, paste or drop a file
JSONC
Input—
Result—
Status—
Settings forYour data
JSONC Output
File Name

How to Convert JSON to JSONC

Quick answer: paste your JSON or open the file; the JSONC appears below. Copy it or download the .jsonc file.

  1. 1

    Add your JSON

    Paste it or open a file.

  2. 2

    Choose options

    Adjust the output on the right.

  3. 3

    Check the JSONC

    Errors are explained clearly.

  4. 4

    Copy or download

    Save it as .jsonc.

What You Get

Instant
As you paste
Valid Output
Correct JSONC
Options
Format it your way
Clear Errors
Line numbers shown
100% Private
Nothing is uploaded
Any Device
Phone or computer

What Is JSON?

JSON is the most common format for data and settings exchanged between programs. It uses curly brackets for objects, square brackets for lists and double quotes around every key and text value. It is strict: no comments and no trailing commas are allowed, which makes it reliable for machines but less friendly to edit by hand.

What Is JSONC?

JSONC, or JSON with comments, is JSON that also allows // and /* */ comments and, in many tools, trailing commas. Code editors and development tools commonly use it for settings files, because comments explain what each option does.

Why Convert JSON to JSONC?

Settings files are easier to maintain when they explain themselves. Starting from plain JSON, this gives you a properly formatted JSONC file with a header comment, so you can document options for the next person who edits it.

How the Conversion Works

The JSON is indented with 2 or 4 spaces and the text you enter becomes // comment lines at the top. The data itself is unchanged, and every JSONC reader can load the result.

Example

With the comment "Settings file", the sample becomes // Settings file followed by the indented JSON settings.

Who Uses It?

Developers setting up editor and project settings, and teams documenting configuration. Because everything happens in the browser, it is also safe for internal and confidential files.

Using Your JSONC File

Save the result with the .jsonc or .json extension your editor or tool expects, then add // comments next to settings to explain them. Most code editors open JSONC settings files with full highlighting and error checking.

Common Problems in JSON Input

Most JSON errors come from small slips: a missing comma between two items, an extra comma after the last item, single quotes instead of double quotes, or a comment left in the file. Text copied from documents can also contain curly quotes that look right but are not valid. The error message shows the line and position, so jump there, fix the character and the result updates straight away. If the file came from a code editor, it may really be JSONC, which has its own converter.

Checking Your JSONC Output

The output is standard JSON with your optional comment at the top, so any JSONC reader and most JSON readers that accept comments will load it. Indentation follows your choice. Comments are a great place to explain settings that are easy to get wrong, such as time limits, file paths or values that must match another file.

Step by Step

Start by pasting your JSON into the input box, or press Open File to load it from your device. The converter reads it straight away and shows the JSONC in the output box. If the input has a problem, a short message explains what is wrong and where, so you can fix it in place. Next, adjust the options on the right; the output refreshes immediately so you can compare. When you are happy, press Copy to put the result on your clipboard, or Download to save it as a .jsonc file ready to use.

Private, Free and Instant

The converter is free, with no sign-up, no limit beyond the 5 MB file size and no watermark. It runs in your browser, so settings files with passwords, server addresses or customer data are never uploaded or stored. Paste the content, drop a file on the input box or press Open File, then copy the result or download it with the right file extension. It works on Windows, Mac, Linux, Chromebooks, iPhone and Android.

JSON to JSONC: Adding Room for Comments

JSONC allows comments and trailing commas. Converting from JSON produces text you can annotate by hand, as used by many editors for settings files.

Note

Only tools that expect JSONC can read comments. Strip them with JSONC to JSON before sending data to a strict parser.

Frequently Asked Questions

Questions about JSON to JSONC

How do I convert JSON to JSONC?

Paste your JSON or open the file. The JSONC appears straight away; copy it or download it.

Can I add comments next to settings?

Yes. Add // comments anywhere after converting; JSONC allows them.

What if my input has a mistake?

A message explains the problem, usually with the line number, so you can fix it.

Is there a size limit?

Files up to 5 MB.

Does it work on my phone?

Yes. It works in any modern browser on phones, tablets and computers.

Is my data uploaded?

No. The conversion runs in your browser on your own device. Nothing is sent or stored.