SQL Formatter
Format SQL queries with proper indentation and keyword capitalization
์ฌ์ฉ๋ฒ
- 1Paste your SQL
Drop any SQL query - even messy, single-line queries.
- 2Pick indent style
Choose 2 spaces, 4 spaces, or tabs; keywords can be UPPER or lower case.
- 3Copy the result
Get a cleanly formatted query ready to paste into your editor or migration.
SQL Formatter ์๊ฐ
Free online SQL formatter. Paste any SQL query - SELECT, INSERT, UPDATE, DDL - and get back cleanly indented output with keywords in uppercase and clauses on their own lines. Works across MySQL, PostgreSQL, SQL Server, SQLite, and BigQuery dialects. 712 Tools์ SQL Formatter์ ์ต์ JavaScript API๋ฅผ ์ฌ์ฉํด ์ฌ๋ฌ๋ถ์ browser์์ ์์ ํ ๋์ํฉ๋๋ค - server๊ฐ ์ฌ๋ฌ๋ถ์ ๋ฐ์ดํฐ๋ฅผ ๋ณผ ์ผ์ด ์ ๋ ์์ต๋๋ค. ์ฆ, ์ฆ๊ฐ์ ์ธ ๊ฒฐ๊ณผ, ์์ ํ ํ๋ผ์ด๋ฒ์, ๊ทธ๋ฆฌ๊ณ ์ ๋ก๋ ์ ํ์ด ์์ต๋๋ค.
debugging ์ธ์ , ๋น ๋ฅธ sanity check, ๋๋ ํ๋ก๋์ ์ธ์๋ํธ - ์ด๋ค ์ํฉ์ด๋ ์ด ํด์ ์ํ๋ ๋งํผ ๋ฌด๋ฃ๋ก ์ฌ์ฉํ ์ ์์ต๋๋ค. ์ํฐ๋งํฌ ์์, ๊ฐ์ ์์, ํด ๋ด ๊ด๊ณ ์์.
์์ฃผ ๋ฌป๋ ์ง๋ฌธ
Which SQL dialects are supported?
Standard ANSI plus dialect-specific keywords from MySQL, PostgreSQL, SQL Server, SQLite, and BigQuery. Rare vendor extensions may not indent perfectly.
Does it validate my SQL?
No. It only reformats - a syntax error in your SQL will still appear in the output. Use your database's EXPLAIN for validation.
Are comments preserved?
Yes. Both -- line comments and /* block comments */ are kept in place.
Is my query uploaded?
No. Formatting runs entirely in your browser.
๊ด๋ จ ํด
JSON Formatter
Pretty-print, minify, and validate JSON instantly
Regex Tester
Test JavaScript regular expressions with live matches
JSON Diff
Structural diff of two JSON documents - added, removed, changed
User-Agent Parser
Parse any User-Agent string into browser, OS, device, and engine
Word Counter
Count words, characters, sentences, paragraphs, reading time
Case Converter
Convert text to UPPERCASE, lowercase, camelCase, snake_case, kebab-case, and more