Developer Tools
SQL formatter
Format SQL for an explicitly selected supported dialect.
JavaScript is required to run the interactive tool. Open the tool separately if it does not load in the frame.
How to use it
Paste SQL, choose SQL, PostgreSQL, MySQL or SQLite, then press Run.
Example
A compact SELECT query is split into readable lines.
Frequently asked question
Will this execute SQL?
No. The query stays in the browser and is only formatted.
Limits and privacy
Input is limited to 2 million characters. Formatting does not validate query semantics or connect to a database. Only the listed dialects are supported.
Tool input is processed in a separate browser environment without advertising or analytics scripts. This page does not upload it to the service.