Free Online Tool

PostgreSQL to MySQL Converter — Free Online Tool

Migrate your PostgreSQL database to MySQL. Upload your .pgsql dump and download a clean MySQL SQL file with all syntax differences handled automatically.

No account needed Up to 50 MB Files deleted in 2 hours 100% free
🐘
PostgreSQL
🗄️
MySQL
Upload Your File

Drop your file here

or click to browse — .pgsql / .sql files up to 50 MB

Table Preview

Upload a file to preview its tables and data before converting

How It Works

Convert in Three Steps

The whole process takes under a minute, even for large files.

1
📤

Upload your file

Drag and drop or click to browse. SQL, SQLite, CSV and JSON files up to 50 MB are accepted.

2
🎯

Pick your target

Select the output format. The source format is detected automatically from your file.

3
📥

Download the result

Your converted file is ready in seconds. Import it directly into your database.

What Gets Converted

Every Syntax Difference Handled Automatically

Moving from PostgreSQL to MySQL is sometimes necessary when deploying to shared hosting, integrating with legacy systems, or working with tools that only support MySQL. The syntax differences are significant — SERIAL becomes AUTO_INCREMENT, double quotes become backticks, and PostgreSQL-specific functions need rewriting.

Our converter handles all of these transformations automatically, giving you a MySQL-compatible SQL file you can import directly.

After converting: Import with: mysql -u root -p mydb < converted.sql. Test your application thoroughly after migration.
PostgreSQL to MySQL
Before After Why
SERIAL / BIGSERIAL INT AUTO_INCREMENT MySQL auto-increment
"double-quoted" names `backtick` names MySQL identifier style
BOOLEAN TINYINT(1) MySQL boolean representation
TIMESTAMP DATETIME MySQL date type
ON CONFLICT DO NOTHING INSERT IGNORE MySQL conflict syntax
BYTEA BLOB MySQL binary type
🔒
Private by design
Files are deleted automatically within 2 hours. We never read or store your database contents.
Fast conversion
Most files convert in under 5 seconds. Large files up to 50 MB are handled without timeouts.
👁️
Live table preview
See your tables, columns and sample rows before you download. No surprises in the output.
🆓
Always free
No subscription, no usage limits, no watermarks on the output. Free for everyone, always.
FAQ

Common Questions

Common functions are converted. Complex PL/pgSQL stored procedures are not included in the output.

SERIAL columns are converted to INT AUTO_INCREMENT. Standalone sequences are removed.

Yes. All INSERT statements are preserved exactly. Only schema syntax is rewritten.

Ready to Convert Your PostgreSQL to MySQL File?

Upload your file above and get a converted result in under a minute. No account, no cost, no catch.

Upload & Convert Now Try Query Converter