代码、数据与二维码工具

CSV 转 YAML

CSV 转 YAML;输入、输出与参数范围在实施前细化。

优先本地处理无需注册隐私说明 ↗

Paste up to 10,000 data rows and 500 columns. Maximum 100,000 characters.

Headers must be non-empty and unique. Empty cells stay empty strings.

使用步骤

如何使用

  1. Paste CSV with quoted fields, line breaks, or escaped quotes.
  2. Choose the separator, header behavior, type detection, and YAML indentation.
  3. Review the YAML, copy it, or download it as a .yaml file.

CSV parsing that respects real fields

Quoted commas, quoted line breaks, and doubled quotes are parsed according to common CSV rules. Rows must have the same number of fields, and header names must be non-empty and unique.

Safe YAML values

Optional type detection converts true, false, null, and safe numeric values. Empty cells remain empty strings unless you choose type detection, which still keeps blank cells as empty strings.

Local and bounded

Conversion, copying, and downloading run in this browser. Input is limited to 100,000 characters, 10,000 data rows, and 500 columns.

常见问题

你可能还想知道

Does this upload my CSV?

No. The CSV is parsed and converted locally in your browser.

How are duplicate columns handled?

Duplicate or empty header names produce a clear error so the YAML keys stay unambiguous.

Can I convert CSV without headers?

Yes. Turn off the header option and the tool creates column_1, column_2, and so on.

Are values always strings?

You can keep every cell as text or enable detection for booleans, null, and safe numbers.