SQL Formatter
Turn a one-line query into readable SQL, with the keywords lined up.
Funciona en tu navegadorGratis · sin registro
Acerca de SQL Formatter
Paste a query and get it back on sensible lines: each major clause starts a new line, joins and conditions are indented, and the keywords can be put in capitals. Strings and quoted names are left exactly as they were. Useful for a query pulled out of a log or an ORM.
Esta herramienta funciona en tu navegador, así que tus archivos nunca salen de tu dispositivo.
Cómo usar SQL Formatter
- Paste your SQL.
- Choose whether keywords should be in capitals.
- Copy the formatted query.
Preguntas
Which dialects work?
The common clauses of MySQL, PostgreSQL, SQLite and SQL Server all format fine. It lays the query out; it does not parse or validate it.
Will it change my query?
Only the spacing and the case of keywords. Text inside quotes is never touched.
Can it handle a very long query?
Yes, though deeply nested subqueries come out flatter than a hand-written layout would be.
Herramientas relacionadas
- Epoch Converter – Convert a Unix timestamp to a date and back, in your time, IST and UTC.
- Colour Contrast Checker – Check whether a text and background pair passes WCAG contrast rules.
- Lorem Ipsum Generator – Make placeholder text by paragraphs, sentences or words.
- Formateador y validador de JSON – Da formato, minifica y valida JSON. Muestra la línea y columna exactas de cualquier error.
- Contador de palabras y caracteres – Cuenta palabras, caracteres, oraciones y párrafos, con tiempo de lectura y palabras clave principales.
- Convertidor de mayúsculas y minúsculas – Cambia el texto a MAYÚSCULAS, minúsculas, Tipo Título, Tipo oración, camelCase, snake_case y más.
- Generador de contraseñas – Crea contraseñas aleatorias seguras. Elige la longitud y los caracteres, y comprueba su fortaleza.
- Generador de hash y UUID – Genera UUID y hashes MD5, SHA-1, SHA-256, SHA-384 o SHA-512 de texto y archivos.