DuckyTools
Home Convert List to JSON Array

List to JSON Array Convert

Turn a pasted list of lines into a JSON array — strings or numbers.

List to JSON Array is a free online tool that turn a pasted list of lines into a JSON array — strings or numbers. It runs entirely in your web browser using plain JavaScript, so files are processed on your own device and never uploaded to a server. There is no sign-up, no file size limit imposed by the site, no watermark and no paid tier.

Price
Free — no account, no quota, no watermark
Category
Convert
Where it runs
In your browser, on your device
Files uploaded
None
Technology
plain JavaScript
Settings
3
Works offline
Yes, after the first visit

About List to JSON Array

List to JSON Array is one of 18 convert tools on DuckyTools, and like all of them it runs entirely inside this page. Turn a pasted list of lines into a JSON array — strings or numbers.

How to use it

  1. Paste the text you want to run through list to json array.
  2. Set values as, pretty-print and trim each line.

The 3 settings

SettingWhat it doesDefault
Values asChoose from 3: Detect automatically, Strings, Numbers.Detect automatically
Pretty-printOn or off. Off by default.Off
Trim each lineOn or off. On by default.On

Under the hood

Runs onplain JavaScript — runs the whole thing
ControlsValues as, Pretty-print, Trim each line

Questions

What does the values as option change?

It offers 3 choices — Detect automatically, Strings and Numbers. The default is Detect automatically, which suits most cases; change it when your input or your destination calls for something specific.