OneTool

CSV to Markdown / SQL Table Converter

Paste CSV, output a Markdown table or CREATE TABLE + INSERT SQL.

Output
Column alignment

Column types are inferred from the sample data using simple heuristics — this is a best-effort starting point, not a guarantee. Always review generated DDL/DML before running it against a real database.

What is this tool?

Turns pasted CSV into either a Markdown table (header row plus alignment options) or SQL: a CREATE TABLE statement with column types inferred from the sample data (integers, decimals, ISO dates, booleans, or VARCHAR sized to the longest value) plus INSERT statements batched into manageable multi-row groups. Single quotes in string values are escaped automatically.

How to use it

  1. Paste CSV with a header row.
  2. Choose Markdown table or SQL statements.
  3. For SQL, set a table name and copy the CREATE TABLE / INSERT statements.