readme.now

SQL Formatter & Beautifier | Format MySQL, PostgreSQL, T-SQL

Instantly format and beautify messy SQL queries locally in your browser. Supports Standard SQL, PostgreSQL, MySQL, SQLite, and SQL Server dialects.

SQL Formatter

Instantly format and beautify messy SQL queries safely in your browser. No data is sent to a server.

Raw Query
Formatted Query

Professional SQL
Beautification

Complex SQL queries with multiple JOINs and nested subqueries can quickly become unmanageable. Our SQL formatter supports multiple dialects-including MySQL, PostgreSQL, and SQL Server-to ensure your database logic remains clean and maintainable.

Dialect Aware

Handles specific syntax for different database engines.

Private Execution

Your query logic and table schemas stay in your browser.

Format SQL while preserving query meaning

Choose the dialect that matches the database before formatting. The formatter changes layout and keyword presentation; it does not execute the query or prove that identifiers and functions exist.

Example input

select u.id,u.email from users u where u.active=true order by u.id desc;

Expected output

SELECT
  u.id,
  u.email
FROM users u
WHERE u.active = TRUE
ORDER BY u.id DESC;

Behavior

  • Supports Standard SQL and common PostgreSQL, MySQL, SQLite, MariaDB, and T-SQL syntax.
  • Keeps string literals and quoted identifiers distinct from keywords.
  • Produces copyable text without sending the query to a database.

Limits and edge cases

  • Formatting is not query validation or optimization.
  • Vendor-specific syntax may require the matching dialect.
  • Always review generated formatting before applying it to migration files.

Processing note: tool input stays in the browser. Readme.now analytics records page usage, not the payload you paste or the generated output.

Continue the workflow without copying data to a server.