JSON to YAML

Use this to write configuration by hand in YAML when your data starts out as JSON.

Convert JSON to YAML Free, and your files are never uploaded.
Processing
In your browser, in a background worker
Engine
yaml (eemeli/yaml), YAML 1.2 core schema
Quality
Lossless
Batch
Up to 20 files at once
Status
Tested with sample files

How to convert JSON to YAML

  1. Open the converter and add your JSON files — drop, paste or choose from your device.
  2. Check the options: indent.
  3. Convert and download the YAML file. It is checked before it is offered.

What to expect

  • All JSON values and types carry over; key order is kept.
  • Strings that would otherwise read back as numbers, booleans or null — such as "1.0", "true" or "null" — are quoted automatically.
  • Large integers beyond JavaScript’s safe range are flagged.

What carries over

Kept

  • All values and types

Changed or removed

  • Key order is kept; formatting is regenerated

Options

Indent
2 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

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.

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.

Questions

Is the conversion reversible?

Yes. Converting the YAML back to JSON gives the same data (formatting aside).