.db
🗄️ DatabaseBinary

.db File — Database File

application/octet-stream

File Inspector

Drop any file to identify its extension and type — runs entirely in your browser

DB

Drop a .db file here or click to choose

Or drop any file to identify its extension

Expected MIME type:application/octet-stream

Quick Facts

Extension.db
Full NameDatabase File
MIME Typeapplication/octet-stream
CategoryDatabase
TypeBinary
Typical Size4 KB – 10 GB
First Appeared1970s

What Is a .db File?

DB is a generic file extension used by numerous database applications and formats to store structured data. The most common association is with SQLite databases, which frequently use .db as an alternative to .sqlite. However, .db files can also be Berkeley DB databases, Windows Thumbs.db thumbnail caches, Android application databases, or proprietary database formats from various applications. The ambiguity of the .db extension means that the actual format must be determined by examining the file header — SQLite databases start with the string "SQLite format 3", Berkeley DB files have their own magic numbers, and other formats have distinct signatures. In mobile development, .db files are commonly SQLite databases used by Android and iOS applications for local data storage, storing user preferences, cached content, and application state. The generic nature of the .db extension reflects the diversity of embedded database solutions available across platforms. When working with .db files, tools like the file command on Unix or hex editors can identify the actual format, after which appropriate database tools can be used to inspect and modify the data.

How to Open .db Files

DB Browser for SQLite
DBeaver
sqlite3 (CLI)
DataGrip
TablePlus

Related File Extensions

More Database File Extensions

Other database formats you might encounter

Browse File Extensions by Category

Explore our reference of 259 file extensions with details, programs, and related formats.