格式化与代码
YAML 转 JSON 转换器
免费的 YAML 转 JSON 转换器。粘贴任何有效的 YAML,即可获得整洁的 JSON。非常适合 Kubernetes 清单、CI 配置和 OpenAPI 规范。
Runs in your browser
YAML · source
lines: 0chars: 0size: 0 B
YAML
JSON · target
lines: 0chars: 0size: 0 B
JSON
编辑注
Understanding · Same data, looser syntax.
本深度章节目前仅有英文版本。上方的转换工具支持您的语言;长篇说明文章尚未翻译。
常见问题
Quick answers.
›What YAML version is supported?
YAML 1.2 — the modern superset of JSON. Anchors, references, multi-line strings and nested structures all work.
›Are comments preserved?
No — JSON doesn't support comments, so they're stripped on conversion.
›What if my YAML is invalid?
You'll see a clear error with the line and column. Common issues: tabs (use spaces), inconsistent indentation, unquoted special chars.
›Is my YAML uploaded?
No — runs entirely in your browser.
›Is the converter free?
Yes — fully free, no signup.
大家也在搜索
Use with
What people reach for next.
相关工具