ConverTable

CSV to PHP array

ConverTable reads CSV from a file or pasted text and detects the delimiter (comma, semicolon, tab or pipe) and the text encoding on its own, and both can be set by hand. PHP array assignments are a quick way to embed fixed data in a program, and ConverTable writes an array of associative arrays or of indexed arrays in short [] or long array() syntax, assigned to a variable you name, with an optional <?php tag, numbers and booleans as PHP values and empty cells as null or empty strings. The file never leaves your browser.

Input
.csv
Output
.php · array assigned to $data

Source

No data loaded yet

Editor

The table will appear here

No data

Output

Output format

Preview

The preview appears once data is loaded

© 2026 gosulabs.ai · All conversions run locally in your browser.

v: 0.9.0-ec4f7aad