About the output
- Objects become block mappings and arrays become
-lists, indented with the spaces you choose. Lines are never wrapped, so long strings such as URLs and commands stay on one line. - Strings are only quoted when they need to be — for example
"true","123","yes"or text containing:or#— so the YAML reads back as exactly the same data. - Multi-line strings are written as
|block scalars, which is much easier to read than\nescapes. - Key order is kept as in your JSON unless you tick Sort keys.
Why convert?
Many tools accept both formats but their documentation uses YAML: Kubernetes, Docker Compose, GitHub Actions,
GitLab CI, OpenAPI specs and Ansible. Converting a JSON example (or the output of kubectl get -o json)
into YAML makes it easier to edit and review. To go the other way, use YAML to JSON.
Is my data uploaded?
No. The conversion runs in your browser, so nothing you add is sent to gratistools.be. See the privacy page for details.