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 仅支持基本类型和嵌套表,复杂数组/对象可能不完整。
使用说明
- 在输入框粘贴 YAML、JSON 或 TOML 内容
- 选择目标格式,自动完成互转
- 结果实时显示在另一侧
- 可一键复制转换结果
常见问题
- 数据处理安全吗? 全程浏览器本地解析转换,不发送任何数据
- 转换报错? 请检查源文件缩进与语法,YAML 对缩进敏感
- 保留注释吗? JSON 不支持注释,转 JSON 时注释会丢失
补充说明
YAML 靠缩进表示层级,建议用空格而非 Tab;TOML 适合配置文件,类型语义更明确。
More Developer
View allJSON Formatter
Format, minify, validate JSON, convert to Go struct / TS interface
JSON Field Search
Search JSON by field, value or path with highlights, supports jq expressions
Timestamp Converter
Convert between Unix timestamps and dates, seconds and milliseconds
Cron Expression
Generate and parse cron expressions, preview next run time
UUID Generator
Generate UUID v4 / v7 / ULID / NanoID
Hash Calculator
Compute MD5 / SHA1 / SHA256 / SHA512 of text or files
JWT Decoder
Decode JWT header and payload, view expiry time
URL Encoder / Decoder
Encode and decode URL / URI components
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.