SQL Formatter

Format and beautify SQL queries with proper indentation and keyword capitalization. Free online SQL formatter.

Input223 chars
Output
0 chars

Examples

Raw SQL query
select id,name from users where active=true order by created_at desc limit 5;
Formatted SQL query
SELECT
  id,
  name
FROM
  users
WHERE
  active = true
ORDER BY
  created_at DESC
LIMIT
  5;

Frequently Asked Questions

What styling conventions does this SQL formatter follow?

By default, this tool capitalizes SQL keywords (SELECT, INSERT, UPDATE, JOIN) and adds clean line indentation for conditions and joins.

Related Tools