skip to content

JSON to PHP

JSON pasted in, a short-syntax PHP array out.
fig. 01 JSON pasted in, a short-syntax PHP array out.

Why?

There is too many JSON to PHP converters online. I hate how all of them feel untrustworthy. Like I’ll get a virus just by accepting the cookies.

Why do you even need cookies?

For turning JSON to an array?

No thanks.

Here is my version without all that.

Features

  • Instant conversion from JSON to PHP array syntax

  • Support for nested arrays

  • Proper formatting and indentation

  • Copy to clipboard functionality

Use Cases

This tool is particularly useful when:

  • Working with REST APIs that return JSON and you need PHP arrays

  • Converting configuration files between formats

See also

kauffinger(7) articles(7) projects(7) log(7) about(7) contact(7)

kauffinger.com 2024-01-15