What this tool does
Format (pretty print) a JSON string and render a collapsible JSON viewer. You can also copy and clear content quickly.
Steps
- Paste JSON into the textarea.
- Click Format to pretty-print and view structured JSON below.
- Use Copy to copy the formatted JSON; Clear to reset.
Example
{"user":{"id":1,"name":"Alice","roles":["admin","editor"]}}
Notes
- Input must be valid JSON; otherwise formatting will fail.
- All processing runs locally in your browser.