List to Array Converter
Paste a formatted list copied from a document, a Markdown file or a web page.
Strip the list markers
List to Array Converter
// Your converted output will appear here.
The bullet characters and numbering are stripped automatically, so you get the values without hand-editing every line.
How to use the List to Array Converter
Paste the list with its formatting intact
There is no need to strip the bullets or numbers first — that is what this page does.
Check the preview
Confirm the markers are gone and the values are not. A value that legitimately starts with a number and a dot is the case to watch.
Copy the array
JavaScript by default; switch formats from the row above the preview.
List to Array Converter examples
A numbered list
Input
1. Gather requirements 2. Draft the schema 3. Review with the team
Output
const steps = [ "Gather requirements", "Draft the schema", "Review with the team" ];
Markdown bullets
Input
- alpha - beta * gamma
Output
const steps = [ "alpha", "beta", "gamma" ];
Dashes and asterisks are both recognised, as are the round and square bullet characters.
Lettered and roman markers
Input
a) first b) second iii. third
Output
const steps = [ "first", "second", "third" ];
Working with list to array
Which markers get stripped
Leading dash, asterisk, plus and the round, square and triangular bullet characters; numeric markers such as 1. and 1) with or without an opening parenthesis; single-letter markers a. and a); and roman numerals up to six characters. The marker must be followed by whitespace, so a value like 3.14159 is left alone.
When ordering matters
Stripping the numbers discards the labels but not the order — array position preserves it. If the original numbering is itself data, such as a sparse list that jumps from 3 to 7, do not strip it: use the Line to Array Converter and keep the lines as they are.
Indented and nested lists
Leading indentation is trimmed along with the marker, so a nested list flattens into a single array and the hierarchy is lost. For nested data, convert each level separately.
Popular text conversion tools
Line to Array Converter
Convert newline-separated text into an array. Handles CRLF and LF endings, blank lines and the trailing whitespace that copied columns and TXT files carry.
Comma Separated List to Array Converter
Split a plain comma-separated list into an array, trimming the space after each comma and dropping empty values. For quoted CSV fields, use the CSV parser.
String to Array Converter
Use this free online string to array converter to split text by commas, delimiters, whitespace, regex, or visible characters and copy matching code.
JavaScript Array Converter
Turn a list or string into a JavaScript array with const, let or var, single, double or template quotes, and automatic number and boolean detection.
List to Array Converter FAQs
List to Array Converter
Paste a formatted list copied from a document, a Markdown file or a web page. The bullet characters and numbering are stripped automatically, so you get the values without hand-editing every line.