JSON to PHP Array Converter

Convert JSON data to PHP array syntax instantly.

How to use

  • Paste your JSON in the input area
  • The converter will format it as a PHP array
  • Copy the generated PHP code to your project
  • Use in PHP with $data = [array content];

Frequently Asked Questions

What PHP versions are supported?

The short array syntax [] works with PHP 5.4+. For older versions, use the array() syntax.

Does it handle nested structures?

Yes! Nested JSON objects and arrays are converted to nested PHP arrays maintaining the same structure.

Can I convert complex JSON?

Yes, the converter handles complex JSON including mixed types, null values, booleans, and numbers.

Can I convert PHP arrays back to JSON?

Yes, you can use PHP's json_encode() function or our JSON converters to convert PHP arrays back to JSON.