Open SQL Online

View an SQL script.

Drop a file here

or

Your file stays on your device.

  • Preview: Excellent
  • File info: Yes
  • Search: Yes
  • Editing: Yes

About SQL files

SQL files contain database queries and schema definitions, often database dumps or migrations.

Open Online highlights the SQL. To run queries, open an SQLite database file instead.

What you can do here

  • Line numbers and syntax highlighting
  • Search and replace
  • Toggle word wrap
  • Edit the text and save a copy
  • See encoding, line endings, line and word counts

Limitations

  • Very large files (over 50 MB) open read-only to keep the browser responsive.

Privacy

The file is read by your browser and stays on your device. Open Online has no server that could receive it, and nothing is stored once you close the tab. Privacy policy

Common questions

Can I run the SQL here?

Not from an .sql file. SQLite databases (.db, .sqlite) can be queried in the SQLite viewer.