Text to JSON
Parse lines containing colon-separated key-value pairs and convert them into a JSON array. Lines without colons are treated as plain values.
Example
Input
name: Alice age: 30 city: NYC
Output
[
{"key":"name","value":"Alice"},
{"key":"age","value":"30"},
{"key":"city","value":"NYC"}
]How Text to JSON Works
Parse lines containing colon-separated key-value pairs and convert them into a JSON array. Lines without colons are treated as plain values.
This tool runs entirely in your browser — no data is sent to any server. Paste your text, click Run, and get your result instantly. You can also chain this tool with others using the pipeline feature: run Text to JSON, then continue with a related tool to build a multi-step text workflow.
Related Tools
TextRefinery is a free, open-source text processing toolkit. Learn more about regular expressions and text processing on the web.