SQLFormatter
FormatterConvertPricingDocsGet Pro
SQL Converter · MySQLSQLite

Convert MySQL SQL to SQLite

MySQL to SQLite drops `backticks`, swaps NOW() for datetime('now') and keeps IFNULL / LIMIT / group_concat. A mechanical formatter only re-indents — it won’t rewrite dialect-specific syntax. The AI converter in the app translates the query and the table below shows exactly what changes.

MySQL — source
MySQL
SELECT n.id, n.title,
       IFNULL(n.pinned, 0) AS pinned
FROM notes n
WHERE n.updated_at > NOW() - INTERVAL 7 DAY
ORDER BY n.updated_at DESC
LIMIT 50;
SQLite — converted
SQLite
SELECT n.id, n.title,
       IFNULL(n.pinned, 0) AS pinned
FROM notes n
WHERE n.updated_at > datetime('now', '-7 days')
ORDER BY n.updated_at DESC
LIMIT 50;
Convert your own query

What changes from MySQL to SQLite

MySQLSQLiteWhy
`identifier`identifierSQLite uses no backticks; double quotes or bare names.
NOW() - INTERVAL 7 DAYdatetime('now', '-7 days')SQLite date math uses datetime() modifiers.
IFNULL / LIMITIFNULL / LIMITBoth exist in SQLite and carry over unchanged.

Other SQL conversions

MySQLPostgreSQLMySQLT-SQLMySQLSnowflakeMySQLBigQueryAll conversions →