JSON to PHP Array
Convert JSON into PHP array syntax β short [] or classic array() style.
Runs locally in your browser. Your input is not uploaded.
How to Use
- 1
Paste JSON
Any valid JSON value β object, array, or scalar.
- 2
Pick the array style
Short [] syntax or classic array(), with an optional $data = wrapper.
- 3
Copy the PHP
Paste the generated array straight into your PHP source file.
Frequently Asked Questions
- Paste valid JSON and the tool emits equivalent PHP source: objects become associative arrays with 'key' => value pairs, arrays become lists, all recursively indented.
Related Tools
Text to HEXEncode text as hexadecimal and decode backTimestamp ConverterConvert Unix epoch timestamps to human dates with timezone supportcURL to CodeConvert cURL commands to JavaScript fetch or Python requestsColor ConverterConvert between HEX, RGB, and HSL color formatsColor Palette GeneratorGenerate complementary and analogous color schemesUnit ConverterConvert length, weight, temperature, area, and volumeBase ConverterConvert between binary, octal, decimal, and hexadecimalRoman NumeralsConvert between Arabic numbers and Roman numerals