CSV to JSON Converter
CSV to JSON Converter online: fast, private and free for everyday document work.
Pull simple key-value pairs out of YAML into JSON, in your browser. It reads flat top-level pairs only — lists and nested blocks are skipped.
Your browser is preparing the tool. It runs 100% locally.
Paste YAML and get JSON from its top-level key: value pairs. The tool reads each line, turns numbers into numbers and strips quotes from strings. It is deliberately simple: list items and nested blocks are not parsed — a key with an indented block becomes an empty object, and dash list items are skipped. For flat YAML it is quick and handy; for complex YAML, use a full parser. Runs in your browser.
This extracts the flat, top-level key-value pairs from a YAML document and returns them as JSON. Each key: value line becomes a JSON property, with a numeric value turned into a number and surrounding quotes removed from a string.
It is not a complete YAML parser. Lists written as dash items and nested mappings are not read — a key followed by an indented block comes out as an empty object, and indented list items are skipped. It is built for simple, flat YAML.
Paste or type YAML. The tool scans it line by line.
Each line that looks like a top-level key followed by a colon and a value becomes a JSON property. A bare number is stored as a number; otherwise the value is a string with any surrounding quotes removed.
A key with no value after the colon (an indented block beneath it) becomes an empty object. Copy the JSON or download it — all in your browser.
key: value at the top level = a JSON property
numeric value = a number; otherwise a string (quotes stripped)
key: with nothing after it = an empty object
dash list items and indented blocks = skippedThe YAML key: value followed by a list: line with two indented dash items becomes {"key": "value", "list": {}} — the dash items are not read, so list becomes an empty object.This is a flat-pair extractor, not a YAML parser. For lists, nesting or anchors, use a full YAML library.
Your YAML is parsed and converted entirely in your browser — there is no server and nothing is uploaded.
The data never leaves your device, so even sensitive records stay private.
No account, no stored copy; the conversion is gone when you close the tab.
| Input | YAML (flat key-value) |
|---|---|
| Output | Indented JSON (.json) |
| Reads | Top-level key: value pairs |
| Skips | Lists and nested blocks |
| Numbers | Coerced to numbers |
| Quotes | Stripped from strings |
| Processing | 100% in-browser |
This is a flat-pair extractor, not a real YAML parser. It reads top-level key-value lines and nothing else. Lists written as dash items are skipped, and a key with an indented block beneath it becomes an empty object.
Because nesting and lists are dropped, complex YAML loses data silently — you get only the simple top-level pairs. For anything beyond a flat map, use a full YAML library.
Value handling is basic: a value that is purely numeric becomes a number, and surrounding single or double quotes are stripped from a string. There is no boolean, null or date interpretation.
It does not understand anchors, multi-document streams, multiline block scalars, flow style, or comments — any line that does not match the simple key-value shape is ignored.
For dependable results, convert flat YAML only, or move to a dedicated parser. To produce YAML from JSON, use the JSON to YAML converter.
Pull the top-level settings out of a YAML config into JSON quickly.
Convert a flat list of key: value pairs into JSON for a script.
See the simple pairs of a YAML file as JSON without installing anything.
Turn a handful of settings into JSON during early development.
For real YAML with lists and nesting, use a full YAML parser or library. To convert JSON into YAML, use the JSON to YAML converter.
Reads your YAML line by line and converts the flat, top-level key: value pairs into JSON, coercing numbers and stripping surrounding quotes. It is a lightweight extractor, not a full YAML parser: list items and nested blocks are skipped. Runs entirely in your browser.
CSV to JSON Converter online: fast, private and free for everyday document work.
Convert with JSON to CSV Converter, preserving structure and data, with zero uploads.
Markdown to HTML in seconds — accurate, free and processed locally in your browser.
Convert with CSV to Excel Converter, preserving structure and data, with zero uploads.
Excel to CSV Converter online: fast, private and free for everyday document work.
Convert with Excel to JSON Converter, preserving structure and data, with zero uploads.
It is free, private and runs entirely in your browser — no sign-up, no uploads, no limits.