Tip: this is a pragmatic converter, not a full parser. Always review the result, especially for procedures, triggers, and vendor-specific syntax.
How to use
Convert your SQL in seconds:
- Paste your source SQL into the input box.
- Choose the conversion options (quoting, types, paging, functions).
- Click Convert to MySQL.
- Copy the output and run it in MySQL/MariaDB (review before production).
FAQ
What SQL dialects does this handle?
It targets common patterns from PostgreSQL, SQL Server, and Oracle, then rewrites them into MySQL/MariaDB-friendly SQL.
Does it convert stored procedures and triggers?
Not reliably—procedural SQL varies a lot. Use this for statements like CREATE TABLE and SELECT, then manually adjust advanced objects.
Will it change my string literals?
No—conversions avoid text inside single quotes, so string values stay intact in most cases.
What does it do with SQL Server TOP and OFFSET/FETCH?
TOP becomes LIMIT, and OFFSET/FETCH becomes LIMIT … OFFSET …, which is the MySQL paging style.
How are SERIAL, IDENTITY, and AUTO_INCREMENT handled?
SERIAL/BIGSERIAL are converted to INT/BIGINT AUTO_INCREMENT, and IDENTITY(1,1) is rewritten to AUTO_INCREMENT.
Does it support MySQL and MariaDB?
Yes—the output is intended to be compatible with both, but you should still test against your exact server version.
Is my SQL uploaded to a server?
No network calls are made by the tool script; conversion runs in your browser.