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
- .env InspectorInspect, mask, and convert env files
- JSONPath ExplorerPull a value out of JSON by path
- cURL → fetchConvert curl commands to fetch()
- Markdown PreviewerLive GitHub-flavored markdown
- JSON FormatterValidate and pretty-print
- Base64Encode and decode
- Diff CheckerCompare two text blocks
- Word CountCount, readability, stats
- TimestampUnix, ISO 8601, relative time
- Hash GeneratorSHA-1, SHA-256, SHA-512
- URL EncoderEncode, decode, parse URLs
- Text CaseUPPER, lower, Title, camelCase, more
- Character EntitiesHTML entities, Unicode, ASCII lookup
- JSON to TypeScriptGenerate TypeScript interfaces from JSON
- JWT DecoderInspect JSON Web Tokens
- Page WeightWeigh a page: bytes, grade, Core Web Vitals, HAR diff
- SQL Formatter & MinifyBeautify or compact SQL
- SQL SplitterSplit a migration into statements
- SQL Pre-flight CheckCatch RLS gaps & risky SQL
- Base ConverterBinary, octal, decimal, hex, bitwise
- Unicode InspectorCode points, bytes, invisible characters