How to Format JSON
Step-by-step guide to formatting and beautifying JSON data using the DevHexLab JSON Formatter.
Tool Used
JSON Formatter
1
Open the JSON Formatter
Navigate to Tools and select JSON Formatter from the JSON & Data category, or go directly to /tools/json/json-formatter.
2
Paste your JSON
Paste your raw or minified JSON into the input textarea on the left side.
3
Choose indentation
Select your preferred indentation: 2 spaces, 4 spaces, or a tab character.
4
Click Format
Press the Format button. Your JSON will be formatted and shown in the output area. If there are errors, they will be highlighted in red.
5
Copy the result
Use the Copy Output button at the bottom to copy the formatted JSON to your clipboard.
All done!
You are ready to use the JSON Formatter like a pro.