YAML ↔ JSON Converter¶
Convert YAML to JSON and JSON to YAML in your browser. Choose readable (pretty) or one-line JSON output when converting from YAML.
How to Use¶
- Select direction: Choose YAML → JSON or JSON → YAML
- Paste input: Enter your content in the text area
- JSON format (YAML → JSON only): Pick pretty-printed or one-liner output
- Convert: Click Convert or press the button after editing
Ready
Features¶
- Bidirectional: Convert YAML to JSON or JSON to YAML
- JSON formats: Pretty-printed (readable) or compact one-liner
- Swap & reverse: Move output to input and flip direction in one click
- Copy output: One-click copy to clipboard
- Responsive design: Works on desktop and mobile
Privacy & Security¶
🔒 100% Client-side: All processing happens in your browser. No data is sent to any server or saved anywhere.
Examples¶
YAML → JSON (pretty)¶
YAML → JSON (one-liner)¶
Same input produces: