CodeForge
  1. Developer tools
  2. CSV & JSON to SQL INSERT

CSV and JSON to SQL INSERT generator

Turn a CSV export or JSON array into ready-to-run, batched INSERT INTO statements for PostgreSQL, MySQL, SQLite or SQL Server — without uploading company data to an online converter.

Free in your browser — no sign-up. Install from the Microsoft Store to use it offline on Windows 10 and 11.

How to use it

  1. Open the SQL INSERT Generator and paste a CSV file or JSON array of objects.
  2. Set your target table name, SQL dialect, and batch size (rows per INSERT statement).
  3. Copy the generated SQL script or download it as a .sql file.

Example

CSV input
id,name,email
1,Ada Lovelace,ada@example.com
2,Grace Hopper,grace@example.com
Generated SQL INSERT
INSERT INTO "users" ("id", "name", "email") VALUES
  (1, 'Ada Lovelace', 'ada@example.com'),
  (2, 'Grace Hopper', 'grace@example.com');

Features

Frequently asked questions

Are my CSV or JSON rows uploaded anywhere?

No. Parsing and SQL generation happen locally on your device.

How are single quotes escaped?

Single quotes inside text values are doubled ('') according to standard SQL rules so strings never break the statement.

Related tools

SQL FormatterFormat and minify SQL queries.JSON FormatterFormat, validate and minify JSON.Text DiffCompare two texts line by line.UUID GeneratorUUID v4, v7, ULID and Nano ID.

One workspace for all of it

CSV & JSON to SQL INSERT is one of 18 developer tools in CodeForge — alongside a JSON formatter, JWT decoder, regex tester, UUID and hash generators, and more. Press Ctrl+K to jump to any of them.

Open CSV & JSON to SQL INSERT — free Get the Windows app

Free in your browser — no sign-up. Install from the Microsoft Store to use it offline on Windows 10 and 11.