INI to YAML Converter Online — Free & Private

Convert INI sections to nested YAML mappings locally, which helps when moving legacy config to GitOps repos.

Loading…
INI → YAML for GitOps repositories
Turns INI sections into nested YAML mappings, with numbers and booleans typed.

Developer notes

A [database] section becomes a database mapping with its keys indented underneath. Root keys stay at the top level. Booleans and numbers follow the same rules as INI → JSON, so 2.10 is written as 2.1 unless you quote it in the INI file. Comments that start with # or ; are skipped, so they are not carried into the YAML. Indent width switches between 2 and 4 spaces. Double-quote all strings wraps text values in quotes, but numbers and booleans stay bare.

Conversion options

Indent width
Uses 2 or 4 spaces for each nesting level of the mappings written from INI sections.
YAML layout
Offers a readable or a tighter layout. For this converter both choices give the same text today.
String quoting
Writes text values with minimal quoting, or wraps every text value in double quotes. Numbers and booleans stay unquoted.

Use cases

Move a php.ini or a Windows settings file into YAML for Ansible or Kubernetes work. Preview how the sections nest before you automate the change in CI. Pair it with YAML → INI to test a round trip on object-shaped YAML.

About these options

For CSV output, choose the delimiter, how fields are quoted, the line endings and whether to write a header row. Auto uses a comma in English and a semicolon in French, German and Spanish, as Excel expects. For CSV input, the delimiter is detected on the first line (comma, semicolon, tab or pipe). You choose whether that line holds the column names. JSON output can use 2 or 4 spaces or a single line, with an optional recursive key sort. XML output can be pretty-printed with a chosen indent width. YAML output takes an indent width and a quoting mode for strings. XML comments are dropped, because the conversion goes through a JSON tree.

Examples

Database and cache sections

Input

[database] host = db.internal port = 5432 ssl = true [cache] provider = redis ttl = 300

Output

database: host: db.internal port: 5432 ssl: true cache: provider: redis ttl: 300

A root key and a section

Input

environment = production [features] checkout-v2 = true dark-mode = false

Output

environment: production features: checkout-v2: true dark-mode: false

Related tools

See the same data as INI → JSON, or go back with YAML → INI when the YAML is object-shaped. JSON → YAML writes YAML from JSON.

INI → YAML FAQ

Structure and options

Do INI sections nest in YAML?

Yes. [database] becomes a database mapping with its keys indented underneath.

Can I change the indentation?

Yes. Indent width switches between 2 and 4 spaces.

Are comments kept?

No. INI comments are skipped when the file is read, so they cannot appear in the YAML.

Is my data sent to a server?

No. The conversion runs in your browser, and FastMinify never receives what you paste.

Convert INI configs to JSON, YAML, Properties (flat INI only) and TOML.