Skip to content
عُدّةUDDAH

CSV to SQL

Convert a CSV file into CREATE TABLE and INSERT statements for MySQL, PostgreSQL, SQLite and SQL Server, with column type detection.

In your browser

How to use

  1. 1Open a CSV file or paste its data.
  2. 2Choose the database and table name, and adjust column types if needed.
  3. 3Download the SQL file or copy the statements.

FAQ

Are Arabic characters stored correctly?

Yes. DEFAULT CHARSET=utf8mb4 is added for MySQL, and strings are prefixed with N and NVARCHAR is used for SQL Server.

Is CSV to SQL free?

Yes, CSV to SQL is completely free and needs no account.

Are my files uploaded to a server?

No. The tool runs entirely inside your browser, and your files and text never leave your device at any point.

Does it work on mobile?

Yes. It works in any modern browser on a phone or computer, with no app to install.

Related tools

JSON formatterFormat, minify and validate JSON, pinpointing errors by line and column, and browse it as a collapsible tree.
CSV to JSON converterConvert a CSV file or pasted Excel data into a JSON array, with delimiter detection and automatic number conversion.
JSON to CSV converterConvert an array of JSON objects into a CSV table that opens in Excel with Arabic intact, flattening nested objects.
CSV viewerOpen large CSV files in a searchable, sortable table, with statistics for each column and export of filtered results.
Statistics calculatorPaste a set of numbers to get the mean, median, mode, standard deviation, quartiles and a histogram.
CSV StudioOpen a CSV file and edit it directly: edit cells, sort and search, add and delete rows and columns, then export as CSV or JSON.