SG YAML Formatter
YAML Formatter, Validator & Inspector
Clean, inspect and convert common YAML configurations with practical DevOps examples.
sg-eut runtimeKubernetes example
apiVersion: v1
kind: Service
metadata:
name: web
spec:
ports:
- port: 80
targetPort: 8080Useful for checking indentation before applying manifests.
Docker Compose example
services:
app:
image: nginx:latest
ports:
- "8080:80"Format compact service definitions and review mappings/sequences.
Network example
interfaces:
- name: eth0
ip: 192.0.2.10
enabled: trueUseful for automation inventories, firewall templates and device configuration data.
Important YAML validation note
This standalone build intentionally avoids external YAML libraries and CDNs. It performs useful structural checks for common YAML, including indentation, tabs, mappings, sequences, duplicate keys, anchors, aliases and custom tags. The built-in YAML→JSON converter supports common mappings, sequences and scalar values, but it is not a complete YAML 1.2 schema parser. Advanced features such as merge keys, custom tags and block scalars should be validated with the application that consumes the YAML.
