format validator

TOML Validator

Parse TOML snippets in-browser to catch syntax errors fast and keep config changes safe.

Results

Processing…
Status
Processing...
Details
Processing...
Top-level keys
Processing...
Line count
Processing...
Formatted output
Processing...

Rules & checks

Uses a full TOML parser (client-side) to catch syntax issues.

Reports line and column numbers when parsing fails.

No data leaves your browser; nothing is stored or transmitted.

When to use it

  • Check TOML before committing Cargo or Hugo config changes
  • Validate snippets pasted from docs or user input
  • Quick pre-commit sanity check without leaving the browser

Tips

  • Keep keys simple and consistent; avoid trailing commas in arrays
  • Group related settings under tables (e.g., [server], [database])

Examples

Valid TOML

  • title = "Example app"
  • [server]
  • port = 8080

Trailing comma error

  • features = ["a", "b", ] -> parser flags trailing comma

Missing equals

  • name "value" -> parser points to line/column

FAQs

Do you store my config?
No. Parsing happens locally in your browser and clears on refresh.
Does this enforce schemas?
No. It checks TOML syntax only; apply your schema rules in CI/CD.

Related validators

Syntax validation only; does not enforce schema or business rules.