Format your SQL

Format your own SQL code using this free online formatter. Try formatting your SQL code with a few pre-defined styles.

Powered by SQL Prompt

This SQL formatting tool is powered by SQL Prompt, which allows you to use, create, and share SQL styles directly in SSMS and Visual Studio. Find out more.

SELECT CompanyName,AddressType,AddressLine1 FROM Customer JOIN CustomerAddress ON (Customer.CustomerID=CustomerAddress.CustomerID) JOIN Address ON (CustomerAddress.AddressID=Address.AddressID) WHERE CompanyName='ACME Corporation'

Copy to clipboard Format the SQL

or press Ctrl+Enter

SQL Prompt

Write, format, analyze and refactor your SQL effortlessly

In SQL Server Management Studio and Visual Studio

  • Customizable and sharable code formatting
  • Advanced IntelliSense-style code completion
  • Code snippet library
  • Refactor SQL code
  • Fast and comprehensive code analysis
  • SSMS tab history and coloring

Download your free trial Find out more

Write SQL faster with Redgate SQL Prompt