SQL to TypeScript Converter
// Generate TypeScript types from SQL CREATE TABLE
#About SQL to TypeScript Converter
Free online SQL to TypeScript types converter. Parse CREATE TABLE statements and generate TypeScript interfaces with proper type mappings. This tool runs entirely in your browser — your data is never sent to a server. Just paste your input, get instant results, and copy with one click. No sign-up or installation required.
#FAQ
What SQL types are mapped? ▾
VARCHAR, TEXT→string, INT, BIGINT→number, BOOLEAN→boolean, DATE, TIMESTAMP→string (ISO format), JSON/JSONB→unknown, UUID→string, and more. NOT NULL columns become required properties.
Does it handle multiple tables? ▾
Yes, paste multiple CREATE TABLE statements and each one will generate a separate TypeScript interface.
</> Embed this tool ▾
Copy this code to embed the tool on your website. Adjust the height to fit your layout.
<iframe src="https://www.browserutils.dev/embed/sql-to-typescript" width="100%" height="500" frameborder="0" title="SQL to TypeScript Converter"></iframe>