Convert JSON to PHP Array Online

Form for JSON converting

This form allows you convert JSON to PHP Array, paste or upload your JSON file below:


Your result can be seen below.

Result of JSON conversion to PHP Array


Move to "Paste Code" for Save it

About JSON conversion to PHP Array

About JSON conversion to PHP Array

The Convert JSON to PHP array was created for online converting JSON into appropriate PHP type as Array. This can come in handy for testing or debugging your JSON, also for fast formatting and adding an array of PHP to your config or anywhere else.

How it Works?

Just paste your JSON to the textarea above and click to the button "Convert" and you will get PHP array in the next textarea.

Example of JSON conversion to PHP Array

Before:
{"website":{"domain":"wtools.io","title":"Online Web Tools"}}
After:
array (
  'website' =>
  array (
    'domain' => 'wtools.io',
    'title' => 'Online Web Tools',
  ),
)
After the conversion, you can apply the PHP array to your project or use it for some other purpose.