JSON to TypeScript interfaces and JSON Schema, typed from real data

Drop JSON, NDJSON, or CSV and get a TypeScript interface whose nullability is earned: a field is | null only if the data actually contains nulls, because the profile reads every row, not the first ten.

how to use it

  1. Drop .json, .ndjson, or .csv. Every field is profiled across the whole file.
  2. Open </> code and choose TypeScript, or JSON Schema.
  3. Check the nullability: a field is | null only where nulls actually occur in your data.
  4. Reshape first if you like - flatten, rename, drop - and the types follow the pipeline's output.

every tool in the box

Like every unfckr tool, this runs 100% in your browser: no upload, no servers, no signup, no analytics. A Content-Security-Policy header blocks every programmatic network channel, so not even malicious code could phone home - and you can watch it happen: the privacy page runs six live escape attempts and shows the browser refusing each one.

↑ back to the tool