a11y.skipToMainContent
1

YAML 到 TOML 转换器

在 YAML 和 TOML 格式之间转换 。 支持嵌入对象,阵列,多行字符串,并可配置缩进.

More options
Was this tool helpful?
Send output to:
Advertisement

How to use YAML to TOML Converter

  1. 将 YAML 或 TOML 粘贴到上面的输入框中 .
  2. 选择转换方向(YAML为TOML或TOML为YAML).
  3. 必要时调整缩进宽度.
  4. 单击转换以查看结果.

{姓名}是什么来着?

YAML被广泛用于配置文件(Docker Compose,Kubernetes,Ansible,CI/CD 管道),而TOML则被许多软件包管理器所偏好(Cargo,pip,Go). 在迁移项目或在不同工具生态系统之间工作时,它们之间的转换很常见。

这种双向转换器处理嵌入式缩进式YAML对象,带有破折号前缀的阵列,多行字符串(QQ和 > 指标),注释和内行集合. 反向将 TOML 转换回可读的 YAML.

Advertisement

FAQ

它支持 YAML 多行字符串吗 ?
对 支持带有 QQ( 立体块) 和 > ( 叠加块) 指示器的 YAML multline 字符串.
它处理YAML的评论吗?
对 从#开始的评论在转换时被正确解析并被忽略.
我可以把TOML转换回YAML吗?
对 使用向下滴放从TOML模式切换到YAML模式.
我的数据上传到哪里了?
没有 所有转换都发生在您的浏览器中 。 没有任何信息发送到任何服务器 .

Related tools

Author

MW
Marcus Webb"The DevTool Craftsman"

Full-Stack Developer & Tools Architect

Marcus has been writing code since the dial-up era. He has contributed to open-source developer tools, built CI/CD pipelines for startups, and debugged production incidents at 3 AM more times than he would like to admit. His philosophy is that the best developer tool is the one that gets out of your way, and he writes about practical tooling that helps teams ship faster with fewer headaches.

Advertisement