# SQL Prettify Guide

Reformat SQL queries so they are readable.

- Tool: https://ilham.dev/tools/sql-prettify/
- Guide URL: https://ilham.dev/guides/sql-prettify/
- Tool guides index: https://ilham.dev/guides/tools/
- Broader guide: SQL Formatting and Test Data (https://ilham.dev/guides/sql-formatting-and-test-data/)

## What it does

Reformat a SQL query with consistent indentation and uppercased keywords, so a one-line statement pasted out of a log becomes something you can read. It reformats; it does not validate.

## Use the tool

Open https://ilham.dev/tools/sql-prettify/, add the input the tool asks for, run it, and check the output before using it elsewhere.

## Input and output

- Input: text.
- Output: text.
- Category: Formats.

## Privacy and processing
Processing happens locally in your browser. This tool does not upload the input to ilham.dev.

## Questions

### Does it understand my dialect?

It knows the common keywords and the usual quoting styles. It will not tell you whether the query is valid for your database, or whether it will do what you meant.