Paritian

Developers

JSON to YAML Converter

Convert JSON into clean, readable YAML for Kubernetes, Docker Compose, GitHub Actions or any configuration file.

Results

YAML name: Ana age: 30 active: true skills: - Python - SQL address: city: Porto zip: "4000-001"
Values written 7
Nesting depth 2
Lines 9

What this tool does

YAML says the same as JSON with less punctuation: indentation replaces braces, and a dash starts each list item. The trap is that YAML guesses types, so a bare yes, no, on or off can become true or false, 01000 a number and 1.10 a 1.1, which is the famous 'Norway problem' where the country code NO turned into false. This converter keeps every JSON value exactly what it was: numbers stay as written, and any string YAML could misread is put in double quotes, which are also valid JSON. Comments cannot be carried over, because JSON has none.

Formula

object → key: value ; list → - item ; text that looks like a number, date or yes/no stays in quotes

Variables

SymbolMeaningUnit
textJSON—
indentSpaces of indentation—
OUTYAML—
FIValues written—
DPNesting depth—
LNLines—

Worked example

  • JSON{ "name": "Ana", "age": 30, "active": true, "skills": ["Python", "SQL"], "address": {"city": "Porto", "zip": "4000-001"} }
  • Spaces of indentation2
  • YAMLname: Ana age: 30 active: true skills: - Python - SQL address: city: Porto zip: "4000-001"
  • Values written7
  • Nesting depth2
  • Lines9

Limitations

  • The calculation runs entirely in your browser. The values you type are never sent to a server.