Text

SQL Formatter

Turn copied logs, BI snippets and ORM output into readable SQL. The formatter applies keyword casing, line breaks and comma spacing locally in your browser.

The formatter now protects quoted strings, quoted identifiers and SQL comments before applying keyword layout, so commas or words inside literals are not reformatted as SQL syntax.
query.sql
formatted.sql
runtime

Browser-local execution

Inputs stay inside the current tab unless you copy, download or explicitly export.

memory

Session handoff

Magic Paste can pass input to a target tool through sessionStorage, never through the URL.

control

User-owned state

Favorites, recent tools and workflow history are local browser data you can clear from the browser.

smart handoff graph

Suggested next moves

session handoff ready
sponsor

Fixed native slots for developer products. No third-party tracking, no popups, no layout shift.

Sponsor this tool
01

How to use

  1. 01Paste a compact SQL query in the left editor.
  2. 02Choose uppercase or lowercase keyword style.
  3. 03Copy the formatted query from the right editor.
02

FAQ

Which SQL dialects are supported?
The formatter is dialect-light and targets common SELECT, JOIN, GROUP, ORDER, INSERT, UPDATE and DELETE syntax.
Will it change query behavior?
It only rewrites whitespace, commas and keyword casing. Still, review important queries before running them.
03

Related tools