Report

Help us improve this tool

PHP Array to INI Converter

Paste PHP array literals and convert them to INI configuration files with nested sections in your browser.

O M T

Convert PHP arrays to INI configuration

When you inherit Laravel or legacy PHP config written as nested arrays, you may need INI files for older deploy scripts or Windows tooling. Paste PHP array literals (with or without a $variable = assignment) and get INI sections and keys that mirror your structure.

Pair with the INI to PHP Array Converter for round trips, or the PHP Array to JSON Converter when JSON is the next hop.

Frequently Asked Questions

Which PHP array syntax is supported?

Short [] and long array() syntax, single-quoted strings, booleans, numbers, and nested associative arrays. Inline PHP function calls are not evaluated.

Why does a list-only array fail?

INI files are section and key based. A purely indexed PHP list has no natural INI mapping, so the tool asks for an associative root array (string keys).

Is my code sent to a server?

No. Parsing and conversion run entirely in your browser.