CSV Converter
Free online CSV converter tool, JSON/SQL/Markdown supported
About CSV Converter
Converts CSV data into three target formats: JSON, SQL INSERT statements, and Markdown tables. The first CSV row is treated as the header defining column names, and each following row becomes a record. Switch between CSV to JSON, CSV to SQL, and CSV to Markdown using the tab buttons at the top.
How to Use
1. Pick a target mode with the tabs: CSV to JSON, CSV to SQL, or CSV to Markdown 2. Paste CSV into the input box (first line must be the header row) 3. For SQL mode, set the target table name (defaults to my_table) 4. Click Convert to produce the output 5. Copy the result from the output box
Output Format Details
CSV to JSON emits an array of objects keyed by the header names, pretty-printed with 2-space indentation. CSV to SQL emits one INSERT INTO <table> (cols) VALUES (...); statement per row; empty cells become NULL and single quotes in values are escaped by doubling them. CSV to Markdown emits a GitHub-flavored table with the header row, a separator row of dashes, and one row per record.
▶How is the CSV header used?
▶How are quoted values handled?
▶How does the SQL mode handle empty values?
▶What does the table name field do?
If this tool has been helpful to you, consider buying me a coffee.
Buy me a coffee