Beautify SQL, and edit long INSERT statements as a field-by-field grid
This page does two things. It formats messy SQL — indentation, keyword case, line breaks — and it opens a long INSERT statement as a field-by-field grid, so you can see exactly which value belongs to which column instead of counting commas.
It supports multiple formatting options including keyword case conversion, indent size, and semicolon handling, plus parameter filling to replace parameter placeholders in SQL during development and testing.
All processing happens locally — your SQL never leaves your browser. The interface is clean and intuitive, so even SQL beginners can use it with ease.
For a step-by-step deep dive — including how to replace ? / @param / :param placeholders — read our guide: How to Format SQL and Replace Parameter Placeholders.
A long INSERT with thirty values is hard to edit because position is everything: the eighth value belongs to the eighth column, and one missing comma shifts every value after it. The Insert Editor parses the statement, matches each value to its column, and shows the result as a grid you can edit.
Change any cell and the tool rebuilds a valid INSERT statement from the grid, keeping the table name and column list intact. That is useful when you need to fix one value in a seed file, compare two rows field by field, or check that a migration inserts the data you expect.
The editor needs an explicit column list — INSERT INTO t (col1, col2) VALUES (...). Without one there is no way to know which value belongs to which column, so the tool says so instead of guessing.
For a walkthrough with a worked example, read how to edit long INSERT statements without losing track of fields.
Automatically formats SQL statements for clean, readable, maintainable code.
Supports multiple parameter formats; auto-detects and fills parameter placeholders in SQL.
Offers various formatting options to match different coding style preferences.
All processing runs locally — your SQL is never uploaded.
It reorganizes SQL into a consistent, readable layout with proper indentation, line breaks, and capitalization — without changing what the query does.
No. A formatter only adjusts whitespace and line breaks, so the logic and results stay exactly the same.
Yes. The formatter handles common SQL — SELECT, INSERT, UPDATE, and DELETE — across dialects like MySQL, PostgreSQL, and SQLite.
Yes. Open the Insert Editor, paste the statement, and the tool matches each value to its column and shows it as an editable grid. Change a cell and it rebuilds the INSERT for you. The statement needs an explicit column list.
No. Formatting happens locally in your browser — useful when a query contains real table or column names you would rather not paste into a server.