File viewer
SQL Viewer
Paste SQL or drop a .sql file to format, inspect, search, split statements, and detect tables locally in your browser.
Runs Locally
This tool runs in your browser. Files never leave your device.
SQL input
Paste SQL, open a file, or drag/drop anywhere in this card.
SQL output
Formatted viewer, raw source, or compact SQL.
1-- FreeProTool SQL Viewer -- DROP a .sql file here2OR paste SQL to inspect it locally.3CREATE TABLE users (id INTEGER PRIMARY KEY, email VARCHAR(255) NOT NULL, created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP);4INSERT INTO users (id, email)5VALUES (1, 'demo@example.com'), (2, 'test@example.com');6SELECT u.id, u.email, COUNT(o.id) AS order_count7FROM users u8LEFT9JOIN orders o ON o.user_id = u.id10WHERE u.created_at >= '2026-01-01'11GROUP BY u.id, u.email12ORDER BY order_count DESC;
Stats
Statements
3
Tables
2
Lines
19
Size
496 B
SELECTs
1
Writes
1
Schema ops
0
Comments
2
Detected tables
ordersusers
Statements
#1 · CREATE
-- FreeProTool SQL Viewer -- Drop a .sql file here or paste SQL to inspect it locally. CREATE TABLE users ( id INTEGER PRIMARY KEY, email VARCHAR(255) NOT NULL, created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP );
#2 · INSERT
INSERT INTO users (id, email) VALUES (1, 'demo@example.com'), (2, 'test@example.com');
#3 · SELECT
SELECT u.id, u.email, COUNT(o.id) AS order_count FROM users u LEFT JOIN orders o ON o.user_id = u.id WHERE u.created_at >= '2026-01-01' GROUP BY u.id, u.email ORDER BY order_count DESC;
What this tool does
SQL Viewer opens a .sql file and lays out the statements so a long database script becomes readable. Scan the queries, schema definitions, and inserts, and find your way around a dump or migration without loading it into a database client first.
How it works
Open or drop a .sql file and the viewer formats it in your browser so the statements are easy to follow. Read through the queries and scripts right in the page. Nothing is uploaded.
When to use SQL Viewer
Reviewing a database dump or migration script
Reading queries before you run them
Checking a schema definition in a .sql file
Inspecting a script without a database client