YAML 转 CSV 转换器 — 对象数组
在浏览器中即时将 YAML 对象数组转换为 CSV。嵌套字段自动以点号路径展平,无需上传,无需注册。
100% client-side · no upload. YAML is parsed and converted inside your browser. Nothing is sent to a server.
Detected columns
Paste YAML above and click Convert.
How to use
- Paste a YAML sequence (array of objects) into the input box above.
- Click Convert to CSV — nested fields are automatically flattened using dot notation.
- Click Copy CSV to paste into Excel or Google Sheets, or Download .csv to save the file.
Related data tools
Common use cases
常见问题
- What YAML formats does this converter support?
- The tool is optimised for a YAML array of objects — the most common format when exporting data from APIs, databases, or configuration systems. Each item in the sequence becomes one CSV row. Primitive sequences (a list of strings or numbers) are also supported, producing a single-column CSV.
- How are nested objects and arrays handled?
- Nested objects are flattened using dot notation. For example, a field address.city in YAML becomes the column header address.city in the CSV. Nested arrays are indexed: tags[0], tags[1], etc. This mirrors the behaviour of tools like jq and most ETL pipelines, so the output imports cleanly into Excel, Google Sheets, or pandas.
- What if my YAML has missing or inconsistent keys across items?
- The converter collects every key that appears in any row, then fills blank cells with an empty string for rows that lack that key. You always get a rectangular CSV — no jagged columns, no crashes on partial data.
- Does my data leave my device?
- No. All parsing and conversion happens entirely inside your browser using the js-yaml library. Your YAML is never uploaded to any server, never stored in the cloud, and never logged. The tool works fully offline once the page has loaded.
- Does it work on mobile?
- Yes. The tool works in any modern browser — Safari on iPhone and iPad, Chrome on Android, Edge on Windows. Paste your YAML into the text area and tap Convert. Download saves the CSV to your device.
Last updated: By jarvisbox