List to Array / JSON Converter

Line-by-Line List → Programming Array

Convert List to Array
Result updates live as you type or change settings
About
Contact

About List to Array / JSON Converter

This tool turns a plain list of text — one item per line, like names, tags, or IDs — into a properly formatted programming array, ready to paste directly into JavaScript, JSON, Python, or any language that uses a similar array syntax. Special characters like quotation marks and backslashes inside an item are automatically escaped, so the result is always valid, parseable output rather than something that would break your code. Choose single or double quotes, a single-line or one-item-per-line layout, and optionally have plain numbers left unquoted automatically. All processing happens locally in your browser; your text is never uploaded to a server.