Key-value to JSON parser
Parse 'key: value' or 'key = value' lines into a JSON object. Works on a pasted block or on a file you drop in.
Related tools
All Web & network tools →Key-value to JSON parser works straight from this page — free, instant, nothing to install. You will find it under Web & network, with URL parser and JSON key sorter for the neighbouring cases.
How to use it
- Open the tool — no signup or install needed.
- Enter your input or adjust the available options.
- Get your result instantly, then copy or download it.
Frequently asked questions
What does Key-value to JSON parser do?
Parse 'key: value' or 'key = value' lines into a JSON object. Works on a pasted block or on a file you drop in.
When would I actually use this?
Getting usable data out of something that was never meant to be parsed: pulling every address out of a pasted thread, turning a column of lines into a JSON array or an SQL IN clause, renaming a hundred identifiers from snake_case to camelCase in one pass.
What is the most common mistake?
Trusting an extraction to be exhaustive. A pattern that catches every address in the sample will still miss the one wrapped across a line break, the one written with a display name, and the one an email client turned into a link — count what came out against what you expected before you use the list.
How is Key-value to JSON parser different from URL parser?
They sit next to each other but answer different questions: URL parser is the one to open when you need it to break a URL into protocol, host, port, path, query and parameters — percent-encoding decoded, repeated keys kept. Plain text or JSON. Pick whichever matches what you're starting from — both are free.
Is there a tool for the next step?
JSON key sorter is the closest one after this: Sort the keys of a JSON object alphabetically at every level. Arrays keep their order, values keep their exact form — even a 20-digit id — and a syntax error says where it is. Paste the text or drop the file; nothing leaves the page either way.
Where do the figures come from?
Extraction runs on patterns, not on a parser: it recognises the common shapes of an address, a URL or an IP rather than validating them against their specification. That is the right trade for a paste, and the wrong one for input you are about to store.