JSON array to lines converter

Paste an array from an API response or config file and get a list you can paste into Excel or a document.

Loading the tool…

Processing and privacy: The result is calculated inside your browser and your data is not sent to any server.

How to use it

  1. Enter json array.
  2. The result appears straight away and updates as you edit.
  3. Copy the result, or copy a link that keeps the same values to share it.

How it is calculated

Parse with JSON.parse and check it is an array. Strings are written as is without quotes, numbers, booleans and null as text, and nested objects or arrays with JSON.stringify.

Example

Result: Result: Riyadh Jeddah Dubai Doha; Elements: 4.

["Riyadh", "Jeddah", "Dubai", "Doha"]
Riyadh
Jeddah
Dubai
Doha

Limits and caveats

  • A string containing \n shows on more than one line.
  • Only a single top-level array is accepted.

Questions about this tool

What if the array is inside an object?

Copy just the array from [ to its matching ], since the tool expects a top-level array.

Are the quotes removed?

Yes. Strings are written without quotes, with escapes like \" and \u0627 decoded.

How are objects shown?

Each object is written as compact JSON on its own line.