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 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.
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:
| Access | SQLite | What to decide |
|---|---|---|
| Short Text | TEXT | the 255-character limit disappears - no widening needed |
| Long Text / Memo | TEXT | one column now instead of a pointer into a side file |
| Number: Long Integer | INTEGER | make the old AutoNumber an INTEGER PRIMARY KEY if it is the key - that column becomes the rowid |
| Number: Double | REAL | float arithmetic applies from here on; comparisons with = get unreliable |
| Currency | NUMERIC or INTEGER cents | a REAL loses cent-level exactness on long sums - the one type worth overriding |
| Date/Time | TEXT ISO-8601 | keeps the time part that a DBF would have dropped, and still sorts |
| Yes/No | INTEGER 0/1 | normalise -1 into 1, otherwise every boolean filter must learn Access's -1 convention |
| Attachment | not mapped | several 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:
.mdband.accdb, tables, queries, linked tables - Target
- a SQLite 3
.dbfile - 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
REALdrifts: sums of thousands ofREALamounts stop agreeing to the cent - map Currency toNUMERICtext or integer cents. - Yes/No arrives as -1: Access stores -1 for true, so a filter written as
= 1finds 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 KEYand 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 searched | Meaning | Page |
|---|---|---|
| access to sqlite, convert access to sqlite, ms access to sqlite, how to change access database to sqlite | this page | you are on it |
| can microsoft access import sqlite3 free | Access has no native SQLite importer - it reads its own formats. This direction works, and the trial is free for 30 days either way | this page (Access is the source here, not the reader) |
| sqlite to access | the reverse direction | SQLite to Access |
| access to dbf, access to dbase | a DBF file as the target | Access to DBF |
| access to sql server, access to mysql | a server database as the target | Access to SQL Server |
| access to excel, access to csv | a spreadsheet or text file instead | Access to Excel |
| sqlite to csv, sqlite to json | exporting out of SQLite afterwards | SQLite 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
.dbwith 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
REALdecision 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
.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.TEXT as ISO-8601, which keeps the time part and still sorts correctly. SQLite has no date type of its own.INTEGER 0/1. Access stores -1 for true internally, so the values are normalised on the way in.NUMERIC or integer cents stays exact.INTEGER PRIMARY KEY where it applies.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

