How to use
Paste your SQL, choose a source and target dialect, then convert.
- Select From and To dialects.
- Enable/disable conversions (quotes, LIMIT/OFFSET, common types/DDL).
- Click Convert, review the output, then Copy.
- If a query is complex, use the result as a starting point and validate it.
FAQ
Does this converter run on the server?
No—conversion runs in your browser with simple rules, and it does not fetch anything over the network.
Can it convert complex stored procedures or vendor-specific features?
Not reliably. It focuses on common syntax differences (quotes, LIMIT/OFFSET, a few types/DDL patterns) and gives you a starting point.
Will it always produce valid SQL for the target database?
No. SQL dialects differ a lot; always review the output and validate it (especially for functions, indexes, and constraints).
How does LIMIT conversion work for SQL Server?
LIMIT n becomes SELECT TOP (n) ..., and LIMIT n OFFSET m becomes OFFSET/FETCH (may add a basic ORDER BY if missing).
How are AUTO_INCREMENT and SERIAL handled?
MySQL INT AUTO_INCREMENT becomes PostgreSQL SERIAL (and BIGINT AUTO_INCREMENT becomes BIGSERIAL). Reverse conversion maps SERIAL back to INT AUTO_INCREMENT.
Does it change identifier quoting?
Optionally. It can convert between backticks (`name`), double quotes ("name"), and SQL Server brackets ([name]) using conservative patterns.
Can I convert multiple statements at once?
Yes—paste multiple statements. The tool applies the same rule set across the whole input.