Drop your SQL file here
or click to browse
View and analyse SQL scripts with syntax highlighting, structure breakdown, and smart formatting - all in your browser. Works with MySQL, PostgreSQL, SQLite, and more. Need to view other file types? Try our CSV Viewer, Excel Viewer, or JSON Viewer.
or click to browse
Keywords, strings, numbers, identifiers, and comments are each colour-coded for instant readability.
Search any term and jump to matches highlighted inline - useful for large dumps with hundreds of statements.
Auto-detects SELECT, INSERT, UPDATE, DELETE, CREATE, ALTER, and DROP statements with a table reference list.
One-click formatter uppercases all keywords and adds consistent indentation to improve readability.
No file needed - paste SQL directly from your clipboard and view it instantly without touching the file system.
Everything runs locally in your browser. Your SQL scripts, schemas, and credentials never leave your device.
This viewer understands SQL from all major database engines. It also pairs nicely with our CSV Viewer when you have tabular exports alongside your scripts.
The viewer accepts .sql and .txt files containing SQL statements. It works with exports from MySQL Workbench, phpMyAdmin, pgAdmin, SQL Server Management Studio, DBeaver, and other tools. You can also paste SQL directly using the "Paste SQL" tab - no file needed.
No - this is a read-only viewer. It does not connect to any database and cannot run statements. To execute queries you need a database client connected to your server (e.g. phpMyAdmin, DBeaver, or pgAdmin). The viewer is purely for reading, reviewing, and analysing scripts offline.
Yes - all processing happens 100% in your browser using JavaScript. Files are never uploaded to any server. This means your database schemas, passwords, sensitive column values, and business logic never leave your device. It is safe to use with confidential production scripts.
Formatted - shows syntax-highlighted SQL with line numbers, colour-coded keywords, strings, and comments. Raw - the original plain-text content with no markup. Structure - an analysed breakdown listing all statement types, tables referenced, and a numbered preview of every statement found in the file.
The viewer handles files up to 10 MB comfortably. Very large database dumps (50 MB+) may slow the browser tab because all parsing runs in JavaScript. For huge files consider splitting the dump or using a local desktop SQL editor instead.
Clicking the wand icon auto-formats the SQL by uppercasing all recognised keywords (SELECT, FROM, WHERE, etc.) and adding line breaks and indentation before major clauses. The result replaces the raw content so you can export the formatted version. This is a basic formatter - complex nested queries may not indent perfectly.
Three export options are available. Export SQL downloads the current (optionally formatted) SQL as a .sql file. Export TXT saves it as plain text. Export JSON produces a structured JSON file with operation counts, table names, and a numbered statement list - useful for auditing or further processing in scripts. You can also use other tools on ConvertICO such as the Text Transform tool to process the exported text further.