Canonical: https://toolipedia.app/sql-dialect-converter

# SQL Dialect Converter

Convert common MySQL, PostgreSQL, SQL Server and SQLite syntax, data types, quoting, auto numbering, LIMIT and TOP from one database to another and see what to check.

Breadcrumbs: Toolipedia > Developer tools > Code and developer utilities > SQL Dialect Converter

## About SQL Dialect Converter

Moving a script between databases breaks on small differences. This converter rewrites the common ones between MySQL, PostgreSQL, SQL Server and SQLite: identifier quotes (backticks, double quotes, brackets), data types, AUTO_INCREMENT, SERIAL, IDENTITY and AUTOINCREMENT, LIMIT, TOP and OFFSET FETCH, :: casts, || and CONCAT, NOW and GETDATE, IFNULL, ISNULL and COALESCE, LEN and LENGTH, and GROUP_CONCAT and STRING_AGG. Things that cannot be converted safely, such as date arithmetic and upserts, are listed as warnings.

## How to use SQL Dialect Converter
1. Choose the database your SQL is written for and the database you are moving to.
2. Paste the SQL: queries, CREATE TABLE statements or both.
3. Read the converted SQL and the list of points to check, then test it on a copy of your data.

## Why use this tool?
- Private: everything happens in your browser. Nothing you enter is uploaded.
- Free, with no sign-up, no watermark and no limit on how often you use it.
- Works on phones, tablets and computers: Android, iPhone, Windows, Mac and Linux. Nothing to install.

## Also known as
- sql dialect converter
- mysql to postgresql
- postgresql to mysql
- sql server to mysql
- convert sql between databases
- sqlite to postgresql

## Frequently asked questions

### Does the converter handle stored procedures and triggers?

No. Procedural code differs too much between databases. The tool converts queries and table definitions, and tells you when it meets syntax it leaves unchanged.

### Why are some column types different after the conversion?

The tool maps each type to the closest one in the target database, for example BOOLEAN to BIT in SQL Server and DATETIME to TIMESTAMP in PostgreSQL. Check ranges and precision if they matter to you.

### Do I need to check the result?

Yes. Treat it as a good first draft, not a guarantee. Date functions, collations, case rules and NULL handling differ, so run your tests against the converted version.

### Is SQL Dialect Converter free?

Yes. SQL Dialect Converter on Toolipedia is free to use, with no sign-up and no watermark.

### Is it safe to use?

Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.

### Does it work on my phone?

Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.

### Do I need an account?

No. Just open the page and use the tool. There's no sign-up and no email needed.

## Related tools

More free tools that go well with SQL Dialect Converter:
- [CSV to SQL](https://toolipedia.app/csv-to-sql)
- [SQL formatter](https://toolipedia.app/sql-formatter)
- [Database Table and Index Size Estimator](https://toolipedia.app/database-table-and-index-size-estimator)
- [Database Cheat Sheets](https://toolipedia.app/database-cheat-sheets)
- [SQL Reserved Word Checker](https://toolipedia.app/sql-reserved-word-checker)
