Paste any JSON and get ready-to-use PHP. In class mode, types are inferred recursively: nested objects become their own named classes (from the field name), each property gets a PHPDoc @var type annotation (int, float, bool, string, array or a nested class), arrays get an element type inferred from their first non-null item, and null values become nullable annotations. The root class name defaults to Root.
Switch to array mode to render the JSON as a PHP array literal using short bracket syntax instead. The whole tool is plain JavaScript running locally in your browser — no build step, no server, no upload — so it is safe for private or proprietary payloads.