SQL Formatter

Make SELECTs and JOINs more readable with line breaks on common keywords.

Overview

Simple keyword-based formatting. For large projects, combine with your editor or CI formatter.

Tool guide

  • O que é SQL Linguagem declarativa para consultar e manipular dados em bancos relacionais (SELECT, INSERT, JOIN, etc.).
  • O que a ferramenta faz Insere quebras de linha em palavras-chave comuns para melhorar a leitura de consultas.
  • Por que usar Ler SQL colado de logs ou de uma linha só; preparar exemplos para wiki. Para projetos grandes, formatadores do editor ou do CI tendem a ser mais completos.

Before and after

select id,name from users where active=1 order by name

FAQ

What is this tool for?

It runs fully in your browser: useful to validate, format, or convert data in everyday development.

Are my inputs sent to a server?

Processing happens locally with JavaScript. We do not store what you paste into the text areas.

Can I use this for real production data?

Use at your own risk. For secrets (passwords, tokens), prefer controlled environments and your company policies. And always review the generated contents. Never trust blindly things you see on the internet.