JSON ↔ PHP Array Converter
Convert JSON to PHP arrays and back — single quotes, short syntax, custom indent.
JSON
0 chars
PHP array
Converts as you type
Usage guide
Convert between JSON and PHP arrays — reads just the array even with assignments, return, PHP tags, or comments.
- Result updates instantly as you type — no button needed.
- Choose single quotes, short array syntax, and indent.
- Unicode and special characters round-trip safely.
How to use
Paste JSON to get a PHP array, or paste a PHP array to get JSON — choose quote style, short syntax, and indent.
Frequently asked
- Does it parse wrapped PHP?
- Yes — it reads just the array even inside assignments, returns, tags, or comments.
- Single or double quotes?
- Your choice — plus short [ ] or array() syntax.
- Is my data uploaded?
- No — everything runs locally in your browser.
php arrayjson to php arrayphp array converterphp array syntax