SQL Formatter

Paste a query, even one long line from a log, and get it indented and readable; or paste what EF Core logged and get the query with its values in place.

SQL Formatter

© 2026 Cengiz Ilerler

  • T-SQL, PostgreSQL, MySQL and MariaDB, SQLite, Oracle’s PL/SQL, BigQuery, Snowflake, Redshift and plain SQL; written with sql-formatter (MIT), kept on this site.
  • Paste what SQL Profiler or Extended Events caught (exec sp_executesql N'…', N'@p0 int', @p0=5) or EF Core’s own log line (Executed DbCommand … [Parameters=[@p0='5']]) and it comes back as the query itself with each value in its place, named in a comment, or with a DECLARE for each.
  • Keywords upper or lower case, commas at a line’s end or start, an indent of 2, 4 or a tab, AND and OR starting or ending a line; Minify puts it back on one line. Your settings are kept in this browser; what you paste never is.

More tools

Keep exploring.

All tools

Markdown Editor

Write Markdown and see it as you type, with GitHub alerts, tables, tasks, math, Mermaid and PlantUML.

Text Compare

Two texts or files side by side, every change lined up to the character.

Code Practice

Puzzles that compile, to keep a developer's mind sharp.