Validator Free Tool

YAML Validator & Formatter

Validate YAML and YML config files for Minecraft plugins and game servers. Catches tabs, indentation errors, and syntax issues instantly.

Published Jan 14, 2026

Supported extensions: .yml, .yaml

How to Use This Tool

  1. Paste your YAML into the input area above
  2. Click Validate & Format to check for errors
  3. If valid, the formatted output appears with consistent indentation
  4. Copy or download the cleaned-up YAML file

Enable “Validate as I type” for real-time feedback while editing.

The #1 YAML Mistake: Tabs vs Spaces

YAML Does Not Allow Tabs

This is the most common YAML error. YAML strictly forbids tab characters for indentation. You must use spaces only. Many text editors insert tabs by default — this breaks YAML files silently.

# ❌ WRONG - using tabs (invisible but breaks everything)
settings:
	enabled: true    # Tab character here!
	max-players: 20

# ✅ CORRECT - using spaces
settings:
  enabled: true      # 2 spaces
  max-players: 20

How to Fix Tab Issues

  1. In VS Code: Enable “Render Whitespace” to see tabs vs spaces
  2. Find & Replace: Search for \t and replace with spaces
  3. Editor Settings: Set your editor to insert spaces when you press Tab

Common YAML Errors

1. Inconsistent Indentation

All items at the same level must have identical indentation:

# ❌ WRONG - mixed indentation (2 and 4 spaces)
settings:
  enabled: true
    max-players: 20    # 4 spaces - wrong!

# ✅ CORRECT - consistent indentation
settings:
  enabled: true        # 2 spaces
  max-players: 20      # 2 spaces

2. Missing Space After Colon

YAML requires a space after the colon in key-value pairs:

# ❌ WRONG - no space after colon
name:MyServer
port:25565

# ✅ CORRECT - space after colon
name: MyServer
port: 25565

3. Unquoted Special Values

Some values need quotes to be interpreted correctly:

# ❌ WRONG - these get misinterpreted
version: 1.20        # Becomes float 1.2
enabled: yes         # Becomes boolean true
password: @secret    # @ is special character

# ✅ CORRECT - use quotes
version: "1.20"      # String "1.20"
enabled: "yes"       # String "yes"
password: "@secret"  # String "@secret"

4. Nested Quote Escaping

Be careful with quotes inside strings:

# ❌ WRONG - unescaped quotes
message: Click the "download" button

# ✅ CORRECT - escape or use different quotes
message: 'Click the "download" button'
message: "Click the \"download\" button"

Games & Plugins That Use YAML

Game/PluginConfig FilesCommon Issues
Spigot/Paperspigot.yml, paper.ymlNested structure complexity
Essentialsconfig.yml, worth.ymlDeep nesting, special characters
LuckPermsconfig.ymlPermission node formatting
WorldEditconfig.ymlPath formatting
WorldGuardconfig.yml, region filesFlag values
VaultVarious plugin configsCross-plugin compatibility

Minecraft Server Admins

After editing any YAML config, always validate before restarting your server. A single misplaced space can prevent your plugins from loading.

YAML Syntax Quick Reference

ElementSyntaxExample
StringsUsually no quotesname: My Server
NumbersNo quotesport: 25565
Booleanstrue/falseenabled: true
Nullnull or ~value: null
ListsDash prefix- item1
- item2
Inline ListsBracketsitems: [a, b, c]
CommentsHash prefix# This is a comment

Valid YAML Structure

# Server configuration
server:
  name: My Minecraft Server
  port: 25565

settings:
  max-players: 20
  whitelist: true
  motd: "Welcome to the server!"

# List of admin users
admins:
  - PlayerOne
  - PlayerTwo

# Nested configuration
worlds:
  world:
    difficulty: normal
    spawn-monsters: true
  world_nether:
    difficulty: hard

Was this tool helpful?

Frequently Asked Questions

YAML strictly forbids tab characters for indentation — this is part of the YAML specification, not just a convention. Use spaces only, with 2 or 4 spaces per indentation level recommended. Many text editors insert tabs by default, which breaks YAML files.

This error usually means there's a tab character, special character that needs quoting, or an unexpected symbol. First, replace all tabs with spaces. Then check for special characters like @, *, or & at the start of values — these need to be wrapped in quotes.

Nothing — they're exactly the same format. YML is simply a shorter file extension. Both .yaml and .yml files use identical syntax. Most Minecraft plugins use .yml for brevity.

Most likely an indentation error. YAML requires consistent spacing — if you mix 2-space and 4-space indentation, or accidentally use tabs, the file becomes invalid. Use this validator to check before restarting your server.

Usually no. YAML auto-detects strings. However, you need quotes for: strings starting with special characters (@, *, &), strings that look like numbers or booleans ('true', '123'), and strings containing colons followed by spaces.

Free forever. No signup required. Just tools that work.