📄 CSV 转 YAMLCSV to YAML Converter
把 CSV 转成 YAML 列表:每行一个对象,可自动识别数字和布尔值,支持引号字段和自动识别分隔符。Convert CSV to a YAML list of objects, one per row, with optional number/boolean detection, quoted fields and delimiter auto-detection.
使用说明与常见问题How-to & FAQ
「CSV 转 YAML」是什么?What is the CSV to YAML Converter tool?
把 CSV 转成 YAML 列表:每行一个对象,可自动识别数字和布尔值,支持引号字段和自动识别分隔符。Convert CSV to a YAML list of objects, one per row, with optional number/boolean detection, quoted fields and delimiter auto-detection.
如何使用「CSV 转 YAML」?How do I use the CSV to YAML Converter tool?
在「CSV 转 YAML」中,把内容粘贴或输入到上方输入框,按需设置「输入分隔符」,结果会实时显示在下方,点击「复制结果」即可复制。In the CSV to YAML Converter: Paste or type into the input box, adjust "Input delimiter"; the result appears below instantly — click "Copy result" to copy it.
为什么 007 没有变成数字?Why did 007 stay a string?
以 0 开头的编号(邮编、工号等)转成数字会丢掉前导零,所以只识别标准写法的数字;true/false 识别为布尔值,空单元格为 null。不需要时可关闭“识别数字”。Numbers with leading zeros (zip codes, IDs) would lose them, so only canonical numbers are detected; true/false become booleans and empty cells null. Turn detection off to keep everything as strings.
yes、off、1e5 这类值会怎样?What happens to yes, off or 1e5?
它们在不同 YAML 版本里含义不同(YAML 1.1 把 yes/on/off 当布尔值、把 1e5 当字符串;YAML 1.2 把 1e5 当数字),所以作为字符串输出并加引号,例如 'yes'、'1e5',任何解析器读出来都是原文。真正的数字请写成 100000 或 1.5 这样的十进制形式。Their meaning differs between YAML versions (YAML 1.1 reads yes/on/off as booleans and 1e5 as a string; YAML 1.2 reads 1e5 as a number), so they are written as quoted strings such as 'yes' and '1e5' and every parser reads back the original text. Write real numbers in plain decimal form such as 100000 or 1.5.
引号和换行怎么处理?How are quotes and line breaks handled?
按 RFC 4180 解析:用双引号包住的字段可以包含分隔符、换行,两个双引号 "" 表示一个引号;输出时只在必要时加引号。开头的 UTF-8 BOM 会被忽略。Parsed per RFC 4180: double-quoted fields may contain delimiters and line breaks, and "" is an escaped quote; output is quoted only where needed. A leading UTF-8 BOM is ignored.
数据会上传吗?Is my data uploaded?
不会。转换完全在浏览器本地进行,适合处理内部数据。No. Conversion happens entirely in your browser, so it is safe for internal data.
「CSV 转 YAML」免费吗?需要注册吗?Is the CSV to YAML Converter free? Do I need an account?
「CSV 转 YAML」完全免费,无需注册或安装,打开网页即可使用,手机和电脑都能用;输入的内容只在你的浏览器本地处理。The CSV to YAML Converter is completely free with no sign-up or install and works on phones and desktops; what you enter is processed only in your browser.