Tools for converting between various data formats
Updates
Recently shipped improvements
Automatically convert CSV data to TypeScript interfaces or types.
Useful for generating types from spreadsheet data or database exports.
Automatic CSV parsing
Automatic type inference
Null value handling
Automatic array type generation
First row headers become property names
Numbers, booleans, null are automatically type-inferred
Supports various delimiters (comma, tab, semicolon)
A tool that automatically generates TypeScript interfaces or types by analyzing CSV (Comma-Separated Values) data. Paste CSV data from spreadsheets, database exports, or API responses to generate accurate type definitions based on headers and data values.
Enter CSV Data
Enter CSV data in the left editor or load the provided sample data.
Set the Delimiter and Options
Set the delimiter (comma, tab, and others), type name, output format, header usage, and related options.
Review the Result
The converted TypeScript code appears in the right editor in real time.
Copy or Download
Use Copy to copy the result to your clipboard, or Download to save it as a .ts file.
Yes. Disable 'Use first row as header' to generate a type with automatic property names such as column1 and column2.
Under RFC 4180, a comma inside a quoted cell is correctly treated as data rather than a delimiter. For example, "Seoul, Korea" is recognized as one value.
The tool analyzes every row in the column. It infers number if all values are numeric and string if the values are mixed. If the column contains empty values, a null union may be added.
Enabling 'Generate array type' creates an array type such as type Rows = Row[] alongside the individual row type. This is useful when working with lists of data.
Excel files (.xlsx) are not supported directly. In Excel, choose 'Save As' → 'CSV,' then paste the CSV data here.