Docelora
ToolsAboutContact
Developer tools

JSON Flattener

Turn deeply nested JSON into flat key–value pairs for spreadsheets, environment variables, search indexes and translation files – and rebuild nested JSON from flat keys.

Quick answer: paste JSON, choose Flatten or Unflatten and the separator, and select Run.

JSON Flattener

Dot or bracket notation · per-record · unflatten

Private: runs entirely in your browser. Nothing you type or paste is uploaded or stored.

Example

NestedFlat
{"user":{"name":"Aisha"}}{"user.name":"Aisha"}

Related tools

Frequently asked questions

What does flattening JSON mean?

Turning nested objects into one level, where each key is the path to a value, such as user.name.

How are arrays handled?

Array items get their index in the path: roles.0 or roles[0].

Can I flatten a list of records?

Yes – tick “each item” to flatten every record separately, ready for CSV.

Can I use a different separator?

Yes, such as _ or /.

How does unflattening work?

Paths are split on the separator; numeric parts become array indexes.

What about empty objects?

They are kept as {} values.

Is my JSON uploaded?

No, it is processed in your browser.

What if my JSON is invalid?

You see the parser message; use JSON Repair for common mistakes.

Can I convert flat JSON to CSV?

Use JSON to CSV.

Is the order kept?

Yes, keys keep their original order.

Can I flatten very large files?

Yes, up to about 20 MB of JSON; large files may be slow on phones.

Is it free?

Yes – no sign-up, no usage limits and no adverts inside the tool.

Do I need to install anything?

No. It runs in any modern browser on a phone, tablet or computer.

Is my text uploaded?

No. Everything is processed by JavaScript in this browser tab; nothing you enter is sent to Docelora.

Does it work on a phone?

Yes – the layout adapts to small screens and the buttons are sized for touch.

Can I copy the result?

Yes – use the Copy button under the result box, or select the text.

Does it work offline?

Once the page has loaded, the tool keeps working without a connection.

Which browsers are supported?

Current versions of Chrome, Edge, Firefox, Safari and Samsung Internet.

Is there a size limit?

Very large inputs are limited to keep your browser responsive; the limit is shown if you reach it.

Do I need an account?

No – open the page and use it.

Last reviewed: 14 November 2026.