Tools
Runs locally

Lines to JSON

A JSON array of the non-empty lines.

Ctrl+Enter runs. Ctrl+Shift+Backspace clears.

Export and import are available after you sign in. Sign in

A JSON array of the non-empty lines. Runs in the browser. Nothing is uploaded.

About this tool

Turn a column of names, IDs or tags into a JSON array for code, a config file or an API request. Every non-empty line becomes one string in the array.

How to use it

  1. 01

    Paste the list, one item per line.

  2. 02

    Get the JSON array.

  3. 03

    Copy it into your code or request.

FAQ

Frequently asked questions

Are empty lines included?

No. Only non-empty lines become array items.

Are values converted to numbers?

No. Every item is a string, so values such as 007 keep their leading zeros.