SQL Formatter
Reformats messy SQL: uppercased keywords, one clause per line, indented subqueries.
Inputs
Results
About this tool
Paste a crammed SQL query to get keywords uppercased, each major clause on its own line, and subqueries indented per nesting level. Quoted strings stay intact.
How to use
- 1Paste your SQL into the Paste SQL box, or press the sample button to load a messy query with a subquery, a CASE, and an IN list.
- 2Watch keywords get uppercased and clauses break onto their own lines live as you type.
- 3Check the stats: lines, keywords uppercased, clause breaks, and characters.
- 4Copy the formatted query back into your editor or database client.
Frequently asked questions
Related tools
Base64 Encoder / DecoderEncode and decode Base64, with URL-safe mode.URL Query String BuilderBuild and parse URL query strings.Password Hash GeneratorGenerate and compare password hashes.Code DiffDiff two code snippets with word-level detail.UUID GeneratorGenerate UUID v4 and v7 in batches, with prefixes.Base64 Data URI GeneratorTurn text, CSS, JS, JSON, or SVG into a data:<mime>;base64, URI — UTF-8 safe.