SQL Formatter
Format, indent, and beautify SQL queries instantly — 100% client-side, no data sent anywhere.
Input SQL
0 chars
Formatted Output
0 chars
Formatted SQL will appear here. Click "Format SQL" or press Ctrl+Enter.
📂 Load Example
📖 How to Use
- Paste SQL into the left input panel (or load an example above).
- Choose options — dialect, indent size, and keyword casing.
- Click "Format SQL" to instantly beautify your query with proper indentation.
- Use "Minify" to collapse SQL to a single line for compact storage.
- Copy the output using the Copy button or select the text directly.
Keyboard shortcuts:
Ctrl+Enter Format
Ctrl+L Clear
Ctrl+Shift+C Copy