Skip to main content
dubinity

Developer & Web

SQL Formatter

Format SQL queries for twelve dialects, with keyword casing and indentation you choose.

  • Runs in your browser
  • Works on mobile
  • In: SQL
  • Out: SQL
Loading the tool…

Your files and text are processed on your own device, inside this page. Nothing is uploaded to Dubinity or stored, and closing the tab discards it. How privacy works

About SQL Formatter

Formats SELECT, INSERT, UPDATE, DDL and stored-procedure code for standard SQL, PostgreSQL, MySQL, MariaDB, SQL Server, SQLite, Oracle, BigQuery, Snowflake, Redshift, Spark and Hive.

Keywords can be upper-cased, lower-cased or left as written. The query is formatted in your browser, so a query containing customer data or table names stays on your device.

How to use it

  1. 1Type or paste your text, or open a file.
  2. 2Choose any options - the result updates as you type.
  3. 3Copy the result or download it as a file.

Questions

Was this tool helpful?

All developer tools
  • JSON Formatter

    Format and indent JSON, or minify it, with exact error positions and big numbers kept as written.

    JSON
    Runs in your browserOpen tool
  • JavaScript Formatter

    Indent and format JavaScript or TypeScript, including minified bundles, with a choice of brace style.

    JavaScript · TypeScript · JSON
    Runs in your browserOpen tool
  • Password Generator

    Create strong random passwords with the character rules a site demands, and see the real entropy.

    NONE
    Runs in your browserOpen tool
  • What Is My IP

    See the IP address our server sees, the rough location attached to it and what your browser sends.

    NONE
    Server lookupOpen tool
  • Regex Tester

    Test regular expressions live with highlighted matches, capture groups and a replacement preview.

    TEXT
    Runs in your browserOpen tool
  • JSON Validator

    Check whether JSON is valid and see the exact line, column and reason when it is not.

    JSON
    Runs in your browserOpen tool