Multitool

JSON ⇄ TS / CSV

Turn JSON payloads into TypeScript interfaces or CSV.

About the JSON ⇄ TS / CSV

Turn a sample JSON payload into TypeScript interfaces you can paste straight into a project, or flatten an array of objects into CSV for a spreadsheet. The TypeScript output names a root interface and creates nested interfaces for child objects. The CSV output builds its header from every key found across all the rows.

Tip: Types are inferred from the sample you paste. Include a record that has every optional field filled in, or the generated interface will miss properties that only appear in some responses.

JSON ⇄ TS / CSV is free, needs no sign-up and runs entirely in your browser, so what you paste never leaves your device.

How to use it

  1. Paste or type your input, or press Ctrl+V anywhere on the page.
  2. Adjust the options. The result updates instantly.
  3. Copy the output with the Copy button or Ctrl+C.

Topics

  • typescript
  • interface
  • csv
  • json

Frequently asked questions

Is the JSON ⇄ TS / CSV free to use?

Yes. The JSON ⇄ TS / CSV is completely free, needs no account and has no usage limits.

Is my data uploaded when I use the JSON ⇄ TS / CSV?

No. Everything is processed locally in your browser, so what you paste never leaves your device. The last 3 snippets are kept on this device only and you can clear them with one click.

How do I use the JSON ⇄ TS / CSV?

Paste or type your input, or press Ctrl+V anywhere on the page. Results update instantly, then copy them with the Copy button or Ctrl+C.

More developer tools