EverSQL Minifier is a free online minifier for SQL statements.
The formatter will minify any SQL query while removing spaces, tabs and newlines wherever needed. Try it out to turn your SQL query to a one-liner.
What can you do with SQL Viewer ?
- Beautify/Format your SQL.
- Minify/Compress your SQL.
- Remove comment from SQL.
- Once you have created SQL Data. You can download as file or save as link and Share.
SQL Minify Example
Before Minify:
CREATE TABLE peoples(
id INTEGER PRIMARY KEY,
name CHAR(20),
age CHAR(2)
);
INSERT INTO peoples VALUES (1, 'name 1', '22');
INSERT INTO peoples VALUES (2, 'name 2', '33');
INSERT INTO peoples VALUES (3, 'name 3', '44');
INSERT INTO peoples VALUES (4, 'name 4', '55');
SELECT * FROM peoples
After Minify:
CREATE TABLE peoples( id INTEGER PRIMARY KEY, name CHAR(20), age CHAR(2) ); INSERT INTO peoples VALUES (1, 'name 1', '22'); INSERT INTO peoples VALUES (2, 'name 2', '33'); INSERT INTO peoples VALUES (3, 'name 3', '44'); INSERT INTO peoples VALUES (4, 'name 4', '55'); SELECT * FROM peoples