SQL Formatter
Format and beautify your SQL queries online. Clean indentation, uppercase keywords, and proper spacing. Free online SQL formatting tool.
Original: 0 chars
Formatted: 0 chars
⚙️ Format Options
📖 SQL Clauses
SELECT
FROM
WHERE
JOIN
LEFT JOIN
ON
GROUP BY
HAVING
ORDER BY
LIMIT
INSERT
UPDATE
DELETE
CREATE
ALTER
DROP
SET
VALUES
INTO
AS
AND
OR
NOT
IN
BETWEEN
LIKE
IS NULL
ASC
DESC
DISTINCT
COUNT
SUM
AVG
MAX
MIN
CASE
WHEN
THEN
ELSE
END
UNION
ALL
How to Format SQL
Beautify your SQL queries in 3 simple steps
1
Paste SQL
Paste your SQL query in the input area.
2
Choose Options
Select keyword case, indent size, and formatting rules.
3
Copy Result
Copy the beautifully formatted SQL for your project.
Related Developer Tools
Explore more tools in the developer tools category