Free Online Tool sql Formatter, Beautifier

Input data
bfotool loadding
Output data
bfotool loadding

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 Beautifier Example

Before Beautify:

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 Beautify:

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