ConverTable

JSON to PHP array

ConverTable reads JSON as an array of objects, an array of arrays, an object of columns or an object keyed by row, as well as JSON Lines, and flattens nested objects into dotted column names. 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
.json .jsonl .ndjson
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