List to Array

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

0 items / 0 unique
Input Text
0 characters Ctrl+Enter to convert - Drag and drop .txt
Split Input By
Cleaning Options
Output
Output Format
JavaScript options
Customization
Output 0 unique Output
// Your converted output will appear here.
Paste text and click Convert Text, or use Ctrl+Enter.
Your text stays private. All conversion happens locally in your browser using JavaScript. Nothing is uploaded to any server.

The bullet characters and numbering are stripped automatically, so you get the values without hand-editing every line.

How It Works

How to use the List to Array Converter

  1. Paste the list with its formatting intact

    There is no need to strip the bullets or numbers first — that is what this page does.

  2. 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.

  3. Copy the array

    JavaScript by default; switch formats from the row above the preview.

Examples

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"
];
Notes

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.

FAQ

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.