SQL Formatter
Uppercase SQL keywords and break each clause onto its own line for readable formatting
도구를 불러오는 중…
🔒 Everything runs 100% in your browser. Your files and input are never uploaded to any server.
This tool uppercases the keywords in a SQL query and breaks each major clause (SELECT, FROM, WHERE, JOIN, etc.) onto its own line for readable formatting. Subqueries and conditions are automatically indented, so even long queries reveal their structure at a glance.
How to use
- Paste the SQL to format or load a .sql file.
- Set whether to uppercase keywords and choose the indentation unit.
- Check the formatted result and grab it with the Copy button.
FAQ
- Can I format multiple statements at once?
- Yes. It formats multiple statements separated by semicolons (;) individually. Comments (--, /* */) and the contents inside strings are preserved as-is.
- Are function calls and strings uppercased too?
- No. It only uppercases known SQL keywords; table and column names and string literals keep their original form.
- Does it change the execution result?
- Formatting only changes whitespace, line breaks, and keyword casing, so the meaning stays the same. That said, dialect-specific special syntax may format awkwardly, so use it as a readability-boosting reference tool.
