SQL Formatter
Format SQL queries with one clause per line, or minify them to a single line.
Runs in your browser. Nothing leaves this device.
Open SQL Formatter
Free, no account, no watermark and no daily limit.
How to use SQL Formatter
- 1Paste your SQL query.
- 2Pick upper or lower case keywords and the indent.
- 3Copy the formatted query, or switch to Minify.
Questions
Which SQL dialects work?
Common SQL from MySQL, PostgreSQL, SQLite and SQL Server formats well. Strings, quoted names and comments are kept exactly as written.
Does it change what my query does?
No. Only spaces, line breaks and keyword case change. Minify also removes comments.
Is my query sent anywhere?
No. It is formatted by your browser on this device.
Is it free?
Yes. No account, no watermark and no daily limit.
Related tools
- DeveloperBase64 EncoderEncode text or files to Base64 and decode it back, with URL-safe and data URL options.
- DeveloperDiff CheckerCompare two texts and see what was added and removed, line by line or word by word, and download a patch.
- DeveloperHash GeneratorGet the MD5, SHA-1, SHA-256, SHA-384 and SHA-512 of text or any file, and check it against a hash you were given.
- DeveloperJSON FormatterFormat, check and minify JSON, with the exact line of any error.
- DeveloperJWT DecoderRead the header and claims of a JSON Web Token, see when it expires, and check an HMAC signature.
- DeveloperRegex TesterTest JavaScript regular expressions live: every match highlighted, capture groups in a table, and a replace preview.