Report

Help us improve this tool

List to JSON Array

Turn line-separated or comma-separated lists into a valid JSON array with trimming, deduplication, and type inference.

O M T

Turn plain lists into valid JSON arrays

APIs, config files, and test fixtures often expect JSON arrays while spreadsheets and notes provide one value per line or comma-separated text. Paste your list, pick line or comma splitting, and get a formatted JSON array you can copy into Postman, VS Code, or a CI fixture.

Optional trimming removes stray spaces, empty rows can be dropped, and deduplication keeps the first occurrence of each value. Type inference converts integer, decimal, true, false, and null tokens when they appear as standalone items, disable it to keep every entry as a JSON string.

Related: JSON Lines to JSON Converter, List Cleaner.

Frequently Asked Questions

Does it escape special characters in strings?

Yes. Output is produced with JSON.stringify, so quotes, newlines, and Unicode are properly escaped.

Can I keep every value as a string?

Turn off type inference. Numbers and booleans will remain quoted strings in the JSON array.

Is my list uploaded anywhere?

No. Conversion happens locally in the browser.