Free online SQL dialect translator - auto-detects source dialect and converts SQL syntax between MySQL, PostgreSQL, SQL Server, Oracle, SQLite, BigQuery, Redshift, and Snowflake
SQL conversion translates database queries and schema definitions between different SQL dialects. While SQL is a standardized language (ISO/IEC 9075), each database system implements its own extensions, data types, and syntax variations. A query that runs on PostgreSQL may fail on MySQL, SQL Server, or SQLite without modification.
This tool converts SQL between major database dialects, handling syntax differences, data type mappings, and function translations — essential for database migrations, multi-database applications, and cross-platform development.
| Feature | PostgreSQL | MySQL | SQL Server | SQLite |
|---|---|---|---|---|
| Auto-increment | SERIAL / GENERATED | AUTO_INCREMENT | IDENTITY | AUTOINCREMENT |
| String concat | || | CONCAT() | + or CONCAT() | || |
| Boolean type | BOOLEAN | TINYINT(1) | BIT | INTEGER |
| Current timestamp | NOW() / CURRENT_TIMESTAMP | NOW() | GETDATE() | datetime('now') |
| Limit results | LIMIT n | LIMIT n | TOP n / OFFSET FETCH | LIMIT n |
| String quoting | 'single' | 'single' or "double" | 'single' | 'single' |
| Identifier quoting | "double" | `backticks` | [brackets] | "double" or `backticks` |
| JSON support | jsonb (native) | JSON (native) | NVARCHAR + JSON functions | JSON functions (3.38+) |
| UPSERT | ON CONFLICT | ON DUPLICATE KEY UPDATE | MERGE | ON CONFLICT |