Italiano

SQL formatter

Paste a long SQL query and get it readable, with keywords in uppercase.

Free, no sign-up, no upload

How it works

Paste your SQL code in the box, choose the indent (2 spaces, 4 spaces or tab) and press Format.

Copy the result or download it as a file. Nothing is sent to a server: the formatting runs in your browser.

Private by design

Everything happens on your device. Files are not uploaded to any server.

Frequently asked questions

Is my SQL code uploaded anywhere?

No. It is formatted inside your browser and never leaves your device, so it is safe for private code.

Which indent can I choose?

2 spaces, 4 spaces or a tab.

Which SQL is supported?

Standard SQL, which covers SELECT, INSERT, UPDATE, DELETE and CREATE statements.

Related tools

Code formatter and beautifierFormat and beautify JSON, XML, PHP, HTML, CSS, JavaScript, TypeScript, SQL, YAML and more in your browserPHP formatterFormat and beautify PHP code online in your browserJSON formatter and validatorFormat, minify and validate JSONQR code generator that never expiresQR codes for links, text and Wi-Fi, no expiryUUID generatorGenerate random UUID v4 identifiers, one or hundreds at a timeRandom name pickerPick random names from a list or shuffle them into a random order

All tools →