Skip to content

JSON to PHP Array

Convert JSON into PHP short-array syntax with quoted keys and scalar values.

Input

28 chars1 lines

Result

Type or paste on the left — the result updates as you type.

Outputs an expression, not executable code. Backslashes and single quotes are escaped; this is not PHP serialization.

Up to 100,000 UTF-16 units per input and 1,000,000 per result. See the supported formats and examples below.

Format references

Tool page updated: