Converters

Text to JSON Converter

Paste plain text below to convert each line into an element of a JSON array.

What does this tool do?

Paste plain text below to convert each line into an element of a JSON array. Everything runs locally using JavaScript in your browser — nothing you paste or upload is ever sent to a server.

How to use this tool

  1. Paste your plain text into the left-hand box.
  2. Click Convert to JSON.
  3. Copy the json output from the right-hand box.

Frequently asked questions

How does this tool split my text into an array?

Every line becomes one string element in the resulting JSON array, in the same order as your input.

Are empty trailing lines included?

No — trailing blank lines at the end of the input are trimmed automatically so you don't get empty strings in the output.

What's a common use case for this?

Turning a plain list — like a list of names, tags, or file paths — into a JSON array you can paste into code or an API request.