Access to SQLite: Convert .accdb Tables

An Access database into one .db file: every table in the same file, memo text intact, dates as ISO text, and no server to install on the other side.

Download DBCopier — free trial

Version 3.1.2 · Windows, Linux, macOS · 30-day free trial, then $129 one-time · runs fully offline

DBCopier converting Access tables into a SQLite file - the run list with rows per table and the convert progress at 100%

How to Convert an Access Database to SQLite

Step 1: Open the .accdb or .mdb file

Tables, saved queries and linked tables are listed with their record counts. On Windows the file is read through the Access database engine, whose bitness must match the tool's.

Step 1 screenshot

Step 2: Choose the SQLite file

A new .db or an existing one. All the tables of one Access database can go into the same file - that is the usual shape, since SQLite has no per-schema separation.

Step 2 screenshot

Step 3: Review the column types

Access types land on SQLite's five affinities; the screen shows the result per column and lets a money column stay exact instead of becoming a REAL.

Step 3 screenshot

Step 4: Run it, then open the file

The run reports rows written per table. SQLite is a single file, so checking it is one query away - open it and read a row back.

Step 4 screenshot

Where the Two Models Actually Differ

Access is a desktop application with a rich type system and a user interface attached; SQLite is a library with five storage classes and no server. Converting one into the other is mostly about which of Access's conveniences have no landing place.

Types become affinities. Short Text, Long Text, Number and Currency all become some combination of TEXT, INTEGER, REAL and NUMERIC - SQLite will store what it is given regardless, so the choice is about comparison and sorting, not about enforcement.

Date/Time has no type. Access keeps one value for date and time together; SQLite keeps text or a number, and the convention is yours. ISO-8601 text is the choice that still sorts correctly and still reads as a date.

Yes/No has no boolean. The usual mapping is INTEGER 0/1 - and the one thing to decide is what Access's -1 becomes on the way in, because a filter written as = -1 will stop matching.

Access to SQLite — Type Mapping

The mapping in this direction, and where each one needs a decision:

AccessSQLiteWhat to decide
Short TextTEXTthe 255-character limit disappears - no widening needed
Long Text / MemoTEXTone column now instead of a pointer into a side file
Number: Long IntegerINTEGERmake the old AutoNumber an INTEGER PRIMARY KEY if it is the key - that column becomes the rowid
Number: DoubleREALfloat arithmetic applies from here on; comparisons with = get unreliable
CurrencyNUMERIC or INTEGER centsa REAL loses cent-level exactness on long sums - the one type worth overriding
Date/TimeTEXT ISO-8601keeps the time part that a DBF would have dropped, and still sorts
Yes/NoINTEGER 0/1normalise -1 into 1, otherwise every boolean filter must learn Access's -1 convention
Attachmentnot mappedseveral files per row; export them separately and keep a name column

Indexes and relationships do not travel either. In SQLite that is less of a loss than it sounds: declare the old key as INTEGER PRIMARY KEY and recreate the few indexes the queries actually use, and the file behaves.

One File, One Writer

An Access database is one file too, which makes this pair simpler than any server migration - and carries the same single-writer behaviour.

SQLite allows one write transaction at a time. If the .db is open for writing elsewhere while the conversion runs, the copy fails with SQLITE_BUSY rather than waiting politely; WAL mode lets readers continue but does not add a second writer.

For a cut-over that is a non-issue. For a recurring sync it is the reason to run the task on a schedule rather than leave two applications writing to the same file.

Access to SQLite — Quick Facts

Source
Access 2000–365: .mdb and .accdb, tables, queries, linked tables
Target
a SQLite 3 .db file - created by the run if needed
Types
five affinities: TEXT, INTEGER, REAL, NUMERIC, BLOB
Dates
stored as ISO-8601 text by convention; SQLite has no date type
Not copied
relationships, indexes and Access's saved queries as objects
File size
usually smaller - Access keeps text in UTF-16, SQLite writes UTF-8
CLI
the saved task runs without a window, one command and one log

Common Pitfalls when Converting Access Data

  • Money as REAL drifts: sums of thousands of REAL amounts stop agreeing to the cent - map Currency to NUMERIC text or integer cents.
  • Yes/No arrives as -1: Access stores -1 for true, so a filter written as = 1 finds nothing until the values are normalised.
  • A date becomes text: ISO-8601 sorts and compares correctly; any other format quietly sorts alphabetically instead.
  • AutoNumber is only a value: map it to INTEGER PRIMARY KEY and SQLite treats it as the rowid - leave it a plain integer and new rows get keys from nowhere.
  • Attachments and multi-value fields have no equivalent: several files per row need their own export.
  • ACE bitness must match on Windows: a 64-bit tool with the 32-bit Access engine reports a provider error that looks like a damaged database.
  • The file usually gets smaller: a 100,000kb Access database becomes smaller once converted, because Access stores text as UTF-16 and SQLite writes UTF-8 - and attachment data, which does not travel, is usually the part that made the source large.

Which Searches Land Here

This page converts Access into a SQLite file. The neighbouring searches below mean a different direction or a different target:

What you searchedMeaningPage
access to sqlite, convert access to sqlite, ms access to sqlite, how to change access database to sqlitethis pageyou are on it
can microsoft access import sqlite3 freeAccess has no native SQLite importer - it reads its own formats. This direction works, and the trial is free for 30 days either waythis page (Access is the source here, not the reader)
sqlite to accessthe reverse directionSQLite to Access
access to dbf, access to dbasea DBF file as the targetAccess to DBF
access to sql server, access to mysqla server database as the targetAccess to SQL Server
access to excel, access to csva spreadsheet or text file insteadAccess to Excel
sqlite to csv, sqlite to jsonexporting out of SQLite afterwardsSQLite to CSV

Before the run, two things are worth a query in Access: the largest Currency value in the schema (that is the column to keep exact) and whether any table has an Attachment field - those rows need a decision rather than a mapping.

Verify Three Things After the Conversion

  • Table and row counts: every Access table should exist in the .db with the same record count - the run log names both numbers.
  • A money column: sum it in both databases. A difference of a cent is the REAL decision showing itself.
  • A boolean and a date: the boolean should read 0/1 and the date should still sort - those two are where the mapping is visible in a single row.

Frequently Asked Questions

How do I convert an Access database to SQLite?
Open the .accdb, choose the SQLite file as the target, review the column types and run it. All the tables of one Access database can go into the same .db.
Do I need Access installed?
No. Access files are read through the Access database engine on Windows, and its bitness has to match the tool's.
Where do dates go?
Into TEXT as ISO-8601, which keeps the time part and still sorts correctly. SQLite has no date type of its own.
How are Yes/No fields handled?
As INTEGER 0/1. Access stores -1 for true internally, so the values are normalised on the way in.
Why should Currency not be a REAL?
Binary floating point cannot represent every decimal amount exactly; long sums drift. NUMERIC or integer cents stays exact.
Are relationships and indexes copied?
No. Recreate the indexes the queries need, and map the old key to INTEGER PRIMARY KEY where it applies.
What about Attachment columns?
They hold several files per row and have no SQLite equivalent - export the files separately.
Can it keep the two in step?
Yes - save the task and run it on a schedule; SQLite allows one writer at a time, so nothing else should be writing to that file during the run.

Download Withdata DBCopier Now

Start converting Access tables into a SQLite file in seconds - free trial for Windows, Linux and macOS.

$75 one-time · volume discounts to $55 · 30-day money-back · pricing & licence terms

Download Free Trial