.sql · 100% private

Open SQL files online

Drop a SQL file to preview it instantly in your browser. Free and private: your file is never uploaded, and no account is needed.

Drop your SQL file here
or click to browse your device
file
Preview
Drop a file on the panel above to begin
Files never leave your device No sign-up, no account Free forever

What is a SQL file?

A SQL file contains statements for a relational database, such as CREATE TABLE, INSERT and SELECT. It can be a hand-written query, a migration or a full database dump.

Dumps from MySQL, PostgreSQL and SQLite are often shared as .sql files and can be many megabytes long.

Full nameStructured Query Language Script
File extension.sql
MIME typeapplication/sql
Developed byISO/IEC 9075 (originated at IBM)
Introduced1974 (standardised 1986)

How to open a SQL file online

  1. Drop the file. Drag your .sql file onto the panel at the top of this page, or click it to pick the file from your device.
  2. See it instantly. Your browser reads the file locally and shows the preview in a second or two.
  3. View full screen or download. Use the full screen button for a distraction-free view, or download a copy. Close the page when you are finished and nothing is kept.

How Drop and Open displays SQL files

Drop and Open reads the file locally as UTF-8 text and shows it in a monospace block with line breaks preserved. The content is inserted as plain text, so nothing inside the file can run. No syntax highlighting is applied.

Good to know: The viewer never connects to a database and does not run the SQL. Large dumps can take time to load because the whole file is shown.

What SQL files are used for

  • Database backups and dumps
  • Migrations
  • Saved queries
  • Sharing sample data

Tips for working with SQL files

  • Read a script before running it on a production database.
  • Look for DROP and DELETE statements in unknown files.
  • Compress large dumps with gzip for sharing.

Is it private to open a SQL file here?

Yes. Drop and Open runs entirely in your browser. When you choose a file, the browser reads it into local memory and displays it. There is no upload, no account, and no server-side copy. You can check this by opening your browser's developer tools, watching the Network tab and dropping a file. Learn more in our guide to client-side and server-side viewers.

SQL viewer questions

Is it safe to preview a SQL file?
Yes. It is shown as text and not executed.
How do I run a SQL file?
Use a database client or command line tool such as psql or mysql.
Why is my dump so big?
It includes every row as an INSERT statement.
Is it uploaded?
No.