Lines to a JavaScript array
Turn one item per line into a ready-to-paste JavaScript array literal.
Paste a list with one item on each line and get back a JavaScript array declaration you can drop straight into a file. Each line becomes a double-quoted string, the whole thing is indented one item per line, and the declaration is named for you — blank lines and stray leading or trailing spaces are dropped on the way in, because a list copied out of a spreadsheet or a chat message almost always carries them.
This is the same tool as the text to array converter with the delimiter fixed to a line break, so if you need single quotes, a different variable name, a compact one-line array or the numbers left unquoted, open it on its own page and every option is there. Nothing is uploaded — the conversion happens in your browser.
Questions
Build your own chain in the pipeline builder.