To Array of Words
Splits your text into words and shows them as a JSON array.
0 characters
What is Text to Array of Words?
An array is an ordered list of items. Programmers often need to turn a sentence into an array of words before sorting, counting or searching it.
What this tool does
Splits your text into words and shows them as an array in JSON format, with each word in quotes.
How to use it
- Type or paste your text.
- Leave Auto ticked or press the button.
- Copy the array and paste it into your code.
Did you know?
- The output is valid JSON, so it works in JavaScript, Python and most other languages.
- The number of items in the array is the word count of your text.