Convert INI to YAML Online
Migrating away from INI? Paste your Windows config, .gitconfig, php.ini or any configparser-style file and get clean YAML 1.2 with [section] headers turned into top-level keys. Dotted sub-keys reconstruct hierarchy automatically. Comments are dropped because INI and YAML store them differently — re-add them in your YAML after conversion if they matter.
YAML Converter - Convert Between Formats10 formats
Free YAML converter online. Convert YAML to JSON, XML, TOML, INI, Properties, CSV, and more. Also convert INI to YAML, TOML to YAML, and Properties to YAML. With automatic format detection.
Input (INI)
Output (YAML)
Result will appear here
When you'd convert INI to YAML
Real-world scenarios where this conversion is the right move.
Move from INI to YAML
Modernize Windows or PHP apps that ship INI configs by adopting YAML 1.2 — the conversion preserves structure.
Generate Helm or Ansible vars
Drop legacy INI into Helm values.yaml or Ansible vars files instead of rewriting by hand.
Diff-friendly review
YAML diffs read better in pull requests than INI dotted keys.
INI vs YAML — what changes
Quick reference for the structural differences between both formats.
| Aspect | INI | YAML |
|---|---|---|
| Sections | [section] flat at top level. | Nested map under the section key. |
| Sub-keys | Dotted strings like server.host. | Real nested keys. |
| Types | All strings. | YAML infers numbers, booleans and null when unambiguous. |
| Comments | ; or # in source. | Stripped — re-add them in YAML if needed. |
Frequently asked questions
Are types inferred?
Yes. true/false become booleans, integer-looking strings become numbers, and empty values become null. Quote values in the source if you want them to stay strings.
What about sections with dotted names?
Section names that look like a.b become nested keys: a: { b: ... }. This preserves intended hierarchy across dialects.
Does it handle Python configparser interpolation?
Interpolation placeholders like %(foo)s pass through as plain strings. Resolve them in your app or template before converting if needed.
Why is my YAML alphabetized?
It is not — key order is preserved exactly as in the source so diffs stay clean.
Other conversions
Hop into another conversion that shares one of these formats.