Extract data from SQL to CSV
SQL to CSV extracts data from INSERT INTO ... VALUES (...) statements in pasted SQL text and turns them into CSV rows, entirely in your browser — nothing is uploaded to a server. It doesn't run a database or execute SELECT queries. Parsing the value list is quote-aware: a comma or closing parenthesis inside a quoted SQL string (like 'Smith, John' or 'Smith (Jr)') is treated as literal data rather than a delimiter, and a doubled '' inside a value is unescaped to a single quote. Output CSV fields are quoted per the standard convention whenever a value contains a comma, quote, or newline.
Does it run my SQL against a database or convert SELECT query results?
No — it doesn't execute any SQL. It only pattern-matches the text of INSERT INTO ... VALUES (...) statements you paste in.
Is SQL to CSV free to use?
Yes, it's completely free with no signup required.
Can I customize the CSV delimiter?
No, output always uses commas — there's no option for semicolons, tabs, or pipes.
Does it handle values containing commas?
Yes — a quoted SQL string like 'Smith, John' is parsed as a single value, and the resulting CSV field is quoted too if needed, so it stays as one column rather than splitting apart.