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
- Paste CSV with a header row.
- Choose Markdown table or SQL statements.
- For SQL, set a table name and copy the CREATE TABLE / INSERT statements.
Related conversions tools
- .env ⇄ JSON ConverterConvert dotenv key/value files to JSON objects and back.
- JSON to C# ConverterGenerate C# class definitions from sample JSON.
- JSON to TypeScript ConverterGenerate TypeScript interfaces or types from JSON.
- JSON to Python DataclassGenerate Python dataclasses or Pydantic models from JSON.