JSON to TypeScript & PHP Converter

Convert JSON data into TypeScript interfaces or PHP arrays online. Validate your JSON and copy clean, ready-to-use code in your browser.

Paste your JSON

Paste JSON data to generate code.

Generated code

Frequently asked questions

JSON to TypeScript & PHP, explained.

How do I convert JSON to TypeScript?

Paste a valid JSON object or array. The converter infers primitive, nested object, array and nullable types, then generates TypeScript declarations you can copy.

Can I convert JSON to a PHP array?

Yes. Select PHP to generate a PHP array expression from the same JSON data.

What happens if my JSON is invalid?

The converter shows a validation message and waits for valid JSON before replacing the generated output.

Is my JSON uploaded or stored?

No. Parsing and code generation happen locally in your browser. Nothing is transmitted or saved.

More free tools

Try another tool.

All tools