List to JSON Converter

Paste a list to create a JSON array you can copy into code or download as a file. Conversion runs in your browser.

Convert text lines to a JSON array

Paste one item per line. String mode keeps leading zeros and escapes quotes and backslashes so the result can be read by a JSON parser. Repeated items stay in order. Clear Skip blank lines to keep them as string entries.

00123
kit "A"
file\draft
[
  "00123",
  "kit \"A\"",
  "file\\draft"
]

When to convert to numbers

Choose Convert to numbers only for quantities or measurements. For example, 00123 becomes 123. Invalid values and integers outside JavaScript's safe range show the original line number. Decimals use JavaScript number precision.