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
session handoff readySuggested next moves
/text
.env Parser
Convert .env files to JSON or scrubbed .env.example templates.
/text
Markdown Preview
Preview Markdown and copy safe HTML for docs, changelogs and product notes.
/text
Regex Tester
Test JavaScript regular expressions with live highlighting.
/text
Text Case Converter
Convert text between camelCase, snake_case, kebab-case and more.
sponsor
Sponsor this toolFixed native slots for developer products. No third-party tracking, no popups, no layout shift.
01
How to use
- 01Paste a compact SQL query in the left editor.
- 02Choose uppercase or lowercase keyword style.
- 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
- /text→.env ParserConvert .env files to JSON or scrubbed .env.example templates.
- /text→Markdown PreviewPreview Markdown and copy safe HTML for docs, changelogs and product notes.
- /text→Regex TesterTest JavaScript regular expressions with live highlighting.
- /text→Text Case ConverterConvert text between camelCase, snake_case, kebab-case and more.