Clean up a CI configuration
Normalize indentation in a workflow file without discarding comments, anchors, or multiline commands.
Processed locally
Format and validate YAML locally while preserving comments, document order, anchors, aliases, quoted values, and block scalar styles.
Overview
YAML Formatter parses, validates, and reformats YAML while preserving meaningful structure such as comments, anchors, aliases, quoted values, and block scalar styles. It also reports precise syntax issues for malformed documents.
Workflow
Follow the core workflow below. Use “Show in tool” to locate the real control in the live tool above.
Paste YAML into the editor or use Load YAML. If formatting style matters, choose 2-space or 4-space indentation before formatting.
YAML editorLoad YAMLIndentUse Format to normalize the document presentation. Use Validate when you want to run the local YAML checks and review whether the current syntax is valid.
FormatValidateOpen Issues when the tool reports a problem. Select an issue to move back to the relevant line and correct the YAML in the editor.
IssuesSyntax errorOnce the YAML is ready, use Copy or Download. Copy Agent Context is available separately when you need focused context for a coding-agent workflow.
CopyDownloadCopy Agent ContextYou have readable YAML with a clear local validation state and can copy or download the result.
Practical cases
Normalize indentation in a workflow file without discarding comments, anchors, or multiline commands.
Use the validation message and line context to find an invalid mapping, sequence, or scalar.
Troubleshooting
From evidence to action
Send your coding agent the validation message, the smallest relevant YAML fragment, and the intended configuration behavior. Avoid sharing an entire secrets-bearing configuration when a focused excerpt is enough.
Developer guides
Understand the concept, inspect a testable example, then open it in the tool above.
FAQ