YAML to INI Converter Online — Free & Private

Generate INI from object-shaped YAML. Root arrays and YAML sequences are rejected with a helpful message.

Loading…
YAML → INI, mappings to sections
Writes a YAML mapping as INI. A list at the root stops the conversion with a clear error.

Developer notes

The root must be a YAML mapping. A list such as - item: 1 stops the conversion with an error. A mapping at the first level becomes a [section] with key=value lines. A mapping nested deeper is written as [object Object], so flatten it first. Root keys come before the first section, because INI readers attach a key to the section above it. Multi-document YAML is rejected, and the converter has no output options.

Use cases

Scaffold INI for a PHP or Windows application from a YAML draft. Export settings for a team that still expects .ini files. Check that YAML is object-shaped before you edit the INI by hand.

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

Sections from nested YAML

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

Start from JSON with JSON → INI, go back with INI → YAML, or check the YAML first with YAML → JSON.

YAML → INI FAQ

Mappings only

Why do YAML lists fail?

INI has no syntax for a list at the root. A YAML list, whose items start with a hyphen, stops with an error instead of inventing sections.

Are there formatting options?

No. The output follows fixed key=value and [section] rules, like JSON → INI.

Can YAML with nested mappings become sections?

Yes, one level. Each mapping at the first level becomes a [section] with its keys underneath.

Is my data sent to a server?

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

Convert YAML to JSON, XML, CSV, TOML, TSV, Properties and INI, in your browser.