๐ŸŒ SQL Dialect Translator

PostgreSQL โ†’ MySQL / SQLite ยท MySQL โ†’ PostgreSQL / SQLite ยท SQLite โ†’ MySQL / PostgreSQL (CREATE TABLE, INDEX, SCHEMA, constraints)

Input

๐Ÿ’ก Paste PostgreSQL DDL (e.g. output of pg_dump -s), MySQL DDL (e.g. from mysqldump) or SQLite DDL (e.g. output of .schema) and translate it to another dialect.
PostgreSQL input is parsed into a real Postgres parse tree by libpg_query (WebAssembly, bundled locally) and re-emitted as target DDL โ€” much more faithful than regex-based conversion. MySQL and SQLite input are parsed by node-sql-parser (bundled locally).
Supported: CREATE TABLE (types, defaults, identity / auto-increment, PK / UNIQUE / FK / CHECK), CREATE INDEX, CREATE SCHEMA / CREATE DATABASE, CREATE SEQUENCE and ALTER TABLE ... ADD CONSTRAINT. Unsupported statements are kept as comments and reported.
All processing happens locally in your browser โ€” no data is sent anywhere.
โš ๏ธ Generated code is provided "as is". Always verify generated SQL before running on production databases. Read our Terms of Service.

Result

โœ… Translated DDL appears here