SQL Formatter

Paste your messy SQL code on the left, get human readable code on the right. Double click the clean SQL to select and then copy/paste to your favorite editor. Your SQL code will be fully indented, keyword-highlighted, carriage-return-ed, and should still execute :-).

Messy SQL goes here


Clean SQL comes out here