Convert plain key:value text into structured JSON or XML. Paste config files, form data, or notes in key: value format and get clean JSON or XML output instantly.
This tool parses plain text in key: value format — one pair per line — and converts it into a structured JSON object. Spaces around the colon are ignored. Numbers are automatically converted to numeric types; everything else becomes a string.
Each line should be a key: value pair. Keys with spaces are converted to underscores. Examples:
name: John Doe → "name": "John Doe"age: 30 → "age": 30 (numeric)first name: Alice → "first_name": "Alice"Convert programmatically: POST /api/v1/datatools/convert/text-to-json with body {"input": "name: John\nage: 30"}
For XML: POST /api/v1/datatools/convert/text-to-xml with optional "rootTag": "record"
url: https://example.com correctly produces "url": "https://example.com".