SQL formatter

Bring order to your queries, in the dialect you actually use.

Browser-based processing · No account needed · Inputs are not automatically saved
SQL formatter

Ready when you are. Try the sample or use your own input.

How to use this tool

Choose the dialect used by your database, paste a query, and format. Queries are treated as text and never executed.

A quick example

SELECT, FROM and WHERE clauses appear on separate lines.

Supported formats & limitations

Layout formatting is not a SQL syntax or correctness check. Vendor-specific syntax outside the selected formatter grammar may be unsupported. Limit: 1 MiB.

Does this tool upload my input?

No. Tool processing happens in your browser. Your input and result are not automatically saved. The host may still receive ordinary page access logs.Read about privacy.

Find your next tool

JSON formatterCode & dataCSV ↔ JSONCode & dataSQL formatterCode & dataBase64 encoder / decoderText & encodingURL encoder / decoderText & encodingHTML entity converterText & encodingText difference checkerText & encodingWord & character counterText & encodingText case converterText & encodingUUID generatorCode & dataUnix timestamp converterTime & numbersPercentage calculatorTime & numbersXML formatter & validatorCode & dataHTML formatterCode & dataCSS formatter & minifierCode & dataJavaScript formatterCode & dataRegular expression testerCode & dataSHA hash generatorCode & dataNumber base converterTime & numbersData-size converterTime & numbersUnit converterTime & numbersDate difference calculatorTime & numbersTime-zone converterTime & numbersLine toolsText & encodingImage resizerImage & designImage compressorImage & designImage format converterImage & designFavicon generatorImage & designColour converter & pickerImage & designColour contrast checkerImage & designQR-code generatorImage & designDiscount calculatorTime & numbers

Tab or arrow keys to explore · Enter to open · Esc to close