Skip to content
Ovatly

SQL to CSV Formatter

100% PrivateData & JSON Tools

Turn pasted SQL terminal output into a proper CSV file you can open in a spreadsheet.

Runs entirely in your browser. Your input is not uploaded to Ovatly or anywhere else.

  1. 1Copy the query output from your terminal and paste it here.
  2. 2Leave the format on Auto-detect, or pick the format yourself if detection picks wrong.
  3. 3Press Convert to CSV and check the detected format shown above the result.
  4. 4Copy the CSV or download it as query-result.csv.

About this tool

The SQL to CSV Formatter rescues data trapped in terminal output: paste the ASCII table from a MySQL or psql session, aligned columns with a dashed separator, or delimited text, and get a proper CSV file out.

Related tools

Advertisement

Part of Ovatly's free tools in Data & JSON Tools.