SQL Formatter

Format SQL queries for readability. Free, instant.

{r=r.replace(new RegExp('\\\\b'+k+'\\\\b','gi'),'\\n'+k)});return r.trim();"}'>

How to Use SQL Formatter

1

Paste SQL query.

2

Get formatted output.

3

Copy or download your result.

Frequently Asked Questions

Does formatting change the query?

No. It only adds whitespace for readability.