Converter
Paste PHP array below, press Convert, and copy the INI output.
Convert PHP array to INI free in your browser. Paste your PHP array on the left, press Convert, and copy clean INI on the right. No sign-up, no uploads.
Paste PHP array below, press Convert, and copy the INI output.
A small recursive parser walks the array() or [] structure token by token, honoring 'key' => value pairs, nested arrays, quoted strings with escapes, numbers, booleans and null. Each top-level associative array becomes one row, and the INI serializer then renders those rows in the target format with correct escaping for INI.
INI has no nesting, so deep PHP array structures land as flat [row_N] sections; promote the important keys into real section names afterwards if a tool expects them. Keep values free of unquoted semicolons, since many INI readers treat them as comment starts.