What can I convert to an array?
Paste a list of items—one per line—and the tool converts it to a JSON array. You can choose different quote styles: double quotes, single quotes, or no quotes.
Decode and view multiple level JSON strings with ease
Convert any JSON string to one line without spaces or indentation
Generate a JSON schema from a JSON string
Convert a JSON schema to a JSON string
Convert JSON to TOON format for LLM-optimized token efficiency
Convert TOON format back to standard JSON
See how NextJSON can convert your lists to arrays with different quote styles.
Generate array online with different quote styles
apple banana orange grape watermelon pineapple mango strawberry
[ "apple", "banana", "orange", "grape", "watermelon", "pineapple", "mango", "strawberry" ]
Convert a space-separated line to an array
red blue green yellow purple pink
[ "red", "blue", "green", "yellow", "purple", "pink" ]
Convert a comma-separated line to an array
red,blue,green,yellow,purple,pink
[ "red", "blue", "green", "yellow", "purple", "pink" ]
Convert a list with mixed formats (newlines and spaces) to an array
Monday Tuesday Wednesday Thursday Friday Saturday Sunday
[ "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday" ]
Convert a list of numbers into an array, and calculate both the sum and average
1 2 3 4 5 6 7 8 9 10
[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
Enable "Remove Duplicates" to automatically filter out duplicate items from your list
apple banana apple orange banana grape orange apple
[ "apple", "banana", "orange", "grape" ]
Enable both "Remove Duplicates" and "Ignore Case" to remove duplicates while ignoring letter case differences
Apple APPLE banana Banana ORANGE orange Grape grape
[ "Apple", "banana", "ORANGE", "Grape" ]
Select "A → Z" in Sort Order to arrange items alphabetically from A to Z
zebra apple mango banana cherry grape
[ "apple", "banana", "cherry", "grape", "mango", "zebra" ]
Select "Z → A" in Sort Order to arrange items alphabetically from Z to A
zebra apple mango banana cherry grape
[ "zebra", "mango", "grape", "cherry", "banana", "apple" ]
Paste a list of items—one per line—and the tool converts it to a JSON array. You can choose different quote styles: double quotes, single quotes, or no quotes.
Double quotes produce standard JSON (e.g., ["a","b"]). Single quotes and no quotes are useful when you need the output in a specific format for other tools or templates.
Yes! The tool can deduplicate your list, keeping only unique items. Useful when merging lists or cleaning up data.
If your list contains numbers, the tool can calculate the sum and average of those values—handy for quick data analysis.
No, this site does not store or share your data in the cloud. Your data remains private and is kept locally on your broswer.
Yes, we welcome all suggestions! Please feel free to share your feedback using the link at the bottom of the page.