Skip to content

YAML Formatter

Parse and format YAML with two-space indentation while retaining document comments where supported.

Input

27 chars2 lines

Result

Type or paste on the left — the result updates as you type.

Invalid syntax and duplicate keys are rejected. YAML aliases stay as references; formatting does not execute tags.

Up to 100,000 UTF-16 units per input and 1,000,000 per result. See the supported formats and examples below.

Format references

Tool page updated: