# Formateador de SQL

> Facilita la lectura de SQL en el dialecto que elijas.

[Open tool](https://www.toolcabana.com/es/sql-formatter) · [Desarrollo y datos](https://www.toolcabana.com/es/category/developer-and-data)

Tool ID: sql-formatter. Requested language: es. Description language: es. Complete guide translation: yes.

## Overview (en)

SQL formatter reformats a SQL query so each clause, such as SELECT, FROM, WHERE and ORDER BY, starts on its own line with its items indented below. You choose the dialect: standard SQL, PostgreSQL, MySQL, SQLite or Transact-SQL. Keyword case is kept as you typed it, and the query is only formatted, never run.

## Supported tasks (es)

Facilita la lectura de SQL en el dialecto que elijas.

## Steps (es)

1. Pega la fuente en el editor de entrada o carga el ejemplo integrado.
2. Configura el dialecto SQL.
3. Ejecuta el formateador de SQL, revisa la salida y usa los controles disponibles para copiar o descargar.

## Settings

- Dialecto SQL (es; key: dialect; type: select): sql [es], postgresql [es], mysql [es], sqlite [es], transactsql [es]

## Limitations (es)

Las operaciones de texto aceptan generalmente hasta 2,000,000 caracteres. Los analizadores, generadores y fórmulas individuales aplican límites adicionales que muestran sus controles.

## Example input

```text
select id, name from people where active=true order by name
```

## Privacy and connections (es)

Esta operación procesa su fuente en tu navegador. Copiar y descargar son acciones explícitas; la entrada de origen no se guarda en una cuenta ni en un historial.

## Questions (es)

### Which SQL dialects can I format?

The SQL dialect setting offers standard SQL, PostgreSQL, MySQL, SQLite and Transact-SQL. Choosing the dialect that matches your database helps the formatter recognize its specific syntax.

### Does the SQL formatter change keywords to uppercase?

No. Keywords keep the case you entered, so a lowercase select stays lowercase. The formatter changes line breaks, indentation and spacing around operators.

### Can I format several SQL statements at once?

Yes. Paste multiple statements separated by semicolons and each one is laid out on its own lines with the same dialect rules.

### ¿Dónde se procesa mi entrada?

Esta operación procesa su fuente en tu navegador. Copiar y descargar son acciones explícitas; la entrada de origen no se guarda en una cuenta ni en un historial.

### ¿Cuáles son los límites de entrada?

Las operaciones de texto aceptan generalmente hasta 2,000,000 caracteres. Los analizadores, generadores y fórmulas individuales aplican límites adicionales que muestran sus controles.

## Related tools

- [HTML beautifier](https://www.toolcabana.com/es/html-formatter)
- [XML formatter](https://www.toolcabana.com/es/xml-formatter)
- [CSS beautifier minifier](https://www.toolcabana.com/es/css-formatter)
- [JavaScript formatter](https://www.toolcabana.com/es/js-formatter)
