Independent guide & tools · Not affiliated with DB Browser for SQLite

All tutorials

Import a CSV file into SQLite

Create a table from a CSV file and check imported values.

Step-by-step instructions

  1. Create or open a database in DB Browser for SQLite.
  2. Choose File → Import → Table from CSV file and select your CSV.
  3. Review delimiter, encoding and header settings in the import preview. Choose a suitable table name.
  4. Inspect the resulting table, especially numeric values, dates and empty fields. Write changes when satisfied.

SQL example

Adapt example table names to your database.

SELECT COUNT(*) FROM imported_data;

Try the online SQLite viewer · Desktop installation guide