YAML to JSON
Use this to feed configuration files (Compose, Kubernetes, CI) into tools and APIs that expect JSON, or to check what a YAML file really contains.
- Processing
- In your browser, in a background worker
- Engine
- yaml (eemeli/yaml), YAML 1.2 core schema
- Quality
- Changes structure
- Batch
- Up to 20 files at once
- Status
- Tested with sample files
How to convert YAML to JSON
- Open the converter and add your YAML files — drop, paste or choose from your device.
- Check the options: indent.
- Convert and download the JSON file. It is checked before it is offered.
What to expect
- Anchors, aliases and << merge keys are expanded into plain values, so the JSON shows the configuration as programs see it.
- Comments cannot exist in JSON and are dropped, with a warning.
- For safety FileLynx uses the YAML 1.2 core schema: custom tags such as !!python/object are rejected and alias expansion is capped to stop “billion laughs” files.
- A file with several documents separated by --- becomes a JSON array.
What carries over
Kept
- All values and types representable in JSON
Changed or removed
- Comments (dropped)
- Anchors, aliases and << merge keys are expanded into plain values
- Custom tags (rejected for safety)
Options
- Indent
- 0 (minified) to 8 spaces.
Limits
- Desktop: 25 MB per file, 500,000 rows.
- Phones and tablets: 8 MB per file, 150,000 rows.
Limits protect your device’s memory. They are conservative engineering defaults, not guarantees for every device.
Common problems
- “The JSON is not valid”
- FileLynx reports the position of the syntax error. A common cause is a trailing comma or a single-quoted string.
- Accented characters look wrong in Excel
- Turn on the Excel BOM option when exporting CSV, or import the file with UTF-8 encoding.
- Large numbers changed
- Integers above 9,007,199,254,740,991 cannot be represented exactly; FileLynx warns you when it detects them.
About the formats
YAML
YAML is a human-friendly configuration language used by Docker Compose, Kubernetes, CI pipelines and many apps.
Good for: Hand-edited configuration with comments.
Watch out: Indentation is significant, and anchors and custom tags can make files behave unexpectedly.
JSON
JSON is the data format of web APIs and configuration: nested objects, arrays, strings, numbers, booleans and null.
Good for: APIs, configuration and nested data.
Watch out: JSON numbers lose precision beyond about 15–17 significant digits in JavaScript-based tools.
Questions
Why was my file rejected for a custom tag?
Tags like !!python/object or !Ref are application-specific instructions. FileLynx does not execute or guess them; remove or replace them first.
Are yes/no converted to booleans?
No. Under YAML 1.2 only true and false are booleans; yes and no stay as strings.