Formatador e Validador TOML

Formate, valide e converta TOML — usado em Rust (Cargo.toml), Python (pyproject.toml) e mais

TOML Input

Formatador e Validador TOML

Formate, valide e converta TOML — usado em Rust (Cargo.toml), Python (pyproject.toml) e mais

Recursos

  • Parse TOML and emit clean, normalised output
  • Supports tables `[section]`, arrays-of-tables `[[section]]`, inline tables, nested arrays
  • TOML number formats: decimal, hex (`0x`), octal (`0o`), binary (`0b`), with underscore digit separators (`1_000_000`)
  • Dates / times: TOML date / time / datetime literals
  • Hand-rolled parser — most valid TOML works; very exotic edge cases may need a full library

Como usar

  1. Paste your TOML content in the input panel.
  2. Click Format & Validate.
  3. Switch between TOML and JSON output tabs.
  4. Copy the result using the Copy button.

Dicas e Melhores Práticas

  • Underscore digit separators (e.g. `1_000_000`) are valid TOML and now parse correctly.
  • Inline tables like `point = { x = 1, y = 2 }` are supported; nest them at most 1-2 deep for readability.
  • Arrays-of-tables (`[[products]]`) are the canonical pattern for repeating sections like config arrays.
  • For very large / complex TOML, validate with `taplo` or `@iarna/toml` in your build pipeline.
  • Strings can be basic (`"..."`), literal (`'...'`), multi-line basic (`"""..."""`), or multi-line literal (`'''...'''`).

Perguntas Frequentes

What is TOML?

TOML (Tom's Obvious Minimal Language) is a configuration file format used by Rust (Cargo.toml), Python (pyproject.toml), Hugo, and many other tools.

Can it convert TOML to JSON?

Yes, click the JSON tab in the output panel to see the JSON equivalent of your TOML file.

Is my data private?

Yes, all processing happens in your browser. No configuration data is sent to any server.