Configuration conversion needs an honesty layer
YAML & TOML Formatter, Validator and Converter Online
YAML, TOML, and JSON overlap, but they are not interchangeable text skins. DevSexy exposes the shared data model and the details that cannot survive every conversion.
service: port: 8080 enabled: true
object └─ service ├─ port: number └─ enabled: boolean
[service] port = 8080 enabled = true
Three syntaxes, one inspected value
A scalar may not mean what it looks like
Quoting, schema rules, date syntax, and leading zeroes affect inferred types. Inspect the parsed value before converting a deployment file.
enabled: yesMay be a string or boolean depending on YAML schema.
released = 1979-05-27TOML has a native local-date value that JSON does not.
code: 0017Leading zeroes are intent-bearing even when a parser accepts the value.
Conversion loss ledger
The tool reports what is preserved and what needs review. It never labels cross-format conversion as lossless by default.
PRESERVED MODEL
- Maps, arrays, strings, booleans, ordinary finite numbers
- Stable nested structure when the target can express it
REVIEW BEFORE EXPORT
- Comments and author formatting
- YAML anchors, aliases, tags, and merge keys
- TOML dates, times, dotted keys, and array-of-table layout
Choose the target for its consumer
CI and deployment
Validate indentation and scalar types before a pipeline parses the file differently.
Application settings
Use TOML when typed configuration and explicit tables match the application ecosystem.
Machine interchange
Use JSON when strict, widely supported data interchange matters more than comments.
YAML and TOML questions
- Are comments preserved when converting?
- No general cross-format guarantee exists. Comments are listed in the loss ledger before export.
- Why does valid YAML change type after conversion?
- YAML schemas can infer scalars. Inspect the typed model and add explicit quotes when a value must remain text.
- Can TOML represent null?
- TOML has no general null value, so JSON null requires an explicit product decision rather than silent conversion.