Convert Space Text to JSON Array

Convert space separated text to a JSON data array

Input Text

JSON Array

Space Separated Text to JSON Array

When simple lists are separated by single spaces, getting them into JSON can be fiddly. This tool handles the splitting and quoting for you.

Enter your space separated text, convert it, and you will receive a JSON array ready for immediate use in JavaScript or any configuration file.

Space Converter FAQ

Will multiple spaces break the conversion?

Extra spaces are treated as separators only when they match the single space delimiter. Consecutive spaces are trimmed.

Is it private?

Yes. Everything processes in the browser so your data remains on your machine.

Can I mix spaces with other delimiters?

For mixed delimiters, use the custom delimiter version of the tool and specify the exact separator you need.

Will tabs be recognized?

Tabs are treated as characters. To split on tabs use the dedicated tab converter page.