Toffeekit
  • Home
  • All tools513
  • Recent
  • Favorites
Categories
  • Images51
  • Video21
  • PDF33
  • AI24
  • Data21
  • SEO12
  • Developer32
  • Text27
  • Design18
  • Files13
  • Utilities5
  • Productivity17
  • Finance26
  • Math39
  • Education19
  • Date & Time29
  • Converters43
  • Fun & Random24
  • SaaS13
  • Business17
  • Social11
  • Media5
  • Security13
Buy me a coffee
ToffeekitDataCSV to SQL

CSV to SQL

CREATE TABLE and INSERT statements from CSV for MySQL, PostgreSQL, SQLite or SQL Server. Runs entirely in your browser — nothing is uploaded.

Help
Runs locally Instant, no sign-up Works offline
Use cases

One click to the right settings

Load a CSV into PostgreSQL

Typed columns, quoted names and batched INSERTs ready for psql.

Make a MySQL import script

Backtick-quoted names and properly escaped strings for MySQL.

How it works

How to use CSV to SQL

  1. 01Paste your CSV, drop a file or click Open.
  2. 02Pick the Database and type a Table name.
  3. 03Choose Rows per INSERT and switch CREATE TABLE, Detect column types and Empty cells as NULL on or off.
  4. 04Copy the SQL or click Save to download a .sql file.
Questions

CSV to SQL FAQ

6 answers to what people ask most about the CSV to SQL.

How do I convert a CSV file to SQL INSERT statements?

Paste the CSV or open the file, pick your database and table name, and the tool writes one INSERT per batch of rows. Turn on CREATE TABLE to get the table definition too.

How are column types chosen?

Each column gets the narrowest type that fits every value: INT or BIGINT for whole numbers, DECIMAL for decimals, BOOLEAN for true and false, DATE or TIMESTAMP for ISO dates, and text otherwise. Turn off Detect column types to make every column text.

Why do some numbers stay as text?

Values with leading zeros, such as ZIP codes like 02134, and numbers longer than 15 digits are kept as quoted text so nothing is lost or rounded.

How are quotes and special characters escaped?

Single quotes are doubled, which every database accepts. For MySQL, backslashes are doubled too, and SQL Server strings with non-English characters get the N prefix.

How many rows can one INSERT statement hold?

MySQL, PostgreSQL and SQLite accept large multi-row INSERTs. SQL Server allows at most 1,000 rows per VALUES list, so batches are capped there.

Is CSV to SQL free and private?

Yes. It's free with no sign-up or limits, and it runs entirely in your browser, so your files are processed on your device and never uploaded. It works on phones and computers alike.

Something not working? Tell us and we'll fix it.

Report an issue
More tools
CSV to JSON

Turn CSV rows into JSON objects.

Data
JSON to CSV

Flatten JSON into a CSV you can open in Excel.

Data
XML ⇄ JSON

Convert XML to JSON and back.

Data
CSV Cleaner

Trim cells, drop empty rows, remove duplicates.

Data
Something off with CSV to SQL? Report an issue or ask for a feature.Send feedback
© 2026 Toffeekit/Runs locally · No uploads · Free
AboutContactFeedbackPrivacyTermsCookiesSettingsllms.txt