JSON Flatten Tool
Flatten nested JSON objects into flat key-value pairs using configurable separators.
💡 Usage Tips
- Paste your nested JSON and click "Flatten JSON" to convert it
- Choose your preferred separator for nested keys (dot, underscore, etc.)
- Enable "Flatten arrays" to convert array items to indexed keys
- The tool preserves null values and handles circular references
- Statistics show the transformation details and depth analysis
📝 Example
Input JSON:
{
"user": {
"name": "John",
"address": {
"city": "New York",
"country": "USA"
}
},
"tags": ["admin", "user"]
}
Flattened JSON:
{
"user.name": "John",
"user.address.city": "New York",
"user.address.country": "USA",
"tags.0": "admin",
"tags.1": "user"
}