Convert INI to SQL free in your browser. Paste your INI on the left, press Convert, and copy clean SQL INSERT on the right. No sign-up, no uploads.
Converter
Paste INI below, press Convert, and copy the SQL INSERT output.
Advertisement
How INI becomes SQL
The parser scans the INI line by line, tracking the current [section] header and turning every key = value line into a row with section, key and value columns. Comments and blank lines are skipped, quoted values are unwrapped, and scalars are auto-typed, giving a tidy three-column table that maps directly onto SQL INSERT.
Tips for the SQL output
Set the table name before converting, and check that the auto-detected columns match your schema, adding NOT NULL defaults or indexes afterwards in your own migration. The single multi-row INSERT keeps imports fast, and because strings are escaped with doubled quotes, the output runs as-is in MySQL, MariaDB, PostgreSQL and SQLite.
Every key under a [section] becomes one row with three columns: section, key and value. Keys before the first section header get an empty section name. Comments starting with ; or # are ignored, and quoted values keep their inner text while numbers and true/false are typed automatically.
Can I control the table and column names?
Yes, type the target table name in the field above the input; it is sanitized to letters, digits, _ and $. Column names come from your INI headers and are backtick-quoted. Strings are single-quoted with '' escaping, NULL stays NULL, and every row lands in one multi-row INSERT.
What happens to nested or repeated sections?
Repeated [section] headers are merged in order, so duplicate keys keep their last value, and each section/key pair becomes its own row. That flat section/key/value table maps cleanly onto SQL INSERT without losing which section a value came from.
Is there a size limit for INI input?
No hard limit, but everything runs in your browser tab, so tens of thousands of rows convert in seconds while millions of rows may slow the page. For very large INI files, split them into smaller chunks and convert each separately.
Is my INI data private, and who uses this?
Yes. The conversion runs 100% in your browser; nothing is uploaded to any server. Developers, analysts and DBAs use it to move INI data into SQL INSERT for migrations, reports and config work without installing anything.