Use this free tool to convert from YAML to JSON. 1. Paste the YAML here that you want to convert then press the button Convert to JSON. apiVersion: v1 kind: Pod metadata: name: myapp spec: containers: - name: myapp image: busybox command: ['sh', '-c', 'echo "Hello, world!"'] 2. Your YAML converted into JSON is below: I hope you found this free tool useful!