How to Use
- Input JSON: Paste your JSON code into the left input box.
- Select Mode: Click the buttons above to choose "Pretty" (format) or "Minify" (compact).
- Adjust Settings: Toggle "Sort keys" or change indentation size (2/4/8 spaces).
- Copy Result: Click "Copy result" to export the processed JSON.
Tips & FAQ
- Local & Secure: All parsing and formatting is done locally in your browser. Your data is never uploaded to any server.
- Key Sorting: When "Sort keys" is enabled, object keys are recursively sorted alphabetically, making it easier to read and compare.
- Error Handling: If the input is invalid JSON, a red error message will appear below. Please check for syntax errors like missing quotes or commas.