ConverTable

HTML to PHP array

ConverTable reads the <table> elements of an HTML file, page source or clipboard, lists nested tables separately, expands colspan and rowspan cells and keeps the displayed text of each cell. 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
.html .htm
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