Empty containers
Empty objects/arrays flatten to `{}` / `[]`.
Fix: This is expected — preserves structure for unflatten.
header • up to 320x100 / 728x90
Flatten nested JSON into single-level key/value pairs using dotted or custom separator paths
Output will appear here...
content bottom • up to 300x250
sidebar • 160x600
Last reviewed:
JSON (JavaScript Object Notation) is a lightweight, human-readable data format used almost everywhere on the web for APIs, config files, and log output.
JSON Flatten converts nested JSON into a single-level map where each key is a dotted path plus bracketed array indices (`users[0].tags[1]`).
It's perfect for diffing complex payloads, feeding configuration into flat key/value stores, and building query strings from nested structures.
{
"user": { "id": 1, "tags": ["admin", "ops"] }
}{
"user.id": 1,
"user.tags[0]": "admin",
"user.tags[1]": "ops"
}Empty objects/arrays flatten to `{}` / `[]`.
Fix: This is expected — preserves structure for unflatten.
A key like `user.name` will be ambiguous.
Fix: Use a custom separator like `/` via the toolbar.
Yes — use JSON Unflatten with the same separator to rebuild.
Dot by default; change via the toolbar.
With bracketed numeric indices, e.g. tags[0].
Yes — there's no recursion limit in practice.
No — flattening is client-side.
Pair with JSON Unflatten and diff tools. You can also browse the full Data Converters category for more options.
Rebuild nested JSON from a flat map of dotted keys and array-index paths
Format, validate, and beautify JSON online with readable indentation, syntax checking, and copy-ready output for APIs, logs, and config files.
Recursively sort JSON object keys alphabetically while preserving array order
Convert JSON into TypeScript interfaces and types online with nested objects, arrays, optional fields, and copy-ready model definitions.
Convert a .env (dotenv) file into structured JSON with quote, comment, and escape handling
Flatten any JSON document into a list of JSONPath-style leaf paths and values
Convert JSON to CSV format
Convert JSON to Excel format
Convert JSON arrays into JSONL or NDJSON online with one object per line, copy-ready output, and safe handling of nested records for data pipelines.
Convert JSON to SQL INSERT statements
Convert JSON to clean TOML online for config files, package settings, and developer tooling that prefers readable key-value documents.
Convert JSON to XML format