Free, browser-based utilities for everyday developer workflows

CSV → SQL INSERT / UPSERT Generator

Paste spreadsheet rows as CSV and generate INSERT, UPSERT, or MERGE statements with configurable SQL dialect and keys.

  • Generate INSERT, UPSERT, or MERGE SQL from CSV headers and rows.
  • Supports PostgreSQL, MySQL, SQLite, and SQL Server output styles.
  • Handles NULLs, numeric detection, and unique-key-based update clauses.

Generation settings

CSV input

Preview

No rows parsed yet.

Generated SQL

How to use CSV → SQL INSERT / UPSERT Generator

Paste CSV with a header row, set the target table name, choose a dialect, and click Generate SQL. For UPSERT or MERGE output, specify the unique key columns used to match existing rows.

Common use cases

Analysts use this to move spreadsheet exports into ad hoc SQL workflows, QA engineers use it to create fixture inserts quickly, and developers use it when a CSV file needs to become migration or support SQL without manual quoting.

Why run this in your browser?

All processing happens locally in your browser. Your CSV exports and generated SQL stay on your machine, which is useful for internal data, support extracts, and one-off operational tasks.