YAML to JSON
YAML comments do not exist in JSON and are silently dropped. If your config carries documentation in comments, this conversion loses it.
Loading converter
What survives the conversion
Derived from what each format is able to store, not from what the conversion promises.
Kept
- Nested structure
- Data types
Lost
- Comments
- Anchors and references
Parsed with js-yaml, re-serialised as JSON with two-space indentation.
Not for a config file people edit by hand. Comments are usually why it is YAML.
About these formats
What is a YAML file?
YAML is an indentation-based data format designed to be easier for humans to write than JSON, and it is a superset of it. It supports comments and reusable anchors, which is why it dominates CI pipelines and infrastructure configuration. Indentation errors are its classic failure mode.
Read the format guideWhat is a JSON file?
JSON is a lightweight text format for structured data, standardised as ECMA-404. It supports objects, arrays, strings, numbers, booleans and null, and nothing else. That deliberate minimalism is why it replaced XML as the default format for web APIs and configuration.
Read the format guideCommon questions
Does converting YAML to JSON lose anything?
Yes. Comments, Anchors and references cannot be carried into JSON and are dropped. YAML comments do not exist in JSON and are silently dropped. If your config carries documentation in comments, this conversion loses it.
Are my files uploaded when I convert YAML to JSON?
No. The conversion runs in your browser tab, so the file is never transmitted and the page works offline once loaded.
What settings does Filoven use for YAML to JSON?
Parsed with js-yaml, re-serialised as JSON with two-space indentation.
When should I not convert YAML to JSON?
Not for a config file people edit by hand. Comments are usually why it is YAML.
Related conversions
This page uses the YAML ⇄ JSON, which handles other formats too.
Last updated 2026-08-03