How do I turn a space separated list into a JSON array?
Paste the list into the box above and run it. Each whitespace-separated item becomes one string in the array.
Is this converter free?
Yes. No account, no item cap and no run limit, because it runs on your own device.
Is my list uploaded?
No. The conversion happens entirely in your browser and nothing is transmitted or logged.
What happens if my list has double spaces?
They are treated as one separator, so you do not get empty items in the middle of the array.
Can the list span several lines?
Yes. Line breaks are whitespace, so they act as separators just like spaces do.
Are numbers turned into JSON numbers?
No. Every item is a string, so 42 becomes "42" and nothing is reinterpreted.
Why does it not detect types?
Because inference damages values like 0042 and 1e5. Keeping strings means what you pasted is what you get.
Is the output valid JSON?
Yes. Quotes and backslashes inside items are escaped, so the array parses as-is.
Does it keep accented or Chinese characters?
Yes, exactly as pasted. Nothing is transliterated or removed.
Does it remove duplicate items?
No. Duplicates are kept in order. Use the remove duplicate lines route for that.
Can I keep empty items?
No. Empty entries are always dropped by this route.
Can I get the array on a single line?
Not from this page. It always pretty-prints, and the JSON minifier compacts it in one more step.
My names got split in half. Why?
Because each name contains a space, and space is the separator here. Use a comma or custom delimiter route instead.
Which delimiter routes exist?
Comma, semicolon, colon, pipe, slash, tab, caret, tilde, double space, and a custom delimiter route.
How long can my list be?
There is no limit, since nothing is being sent to a server to be processed.
Can I upload a text file?
No. It works on text you paste into the page.
Is there an API?
Not currently. This is a browser tool for one list at a time.
Does it work on phones?
Yes, the same as on desktop.
Can it produce an array of objects?
No. The output is always a flat array of strings.
Why is my item count higher than expected?
A value containing a space was split into two items. That count mismatch is the point of checking it.
Is it safe for confidential data?
Yes. Nothing leaves your browser, so there is nothing to transmit or retain.
Can I convert a list of file paths with spaces in them?
Not on this route. Paths containing spaces need a delimiter that is not whitespace, such as the comma or custom delimiter routes.