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
- Paste the text you want to run through list to json array.
- Set values as, pretty-print and trim each line.
The 3 settings
| Setting | What it does | Default |
|---|---|---|
| Values as | Choose from 3: Detect automatically, Strings, Numbers. | Detect automatically |
| Pretty-print | On or off. Off by default. | Off |
| Trim each line | On or off. On by default. | On |
Under the hood
| Runs on | plain JavaScript — runs the whole thing |
| Controls | Values 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.