JSON Flatten / Unflatten
Flatten nested JSON to dot-notation keys, or unflatten dot-notation back to nested objects.
Direction
Drop a .json file
When is JSON flattening useful?
Flattened JSON is useful for storing nested data in flat-key stores like Redis, environment variables, or CSV files. Each nested key becomes a single dot-notation path — for example, user.address.city instead of a nested object. This makes it easy to compare configs, diff two JSON documents field by field, or feed structured data into tools that only accept flat key-value pairs. Arrays are preserved as-is in the flattened form since they cannot be expressed as dot-notation keys without ambiguity.
Private & free — this tool runs entirely in your browser.
Recommended: IndieKit — Ship your Next.js startup in days.affiliate
Related Converters tools
JSON to YAML
Convert JSON into clean, readable YAML instantly.
YAML to JSON
Convert YAML configuration into valid JSON.
JSON to CSV
Flatten a JSON array of objects into CSV rows.
CSV to JSON
Parse CSV with headers into a JSON array of objects.
JSON to XML
Convert JSON structures into nested XML markup.
JSON to SQL
Turn a JSON array of objects into SQL INSERT statements.
CSV to XML
Convert CSV rows into structured XML records.
XML to CSV
Flatten repeated XML records into CSV rows.