728 × 90 Ad Space

SQL Formatter

Put SQL keywords into capitals and break a long query across lines so its clauses can be read at a glance.

empty

empty

How to use it

  1. Type or paste your text into the box above.
  2. The result appears as you type — or press Format.
  3. Press Copy result to put it on your clipboard.

Example

Input
select id, name, email from users where active = 1 order by name
Result
SELECT id,
  name,
  email 
FROM users 
WHERE active = 1 
ORDER BY name

Questions

Is my query sent anywhere?

No. The formatting happens in your browser and the query never leaves the page.

Is my text sent to a server?

No. This tool runs entirely in your browser — nothing you type or paste is uploaded, logged or stored anywhere.

Is there a limit on how much text I can use?

There is no fixed limit. Very large documents depend on your device’s memory, but ordinary pages and files are handled instantly.