Skip to content
MyDailyTool

List to JSON Array

Convert a one-item-per-line list into a JSON array of strings and back again. Handles quoting and escaping automatically — useful for turning clipboard lists into API payloads.

How to use the list to json array

Edit the list on the left to see a JSON array of strings on the right. Edit the JSON side, click 'JSON → List' to convert back.

Formula & explanation

Lines map 1:1 to array elements. Trims whitespace and skips blanks.

Examples

["apple", "banana", "cherry"] ⇄ three lines.

Frequently asked questions

What about non-string items?
Decoded back as JSON.stringify(value). For numeric arrays, the round-trip will quote each number.

Related list tools tools