Loading your toolkit…

YAML formatter

Privacy and drafts

Input and output are processed in your browser, without uploading them.

  • Drafts stay in this tab while you switch tools or return home. Reloading or leaving clears ordinary drafts. Nothing is saved to browser storage. A dot beside a tool marks an edited draft.
  • Copy puts the result on your clipboard. Download saves a file to your device. Clearing a tool does not erase those copies.
  • Share puts the content in a link. Anyone with it can view that content. It lives in the link’s # part, which is not sent to the server; Bearaujus does not store the link. Reopening or reloading it restores the shared content.

Format one YAML 1.2 document, choose list layout, and optionally remove comments. Aliases, custom tags and YAML 1.1 are not supported.

How to use
Copies a link containing this result. Anyone who opens the link can see it. The link is not saved on Bearaujus.
OptionsKeep list style · 2 spaces

Ready to validate YAML.

1 lineLn 1, Col 1
Editable source0 / 500,000
1 lineLn 1, Col 1
Read-only result0 characters

How to use

YAML formatter
  1. Paste one YAML document or open a local UTF-8 file.

  2. Choose the list style and indentation (2 spaces by default), and whether to remove comments.

  3. Review the result and validation messages before copying or saving.

Supported YAML

This formatter accepts one YAML 1.2 document. The format is defined in the YAML 1.2 specification.

This tool does not support aliases, custom tags, multiple documents or YAML 1.1.

Tool limits: 500,000 UTF-16 code units of input and 1,000,000 of output.

List layout and comments
  • Keep list style preserves the existing layout.
  • Lists · separate rows uses block lists.
  • Lists · inline [a, b] uses brackets.

Remove comments is optional. Review configuration changes with Text diff before using the result.

Edited draft in this tab. Switching tools keeps it; reloading clears it.