Text to JSON Converter

A list, a form or a table from a text file — turned into valid JSON. The mode is detected for you.

Reverse: JSON to Text

Files never leave your device — everything runs in your browser

People turn text into JSON for different reasons: a list for a script, a "Name: Emma" form for an app, a table from the clipboard for an import. The converter understands all three and picks the mode itself; if it guesses wrong, switch it from the list.

Lines mode makes every non-empty line an array item. Key: value accepts a colon, an equals sign or a tab; a repeated key collects its values into an array, and a line without a separator continues the previous value. Table mode treats the first line as headers and detects the delimiter — semicolon, comma, tab or pipe.

There's also whole text to a JSON string, what people search for as string to JSON: line breaks become \n, quotes are escaped, and the text can be dropped into a JSON file or source code. The reverse mode decodes such a string back into plain text.

Nothing is uploaded: parsing and conversion run inside your browser, so API responses, CRM exports and files with personal data stay on your device.

Modes

How to convert text to JSON in 3 steps

  1. 1

    Paste text or load a TXT

    .txt, .csv, .log or text from the clipboard.

  2. 2

    Check the mode

    The chosen mode is shown; switch it or turn on number detection.

  3. 3

    Download the JSON

    Copy the result or save a .json — and convert further to Excel or PDF from here.

Frequently asked questions

Paste it and press Open — the mode is detected from the content.
If you enable number and true/false detection. By default everything stays a string so phone numbers and codes with leading zeros survive.
Text written as a JSON value: in quotes, with \n instead of line breaks and \" instead of quotes. You need it to put multi-line text inside JSON or code.
Yes, files that aren't UTF-8 are detected and converted.

Related tools