Skip to content

YAML to INI Converter

Convert YAML mappings — from a .yaml or .yml file — into classic INI configuration syntax, with top-level mappings becoming [section] headers and their scalar keys written underneath.

Drop your YAML file here

or

Supports .yaml and .yml files, processed entirely on your device

Untitled.yaml0 B0 lines0 characters
YAML →JSON
Your converted output will appear here.
Waiting for YAML input.

What to expect

  • Top-level scalar keys are written before any section headers.
  • Each top-level object becomes its own [section].
  • Sections nested more than one level deep are flattened with dotted keys.

Example

Input (YAML)
site:
  name: Aperture Docs
  version: 1.4.2
  active: true
tags:
  - web
  - cli
  - tools
author:
  name: Jane Doe
  email: jane@example.com
Output (ini)
tags = web, cli, tools

[site]
name = Aperture Docs
version = 1.4.2
active = true

[author]
name = Jane Doe
email = jane@example.com

YAML to INI Converter FAQ

How deep can INI sections go?

INI only supports one level of sections, so anything nested further is flattened into dotted key names within that section.

Are lists supported in INI?

Lists are written as a single comma-separated line, since INI has no native array syntax.

Is this suitable for Python's configparser?

Yes, the output follows the same [section] / key = value structure configparser expects.

Is there a difference between .yml and .yaml?

No. ".yml" and ".yaml" are just two file extensions for the exact same format — this converter accepts either one, so a "yml to INI" conversion and a "yaml to INI" conversion produce identical results.