SwansonX Tools

Minecraft YAML Formatter

Validate, lint, and reformat plugin YAML. Catches the silent footguns — tabs, smart quotes, YAML 1.1 boolean-likes, leading-zero numbers, and unquoted color codes — and one-click fixes each one.

Indent

Validator No issues

No lint issues detected in the input. Parse-level errors (if any) show in the output panel.

Input

17 lines · 299 chars

Live fix is on — safe fixes (tabs, smart quotes, missing space after colon, line endings, etc.) apply as you type. Toggle it off above to type freely.

Formatted Output

# EssentialsX config.yml — common fields
newbies:
  announce-format: '&dWelcome &f{DISPLAYNAME}&d to the server!'
  spawn: default

chat:
  format: '&7[{GROUP}] &r{DISPLAYNAME}&7: &f{MESSAGE}'
  radius: 0

currency-symbol: '$'
starting-balance: 100.0

commands:
  disabled:
    - help
    - plugins

What the validator catches

  • Tabs in indentation — yaml refuses tabs outright; the fixer swaps each leading tab for two spaces.
  • Smart quotes — pasting from docs or chat apps brings curly “ ” characters that yaml rejects.
  • yes / no / on / off as a value — YAML 1.2 sees a string, SnakeYAML (most Java plugins) sees a boolean. Quoting removes the ambiguity.
  • Leading-zero numbers0644 is octal in SnakeYAML 1.1. Quoting preserves the literal digits.
  • Trailing whitespace + CRLF line endings — cosmetic but can confuse diff tooling and some plugin loaders.
  • Unquoted MC strings— handled by the “Quote MC strings” toggle (runs through the parser, not the raw text).