.sql — SQL Script
Plain-text database query/schema statements written in SQL, used to define, query, or modify relational databases.
Safety guidance (not a guarantee)
SQL scripts are plain text, but running one against a database executes its statements — only run scripts from sources you trust, especially against production data.
Check another filename
File extension lookup
Frequently asked questions
What is a .sql file?
Plain-text database query/schema statements written in SQL, used to define, query, or modify relational databases.
Can I edit a .sql file?
Yes — .sql files are commonly editable with software such as Any text editor.
Does having a .sql extension mean the file is safe?
No single extension can guarantee that. SQL scripts are plain text, but running one against a database executes its statements — only run scripts from sources you trust, especially against production data. Always consider where the file came from, not just its name.
Privacy: The lookup above runs entirely in your browser. Nothing you type is uploaded, logged, or sent anywhere.