Skip to content

How SQL Viewer & Copy works

Paste SQL or drop a .sql file to read it with syntax highlighting and line numbers, then copy the whole thing or switch to By statement to copy one statement at a time straight into the Supabase SQL editor. Great on a phone, where there is no app to open a .sql file. The split is dollar-quote aware, so a PL/pgSQL function body stays in one piece. Runs entirely in your browser; nothing is uploaded.

A quote-aware tokenizer handles strings, comments, and $$ dollar-quoted bodies so a ';' inside them never causes a false split. No network, works offline.

Questions

Is my SQL uploaded anywhere?
No. The file is read and highlighted entirely in your browser. Nothing leaves your device, so it is safe for schema you have not shipped yet.
Can I copy just one statement?
Yes. Switch to the By statement tab to see each statement as its own card with a Copy button, so you can paste them into the Supabase SQL editor one at a time.
Does it handle PL/pgSQL functions?
Yes. The statement split understands $$ dollar-quoted bodies, so a create function block stays intact instead of breaking on the semicolons inside it.
Does it work offline?
Yes. The viewer needs no network, so once the page is loaded it keeps working with no connection, handy on a phone.

More Text & Data tools

All the tools · How to check that nothing is sent

SQL Viewer & Copy, preview a .sql file online | Only in the Tab