SQL to CSV Converter

Paste your SQL console result below to convert it into CSV format.

How it Works

This tool parses common SQL console output formats (like those from MySQL, PostgreSQL, etc.) that use '|' as a separator and converts the data rows into a standard CSV (Comma Separated Values) format.

It automatically handles escaping for fields containing commas, double quotes, or newlines to ensure CSV validity. Formatting lines (like `+---+---+`) and summary lines (like `(x rows)`) are ignored.

Simply paste your SQL output, click convert, and download the resulting CSV file. It's completely free and runs in your browser.