JSON Decoder

To decode JSON to a PHP array enter your code into the box below and hit decode

What is this tool?

It is a simple way for you to take data in the JSON markup language and translate it exactly into a PHP array. The tool works whether the data is multidimensional or unstructured.

Why would I want to convert JSON in a PHP array?

Well, there are many reasons and as always when it comes to programming, your own specific requirements.

A popular use is keeping arrays of data within helper files of a PHP application. This method has been popularised in recent times by how the Laravel framework configuration uses arrays, which offers a nice syntax that is easily editable.