YAML ⇄ JSON

Convert between YAML, JSON and TOML

YAML ⇄ JSON is a free online Developer tool. Convert between YAML, JSON and TOML Related terms: yaml · json · toml · convert · 转换. Use it on this page without signing in.

修改任一文本框,另两个自动同步。TOML 仅支持基本类型和嵌套表,复杂数组/对象可能不完整。

Help

使用说明

  1. 在输入框粘贴 YAML、JSON 或 TOML 内容
  2. 选择目标格式,自动完成互转
  3. 结果实时显示在另一侧
  4. 可一键复制转换结果

常见问题

  • 数据处理安全吗? 全程浏览器本地解析转换,不发送任何数据
  • 转换报错? 请检查源文件缩进与语法,YAML 对缩进敏感
  • 保留注释吗? JSON 不支持注释,转 JSON 时注释会丢失

补充说明

YAML 靠缩进表示层级,建议用空格而非 Tab;TOML 适合配置文件,类型语义更明确。

More Developer

View all

FAQ about YAML ⇄ JSON

What can YAML ⇄ JSON do?

YAML ⇄ JSON is a Developer tool. Convert between YAML, JSON and TOML You can finish the job on this page.

Who should use YAML ⇄ JSON?

Anyone handling yaml · json · toml · convert · 转换 who does not want to install desktop software can use YAML ⇄ JSON in the browser.

Is YAML ⇄ JSON safe? Is my data uploaded?

This tool runs in your browser. We do not collect the content you enter into YAML ⇄ JSON just because you used it.

What similar tools exist?

Related tools in the same Developer group are listed at the bottom of this page.