Skip to main content

Format YAML online with 2- or 4-space indentation and syntax checks. Keeps comments, anchors and multiline text without expanding aliases; application-specific configuration still needs validation.

Comments and anchors are retained and aliases are not expanded. Formatting is not the same as verifying that the application configuration is correct.

71 / 100,000 characters

Shortcut key: Ctrl/⌘+Enter. Modifying inputs or options clears old results.

Instructions for use

  1. Paste the YAML configuration, or load the multiline text example.
  2. Select the indentation and process it, and modify it according to the prompts if there is an error.
  3. Checks comments, anchors, and multiline strings and copies the results.

Input and output examples

Example input
service: {name: Cereio, enabled: true}
Example output
service: { name: Cereio, enabled: true }

This style can be preserved when input uses streaming mapping; the indentation selection does not force rewriting of all YAML styles.

FAQ

No. Anchors and aliases are kept according to the document structure to avoid expanding repeated references into large amounts of data.

Calculation basis and reference materials

Check syntax and adjust formatting according to YAML document structure, preserving comments, anchors, and aliases. Aliases are not expanded into duplicate data, and whether the configuration is valid still depends on the application using it.

Content check: · About this site and content description

Related tools