Format, beautify and minify SQL queries online. Proper indentation, keyword uppercasing and clean structure — processed entirely in your browser for complete privacy.
Last updated: March 2026Format SQL queries for readability — proper indentation, keyword casing, line breaks at clause boundaries. Supports MySQL, PostgreSQL, SQL Server, and Oracle dialect quirks. Runs locally; queries (including ones with sensitive data) never reach a server.
;.LIMIT vs TOP), function names, and quoting style.JOIN styles. Pick implicit (FROM a, b WHERE) or explicit (FROM a JOIN b ON) and stick to it. Mixing is a code-smell flagged by senior devs in review.SELECT *. Breaks when columns are added, slows queries by fetching unused data, and obscures what you actually depend on. Always enumerate columns in production code.WHERE on UPDATE/DELETE. Without it, every row is touched. The classic outage. Many tools (DBeaver, MySQL Workbench) warn — don't dismiss.WHERE id = ${userId} is SQL injection waiting to happen. Always use parameterized queries (? or ).