Skip to Content
ToDiagram

YAML

Open Kubernetes manifests, Compose files, CI pipelines and other YAML as a diagram.

Paste YAML or open a .yaml or .yml file and ToDiagram draws its structure, the same way it draws JSON: mappings become nodes, keys become rows and lists become linked nodes.

Example

services:
  web:
    image: nginx:1.27
    ports: "8080:80"
    depends_on: api
  api:
    image: orders-api:2.4
    restart: always
    depends_on: db
  db:
    image: postgres:16
    volumes: db-data:/var/lib/postgresql
The Compose file above as a diagram: a services node linked to web, api and db nodes with their settings
The same YAML as a diagram.

Open a YAML example in the editor

Good to know

  • A file must hold one YAML document. If yours has several documents separated by ---, open each one in its own tab.
  • Anchors and aliases are resolved, so the diagram shows the values they stand for.
  • An edit made on the canvas writes the whole document again, so comments and hand formatting can change. Edit the text if you need to keep them.
  • Compare: see what changed between two versions of a file
  • JSON Schema: validate the document

On this page