Online SQL Formatter
Format and beautify your SQL queries with proper indentation and spacing. This tool supports multiple SQL dialects including Standard SQL, MySQL, PostgreSQL, PL/SQL, and DB2, with options to customize the formatting to your preferences.
Input SQL
How to Use
- Paste your SQL queries into the input textarea
- Adjust formatting options to your preference:
- SQL Dialect: Choose the SQL flavor you're working with
- Indent Size: Number of spaces for each indentation level
- Uppercase Keywords: Convert SQL keywords to uppercase
- Lines Between Queries: Number of blank lines between multiple queries
- Click "Format SQL" to beautify your code
- Use the copy button to copy the formatted SQL to your clipboard
Features
- Support for multiple SQL dialects
- SQL validation and error detection
- Customizable indentation size
- Optional keyword capitalization
- Control spacing between queries
- Syntax highlighting for better readability
- Copy to clipboard functionality
- Sample SQL queries included