$devtoolkit.sh/tools/sql-to-csv

SQL Result to CSV

Convert tab- or pipe-separated SQL CLI output into clean CSV format.

$sql cli output
0 chars1 lines
$csv output[READY]
0 chars1 lines

Related Tools

FAQ

What SQL CLI output formats are supported?
Tab-separated output (default for many CLIs), pipe-separated output (psql default), and fixed-width space-aligned tables are all supported. Decorative lines (---+--- style borders) are stripped automatically.
Are fields with commas handled correctly?
Yes. Any field that contains a comma, a double quote, or a newline is wrapped in double quotes in the CSV output, following the RFC 4180 standard.
Can I download the result?
Yes — use the download button in the output panel to save the CSV file directly to your device.

Paste the raw output from a database CLI (psql, mysql, sqlite3) and convert it to standard CSV. Handles tab-separated, pipe-separated, and space-aligned formats, strips decorative borders, and properly quotes fields that contain commas or quotes.

/tools/sql-to-csvv1.0.0