SQL formatter. One clause per line, readable again.
Paste a long query and get SELECT, FROM, JOIN, WHERE and the rest on their own lines, select lists split, AND and OR lined up and subqueries indented. Pick the dialect for its quoting rules. Strings and comments are kept as written.
Cost to you
Free
Runs in your browser. No signup, no API call, no limit per hour.
- browser
- runs in
- none
- API calls
- none
- account
Use it now
Use the SQL formatter here
It runs in your browser. Nothing you type is sent anywhere, there is no signup and no limit.
Run it from your agent
Copy one prompt, give it to your agent.
Fill in the placeholder, paste it, and the agent runs the same job with current data on your looot account and shows the cost.
- You give it: a sql query.
- Billed per call, nothing while your agent is idle.
- The agent shows the price before it calls.
set up looot - https://looot.ai/skill.mdWhat comes back
What your agent gets from sql formatter
Field names as the providers return them. The exact set varies by endpoint, and your agent reads it from the catalog.
- formatted SQL
- one line SQL
- keyword case
- indent width
Use it for
What people do with sql formatter
Read agent SQL
Format the one-line query an agent or an ORM logged so you can review it.
Tidy a migration
Clean up a query before it goes into a migration or a pull request.
Debug a slow query
Lay out the joins and filters so a missing condition stands out.
Minify for logs
Collapse a formatted query to one line for a log or a string literal.
Set up once
Three steps. Your agent does the rest.
Keep going
More free tools
FAQ
Questions about sql formatter
- tool
- SQL formatter
- category
- Formatters
- input
- A SQL query
- output
- formatted SQL, one line SQL, keyword case, indent width
- price
- per call, read live from the catalog on the web page
- web tool
- runs in the visitor's browser, no API call, free and unlimited
- schedule
- on demand
- setup
- https://looot.ai/skill.md
- llms.txt
- https://looot.ai/llms.txt
- updated
- 2026-10-14
Run sql formatter from your own agent.
Start your workspace, top up, and paste the prompt into the agent you already use. It runs the job with live data and shows the cost first.