Toolbox / YAML formatter & validator Runs in your browser中文
Development

YAML formatter & validator

Format parsed YAML, retain comments, and optionally sort mapping keys.

Ctrl / ⌘ + Enter Run

Ready when you are

01

Add your contentPaste text or try a sample

02

Choose an actionClear options. Predictable results.

03

Take it with youCopy, download and carry on

Less switching. More focus.Functional build · Validation in progress

Using this tool

Parse and format YAML documents, retaining comments and optionally sorting keys recursively.

Actions: Format · Validate

Example

Choose Format, two spaces, and key sorting; a comes before z.

Example action and settings

Action: Format
Indentation: 2 spaces
Sort mapping keys recursively: On

Input / action

z: 2
a: 1

Result / expected behavior

a: 1
z: 2

Available options: Indentation · Sort mapping keys recursively

Scope and limitations

  • Duplicate keys are rejected and alias expansion is bounded; formatting may change scalar presentation.

Common mistakes

  • YAML indentation cannot use tabs; passing syntax checks does not prove application configuration validity.

Related tools

JSON to CSV Docker run to Compose

Privacy and browser support

Input is processed in this browser. Do not use real keys or active sensitive credentials as demonstration data. Device features require browser support and your permission.