Flatten JSON to Dot-Notation Keys Online
Flatten nested JSON into dot-notation keys, or do the reverse (unflatten), in your browser.
🔒 100% client-side — no data sent
Flatten a nested JSON into a list of dot-notation keys, and reverse it (unflatten) in one click. The tool runs 100% in your browser with no data sent anywhere, so your structures stay private. Great for diffing configs, preparing translation files or exploring a complex JSON.
What is it for?
- ▸ Prepare flat-key i18n translation files
- ▸ Diff two JSON configs line by line
- ▸ Turn a nested JSON into environment variables
- ▸ Rebuild a structured JSON from dotted keys
FAQ
What does flattening a JSON mean?
Flattening a JSON converts a nested structure into a list of unique keys using dot notation, such as user.address.city, each paired with its value.
How are arrays handled when flattening?
Array elements are indexed within the key, such as items.0.name, so the original structure can be faithfully rebuilt with the unflatten operation.
Can I reverse it (unflatten)?
Yes, the tool also turns a list of dot-notation keys back into a full nested JSON, automatically recreating objects and arrays.