Convert JSON to PHP Array Online

Form for JSON converting

This form allows you convert JSON to PHP Array:

Press F11 to switch to fullscreen mode
Your result can be seen below.

Result of JSON conversion to PHP Array

Press F11 to switch to fullscreen mode
Move to "Paste Code" for Save

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.
Share