Free browser tool · No signup

SQL Formatter

Format SQL queries for PostgreSQL, MySQL, SQLite, SQL Server and other dialects in your browser.

Your input stays in this browser. No API calls or server uploads.

How to use the sql formatter

Choose the SQL dialect, indentation and keyword case. Paste a query or load an example, then format, copy or download the result.

Supported features and limitations

Formats queries without executing them or connecting to a database. Formatting is not a complete syntax or security check. Stored procedures and custom statement delimiters are not supported. Inputs are limited to 50,000 characters.

Related tools

JSON Formatter

  • Meta Tag Generator — Generate escaped SEO, Open Graph and Twitter card tags from your page details.
  • JSON Diff Checker — Compare JSON values by structure and see added, removed and changed paths.
  • JWT Decoder — Read a JWT header, payload and timestamp claims locally in your browser.
  • Cron Expression Generator — Build five-field cron schedules and preview upcoming execution times in UTC.
  • YAML ↔ JSON Converter — Convert YAML to JSON or JSON to YAML with clear validation errors.
  • Base64 Encoder / Decoder — Encode UTF-8 text or files as Base64 and decode standard Base64 or Base64url locally.
  • Unix Timestamp Converter — Convert Unix seconds or milliseconds to UTC and local time, or convert a UTC date to a timestamp.
  • Regex Tester — Test JavaScript regular expressions, highlight matches and inspect captured groups.
  • UUID Generator — Generate individual or bulk version 4 UUIDs with cryptographically secure browser randomness.
  • JSON Schema Generator — Infer a draft 2020-12 JSON Schema from sample JSON, including nested objects and mixed arrays.
  • Hreflang Generator — Generate HTML alternate-language tags from language codes and page URLs without fetching any website.
  • n8n Workflow JSON Checker — Check exported workflow JSON for structural issues, duplicate nodes and broken connection references.
  • Invoice Generator — Create an invoice with line items, a discount and a manually entered tax rate, then print or save as PDF.
  • ROI Calculator — Calculate simple return on investment, net gain or loss from investment cost and total returns.
A LITTLE BOOST FOR YOUR BUSINESS

Get a website
for free.

Pay only for web hosting for 1 year.

Terms & conditions apply.

Apply within this windowCloses automatically when time runs out.1:00
Offer terms & conditions

Free development covers a static business website of up to 5 pages and a basic enquiry form, with purchase of 1 year of hosting. This offer does not include an online store, custom application or advanced functionality. Our team will confirm hosting pricing and the agreed scope before any payment. Submitting this form is an enquiry, not a purchase.

This application window lasts 60 seconds and restarts on a fresh page load.