Utill.net

YAML ↔ JSON Converter

Convert YAML to formatted JSON and JSON to YAML for config files, API examples, and infrastructure snippets.

What is this tool?

This YAML and JSON converter moves structured data between YAML and JSON. YAML is commonly used for human-edited configuration, while JSON is common for APIs, schemas, logs, and machine-to-machine payloads.

Conversion works by parsing the source into a data structure and serializing it in the target format. That means comments, anchors, aliases, original quoting style, and some formatting choices may be lost even when the data itself is preserved.

Use it for configuration snippets, Kubernetes examples, CI files, API samples, documentation, and debugging indentation-sensitive YAML by checking the equivalent JSON shape.

How to use

  1. Choose YAML to JSON or JSON to YAML.
  2. Paste valid source content into the input area.
  3. Click Convert and review any parser error.
  4. Copy the converted output and re-check comments, anchors, and formatting details that may not survive conversion.

Examples

Input / settingOutputNotes
YAML name: app{\n "name": "app"\n}Simple mapping converted to formatted JSON.
JSON {"enabled":true}enabled: trueSimple object converted to YAML.
YAML ports:\n - 80\n - 443{\n "ports": [\n 80,\n 443\n ]\n}Sequence converted to a JSON array.

Related tools & concepts

Last reviewed: 2026-05-08