Report

Help us improve this tool

List to Array Converter

Turn line-separated or delimited lists into JSON, JavaScript, PHP, or Python array literals in your browser.

O M T

Convert delimited lists into code-ready arrays

Paste a column of values, a comma-separated inventory, or any custom delimiter pattern and export a ready-to-paste array for JSON, JavaScript, PHP, or Python. Pair this with the Change List Separator tool when you need to normalize separators before conversion.

Frequently Asked Questions

Which output format should I choose?

Pick JSON for APIs and config files, JavaScript or PHP for application code, and Python for scripts or notebooks.

Can I split on regular expressions?

Yes. Switch separator mode to regular expression and enter a pattern such as [,;] to split on commas or semicolons.

What does number coercion do?

When enabled, plain numbers become numeric literals and true/false tokens become booleans inside the generated array.