Review configuration before a commit
Make indentation consistent to inspect nesting and comments. Layout alone cannot confirm parameter names or whether the target software accepts them.
Reindent YAML, normalize its presentation, and detect common structural issues directly in your browser.
Reindent a YAML document without converting it to JSON. The formatter parses the structure before rewriting it, distinguishing mappings, lists and standalone text. It retains the document representation of comments, anchors and multiline values instead of rebuilding only their resolved values. Use it for versioned configuration or an excerpt you need to share with a team. Your file stays in the browser; processing does not access remote repositories or deployment services.
The parser defaults to YAML 1.2 and honors supported version directives. Once the document is recognized, serialization applies the chosen indentation, with a minimum of two spaces. Lists and mappings are identified syntactically rather than by replacing spaces on every line, which could alter literal string content.
Duplicate keys within a mapping, invalid syntax and multiple documents in one input are rejected. Tabs cannot indent YAML structure, although a tab may belong to a value depending on its syntax. A scalar such as not yaml is valid: YAML is not restricted to key/value pairs.
Formatting operates on the YAML document without expanding aliases into JSON objects. Anchors and comments can therefore remain represented. Large integers retain their spelling instead of passing through rounded JavaScript numbers. Presentation spaces, quotation styles and spacing inside compact collections may be normalized; output is not a byte-for-byte copy.
Success means this parser can read the document, not that your application accepts its settings. It does not load files named in configuration paths or interpret custom tags according to application rules. Older YAML consumers may also apply different typing rules, so check the version expected by your environment.
Paste the complete text including comments. If a file contains multiple documents separated by ---, process each document individually.
Select an offered width and run formatting. If it fails, check for an unclosed mapping, duplicate key or invalid structural indentation.
Compare multiline values and comments before copying or downloading YAML. Editing the source or indentation hides the previous result.
Make indentation consistent to inspect nesting and comments. Layout alone cannot confirm parameter names or whether the target software accepts them.
Prefer formatting over a JSON round trip when comments and anchor names help explain how a file works.
Check that YAML can be read, then validate application-specific requirements separately using your project’s own tooling.
Three spaces are valid indentation here. The default two-space width realigns child while retaining the note comment.
Input
# note
root:
child: 1Result
# note
root:
child: 1
The parser recognizes items as a list and active as a boolean. Flow notation remains a list; only presentation spacing is normalized.
Input
items: [a, b]
active: trueResult
items: [ a, b ]
active: true
YAML allows a scalar at the root. not yaml is a valid string even if a particular application requires a configuration object. Format syntax and application contracts are separate checks.
The engine retains their representation in the YAML document rather than passing through JSON. Layout may change, but they are not deliberately discarded as they would be in a format without comments.
No. Parsing checks the YAML document without knowing cluster resources, API versions or constraints. Follow it with the validations provided by your Kubernetes environment.
Readers may interpret repeated names differently. Rejecting them prompts you to choose the intended value or structure explicitly instead of silently losing one occurrence.
Related tools
Tools similar or complementary to this one.
Convert JSON data to YAML or YAML data to JSON directly in your browser.
Format, minify, and validate JSON to make it easier to read or more compact.
Convert text between LF, CRLF and CR line endings.
Understand ISO 8601 week numbers, Unix timestamps in seconds or milliseconds, and the difference between human-readable dates and technical time values.