MySQL Formatter

Paste a MySQL query, choose indentation and keyword case, and format it. The query is never executed.

How to use

Paste a MySQL query, choose indentation and keyword case, and format it. The query is never executed.

Example

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

Notes & limits

MySQL mode formats SQL; it does not execute queries or validate your database schema. Maximum input: 500,000 characters. Syntax highlighting is disabled above 100,000 characters.

All processing takes place in your browser. No account or file uploads are needed.

Explore tools

Languages

Select a timezone

Search by city, country, or standard timezone name.