This online JSON formatter indents the JSON based on the provided indentation(2 spaces, 4 spaces, or a tab) and then pretty prints it. It also does the JSON validations and highlights the errors.
You can format the JSON with this online utility. You have a couple of options to provide the JSON input.
The first option is to select the JSON file using the upload option. The second option is to copy & paste the JSON into the text area. The upload option is given priority over the copy-paste option.
Next, you have to select the indentation. Multiple indentation options are provided. The default is 2 spaces. You can choose the JSON indentation as per your requirement.
After providing the JSON input, click on the submit button, and then the tool formats the JSON with the provided indentation and then pretty prints it in another text area.
You can also utilize the tool to validate the JSON. After providing the input, click the submit button. The tool first validates the JSON for any errors. If there are any errors, then it highlights those errors in the text area itself.
The highlight option works only if you provide the JSON input through the text area. If you provide a file, then the tool only prints the error message.
The following features are included in this tool.