I pasted an API array into a converter and got a clean TypeScript interface in one click. Then I noticed the second person in the list had a field the first person did not. That field never appeared in the draft.
That is how KeptTools JSON Converter is designed: https://kepttools.com/json-converter
What the page actually does
Paste a JSON object or array. Choose Laravel, TypeScript, PHP DTO, or CSV. Review the output, then copy or download it. Conversion is client-side JavaScript. The FAQ says there is no API call for the convert step.
The sample already on the page looks like this:
[
{"id": 1, "name": "Ada", "role": "engineer", "meta": {"active": true}},
{"id": 2, "name": "Linus", "role": "founder", "meta": {"active": false}}
]
Laravel mode keeps both people and nests meta as a PHP array. That is the mode selected when the page opens. The same JSON can become CSV, a TypeScript interface, or a PHP class with public properties.
The first-object rule
TypeScript and the PHP DTO are drafted from the first object in an array. A later row with an extra field is left out of that draft. The page states this in the intro and again under common mistakes. It is a starting shape for a project file, not a full schema merge across every row.
If your second object adds email, regenerate after you understand the limit—or fix the sample so the first object already carries the keys you care about.
What CSV keeps
CSV uses top-level keys only. A nested object such as meta becomes one cell (for example {"active":true}), not its own columns. That matches the live FAQ. If you need flat columns, reshape the JSON before you convert.
Parse errors stop the convert
A trailing comma, or text wrapped in single quotes, is not valid JSON. The converter shows the parse error and leaves the output empty. Fix the payload in the JSON formatter on the same site, then convert again.
Why I still use it
I want a Laravel array for a seeder, or a TypeScript stub, without pasting production JSON into a random online tool that uploads the body. Here the paste stays in the tab. I still read the second row before I commit the interface.
A practical habit: convert once with the sample, switch to CSV and look at the meta cell, switch to TypeScript and confirm which keys appeared, then paste your real payload. If the JSON does not parse, the page leaves the output empty on purpose—there is nothing useful to copy until the text is valid.
Supported outputs, from the FAQ: Laravel PHP arrays, TypeScript interfaces, PHP DTO classes, and CSV for array-of-objects JSON.
Try the sample, switch formats, and check the nested CSV cell yourself: https://kepttools.com/json-converter
Top comments (0)