About this tool
Convert INI configuration files to structured YAML with dotted sections nested and value types inferred.
This converter turns INI configuration into structured YAML 1.2, nesting dotted section names like [database.primary] into a real hierarchy and inferring booleans, integers and floats from the text values. Because INI has no formal specification, it follows the de facto rules of Python's configparser and git config: = and : both work as delimiters, ; and # start comments, and the last duplicate key wins with a warning. It is built for developers migrating legacy INI config into YAML for Docker Compose, Kubernetes, CI pipelines or modern app frameworks.
Open INI to YAML Converter on AltFTool — it loads instantly in your browser.
Paste or upload your source content.
Choose the target format or conversion mode.
Copy or download the converted result.
Dotted sections such as [database.primary] become nested YAML maps instead of flat keys.
true/false, integers, floats and empty values become YAML types — or switch it off to keep everything as strings.
A repeated key follows the common last-wins rule, and every override is listed so nothing changes silently.
Each [section] becomes a YAML mapping key with its key=value pairs nested under it, and keys written before any section stay at the top level. With nesting enabled, a dotted name like [database.primary] becomes database: primary:, giving you a real hierarchy YAML tools can query.
Yes, when type inference is on: true and false become booleans, 8080 becomes an integer, 2.5 becomes a float and an empty value becomes null. Values wrapped in quotes always stay strings, and ambiguous text such as 007 or yes is left as a string rather than guessed.
The last occurrence wins, matching what Python's configparser does with strict=False and what most INI readers do in practice. This converter additionally reports every overridden key with its line number, so a duplicate never slips through unnoticed.
Yes — Python's configparser accepts both by default, so this converter does too, splitting each line at the first = or : it finds. Full-line comments can start with either ; (the classic INI marker) or #.
Add the INI to YAML Converterwidget to your blog or website — free, responsive, no signup. Just keep the “Widget by AltFTool” credit link visible.
<iframe src="https://www.altftool.com/embed/widget/ini-to-yaml-converter"
title="INI to YAML Converter — free AltFTool widget"
width="100%" height="640" style="border:0;border-radius:12px;overflow:hidden"
loading="lazy" referrerpolicy="no-referrer-when-downgrade"></iframe>
<p style="font-size:12px;margin:4px 0 0">Widget by <a href="https://www.altftool.com/tools/all/ini-to-yaml-converter?utm_source=embed&utm_medium=widget">AltFTool — free online tools</a></p>