JSON Flatten / Unflatten
Turn nested JSON into one level of dot-path keys, or rebuild nested JSON from those keys.
Runs in your browser. Files stay on this device.
Open JSON Flatten / Unflatten
Free, no account, no watermark and no daily limit.
How to use JSON Flatten / Unflatten
- 1Paste nested JSON, or pick Unflatten and paste flat keys.
- 2Choose the separator and how array indexes are written.
- 3Copy or download the result.
Questions
How are arrays written?
As a number in the path, either roles.0 or roles[0]. When unflattening, number parts become array items again.
What happens to empty objects and arrays?
They are kept as {} and [] under their path, so a round trip gives back the same JSON.
What if a key already contains the separator?
It will be split when you unflatten. Pick a separator that does not appear in your keys, such as / or __.
Is my JSON uploaded?
No. Everything runs in your browser.
Is it free?
Yes. No account, no watermark and no daily limit.
Related tools
- DeveloperBase64 EncoderEncode text or files to Base64 and decode it back, with URL-safe and data URL options.
- DeveloperDiff CheckerCompare two texts and see what was added and removed, line by line or word by word, and download a patch.
- DeveloperHash GeneratorGet the MD5, SHA-1, SHA-256, SHA-384 and SHA-512 of text or any file, and check it against a hash you were given.
- DeveloperJSON FormatterFormat, check and minify JSON, with the exact line of any error.
- DeveloperJWT DecoderRead the header and claims of a JSON Web Token, see when it expires, and check an HMAC signature.
- DeveloperRegex TesterTest JavaScript regular expressions live: every match highlighted, capture groups in a table, and a replace preview.