JSON 与 YAML 互转器
在 JSON 和 YAML 格式之间在线转换。免费、隐私、100% 客户端运行。
Local only
最近历史
暂无历史
使用方法
- 将 JSON 或 YAML 粘贴到输入框。
- 选择 JSON 转 YAML 或 YAML 转 JSON 模式。
- 复制或下载结果。
使用此工具的任务
转换 CSV to YAML
转换 tabular CSV data to YAML for structured configuration or documentation. Each row becomes a YAML list item with column headers as keys. 任务
转换 JSON to YAML and back without losing data
Translate 之间 JSON 和 YAML 为配置 files, preserving nested structures, arrays, 和标量 types across round-trip. 任务
转换 XML to YAML
转换 XML documents to YAML for more readable configuration files. YAML's indentation-based syntax is cleaner than XML's tags for human-authored data. 任务
在 JSON 与 YAML 之间迁移配置
将 JSON 配置转为 YAML(或反向),带格式化中间步骤,并在提交文件前了解类型强转陷阱。 任务
解析 JSON5 — JSON with relaxed syntax
JSON5 extends JSON 具有 comments, trailing commas, unquoted 关键, 单个 quotes, 和更多. Learn syntax extensions 和 conversion 到标准 JSON. 任务
Use YAML frontmatter 为 document 元数据
Frontmatter 是 YAML 元数据在 顶部的 Markdown file, delimited 通过 ---. 常见在 静态 site generators (Astro, Hugo, Jekyll) 为 page 元数据. 任务
使用此工具的管道
常见问题
- 支持哪些 YAML 特性?
- 基础 YAML,包含嵌套映射、序列、标量(字符串、数字、布尔值、null)和引号字符串。
- 我的数据会上传吗?
- 不会。所有转换都在浏览器本地完成。
相关工具
YAML 转换器
在线在 YAML 与 JSON 之间转换。免费、隐私本地化、100% 客户端运行。支持嵌套映射、序列、标量(字符串/数字/布尔/null)和带引号字符串,适合配置文件转换、CI/CD 流水线定义和 Kubernetes 清单处理。 工具
JSON 与 XML 互转器
在 JSON 和 XML 格式之间在线转换。免费、隐私、100% 客户端运行。 工具
JSON 与 CSV 互转器
在 JSON 和 CSV 格式之间在线转换。免费、隐私、100% 客户端运行。 工具
JSON 格式化器
在线格式化、压缩或排序 JSON。免费、隐私本地化、100% 客户端运行。支持 2 空格缩进美化、单行压缩、递归按键排序,遇到语法错误会精确定位行号与列号,适合调试 API 响应、配置文件与数据交换格式。 工具