Convert CSV to SQLITE

Turn CSV files into SQLITE. A SQLite database with one table named data, its columns typed from the values, such as integers, decimals, dates and text.

Converted in an isolated sandbox on our serversDeleted after 24 hours

Drop CSV files on the dialor turn it to pick what to do

A CSV table as a SQLite database.One table named data, with columns typed from the values.

  1. What you get

    A SQLite database in one file. It holds a single table named data, with one column for each column in the CSV.

    The columns are typed from the values, such as integers, decimals, dates and text. A column that mixes numbers and text further down is kept as text.

  2. Column names

    By default the first row is read as the column names. Turn off Header row if the first row is data. The columns are then named column0, column1 and so on.

  3. Reading the fields

    Delimiter sets the character between fields: a comma, a semicolon, a tab or a pipe. When it is left out, it is guessed from the rows. Spreadsheets in many European locales use semicolons, so set Delimiter to semicolon if your file comes from one.

    To go the other way, use SQLITE to CSV.

CSV and SQLITE.What each format is, and the options this conversion takes.

  1. 01 · delimiter

    Delimiter

    The character between fields. It is guessed from the rows when left out. Spreadsheets in many European locales use semicolons.

    • comma A comma.
    • semicolon A semicolon.
    • tab A tab.
    • pipe A vertical bar.
    comma · semicolon · tab · pipe
  2. 02 · header

    Header row

    Whether the first row holds the column names rather than data.

    default true

The formats

From · CSV

CSV

Rows of comma-separated values. The plainest way to move a table between programs.

Extensions
.csv
MIME type
text/csv
Kind
Text and data
To · SQLITE

SQLite Database

A whole relational database in one file. Tables, indexes and views.

Extensions
.sqlite .sqlite3 .db
MIME type
application/vnd.sqlite3
Kind
Text and data

In your code.The same CSV to SQLITE conversion through the API, for your app or your agent.

terminal
$ cv convert sheet.csv sheet.sqlite
$ cv convert sheet.csv sheet.sqlite

Questions.What people ask about CSV to SQLITE.

01OF 04

The table is named data. A CSV file produces one table, and the output is one file.

They come from the values, such as integers, decimals, dates and text. If a column has numbers and then text further down, it is kept as text.

Turn off Header row. The first row is then kept as data, and the columns are named column0, column1 and so on.

Not always. When Delimiter is left out, it is guessed from the rows. Set it yourself to comma, semicolon, tab or pipe if you want to be sure.

More conversions.Other ways in and out of CSV and SQLITE.