YAML formatter is a developer tool that formats, validates, and converts YAML documents. It uses the js-yaml parser in safe mode, handles Kubernetes manifests and OpenAPI specs, and converts to or from JSON with configurable indentation. The tool runs in your browser.
ACTION
INDENT
Direct links for specific YAML workflows.
load() with the JSON_SCHEMA safe schema (blocks unsafe tags such as !!js/function). Output re-emitted by dump() with the chosen indentation. Conversion mode round-trips through JSON.parse / JSON.stringify.JSON for YAML-to-JSON and JSON-to-YAML round-trips.---) is parsed but only the first document is re-emitted in single-doc mode.Reviewed and tested May 25, 2026.