This tool allows you to format JSON strings (adding indentation for better readability) and minify them (removing extra spaces and line breaks) interchangeably.
How to use:
Enter a JSON-formatted string in the left text area.
Click the "Format →" button to display the indented, formatted JSON in the right area.
If you want to display a minified version of the JSON in the left text area based on the formatted JSON on the right, click the "← Minify" button.
Notes:
The data you enter is not transmitted externally.
The JSON you enter must be in the correct format. If the format is incorrect, an error message will be displayed.
The minify function analyzes the content of the formatted JSON and removes spaces and line breaks, so please make sure that the correct JSON is displayed in the right area before using it.