How to use SQL Formatter
- Paste an Oracle or PostgreSQL SQL statement into INPUT.
- Choose uppercase or lowercase keywords and a two- or four-space indent.
- Select the format button, review the readable SQL in OUTPUT, then copy it.
What SQL Formatter does
This browser-based formatter adds consistent indentation and normalizes SQL keyword casing. Strings, quoted identifiers, and comments remain intact so clauses and nested queries are easier to scan.
Useful for
- Reviewing long or deeply nested queries
- Cleaning up SQL generated by applications
- Sharing consistently formatted SQL with a team
Supported SQL and limitations
Formatting is designed primarily for common Oracle and PostgreSQL statements. This tool formats text; it does not validate SQL, connect to a database, or guarantee support for every vendor-specific construct.
Privacy
Formatting runs in your browser, and the SQL you enter is not sent to an application server. Anonymous page-access analytics are handled separately as described in the Privacy Policy.