[{"data":1,"prerenderedAt":185},["ShallowReactive",2],{"extension:v3:en:db":3},{"resolvedFromAlias":4,"canonicalExt":5,"ext":5,"name":6,"category":7,"categoryName":8,"updatedAt":9,"indexable":10,"popularity":11,"summary":12,"howToOs":13,"quickAnswer":19,"answerIntro":20,"whatIs":21,"description":22,"furtherReading":23,"otherMeanings":39,"unverifiedMeaning":4,"openInstructions":45,"recommendedSoftware":59,"commonIssues":60,"securityNotes":79,"faq":83,"aliases":96,"mimeTypes":97,"relatedExtensions":99,"breadcrumbs":147,"categoryAnchor":157,"categoryFuturePath":158,"metaDescription":159,"availableHowToOs":160,"openOnDeviceLinks":161,"cannotOpenReasons":177,"cannotOpenFixes":178,"convertOptions":179,"securityAffiliateMessaging":180,"securityAffiliates":181,"repairAffiliates":182,"recoveryAffiliates":183,"editAffiliates":184},false,"db","SQLite 3 Database","data","Data","2026-06-12T08:37:20.433Z",true,85,".db is commonly used for SQLite 3 database files—single-file relational databases used by many apps. You can open them with SQLite tools and many database browsers.",[14,15,16,17,18],"windows","mac","linux","ios","android","To open .DB files on Windows, determine whether it is an SQLite database: if you have a SQLite-capable tool, try opening the file directly; if it fails, the .db extension may not be SQLite in this case.","To open a .db file, try opening it as an SQLite database using SQLite-compatible tools (for example, the sqlite3 command-line shell or a SQLite database browser). If it doesn’t open, the .db extension may be used by something else, but it is very commonly a SQLite 3 database.","A SQLite database is a self-contained database stored in a single file, often named with the .db extension. The SQLite file format is documented by SQLite.org, and a recognized Internet Media Type for SQLite 3 databases is application/vnd.sqlite3. Identification can also be done by file “magic” (file signature) rather than relying on the ambiguous .db extension.","“.db” is a very common filename extension used for SQLite 3 database files. SQLite is widely embedded into applications, so you often encounter .db files inside app data folders, backups, exports, or as part of software projects and datasets.",[24,27,30,33,36],{"title":25,"url":26},"SQLite, Version 3 (Library of Congress Format Description Document)","https://www.loc.gov/preservation/digital/formats/fdd/fdd000461.shtml",{"title":28,"url":29},"SQLite Database File Format (SQLite.org)","https://www.sqlite.org/fileformat.html",{"title":31,"url":32},"Media Types (IANA) — official registry","https://www.iana.org/assignments/media-types/",{"title":34,"url":35},"Shared MIME-info Database specification (freedesktop.org)","https://specifications.freedesktop.org/shared-mime-info-spec/latest-single/",{"title":37,"url":38},"SQLite (Wikipedia) — overview and common file extensions","https://en.wikipedia.org/wiki/SQLite",[40,41,42,43,44],"Mobile Device Database","X-Ray Engine Database","Skype Chat and Call History","DuckDB database","QQ Account Database",{"windows":46,"macos":49,"linux":52,"ios":55,"android":57},[47,48],"Determine whether it is an SQLite database: if you have a SQLite-capable tool, try opening the file directly; if it fails, the .db extension may not be SQLite in this case.","Open it with an SQLite tool such as the sqlite3 command-line program (from SQLite) or a SQLite database browser, then inspect tables and run queries.",[50,51],"Try opening the .db file with an SQLite-capable tool (for example, the sqlite3 command-line shell) rather than double-clicking in Finder.","If you need a graphical view, use a SQLite database browser and open the file to view tables and run SQL queries.",[53,54],"Use file identification rather than extension alone: many desktop environments use shared-mime-info rules based on filename and file “magic”.","Open it with SQLite tooling (e.g., the sqlite3 command-line shell) or a SQLite database browser to inspect schema and query data.",[56],".db files are not typically “opened” directly in iOS; transfer the file to a desktop and use SQLite tools (e.g., sqlite3 or a SQLite database browser) to view or export the contents.",[58],".db files are commonly used by apps internally; to inspect one, copy it to a desktop and open it with SQLite tools (e.g., sqlite3 or a SQLite database browser).",{},[61,67,73],{"title":62,"description":63,"steps":64},"The .db file won’t open (wrong format for the extension)","The .db extension is ambiguous; not every .db file is SQLite. Many systems and apps use .db as a generic “database” extension.",[65,66],"Verify it’s SQLite by opening it with an SQLite-aware tool; if the tool reports it is not a database or not SQLite, treat it as an unknown database format.","On Linux, rely on MIME/magic-based identification (shared-mime-info style) rather than extension alone to avoid misclassification.",{"title":68,"description":69,"steps":70},"“Database disk image is malformed” or similar corruption errors","SQLite tools may report corruption if the file was truncated, partially copied, or otherwise damaged.",[71,72],"Re-copy the file from the original source to avoid partial transfers.","If you control how it was created, ensure it is produced/closed cleanly before copying; then try opening again with SQLite tools.",{"title":74,"description":75,"steps":76},"The database is locked / can’t be edited","SQLite databases may be locked when another process/app is actively using the file, or if you are working from a read-only location.",[77,78],"Close the application that may be using the database and try again.","Copy the .db file to a writable folder you own, then open the copy with your SQLite tool.",[80,81,82],"A .db file itself is data, but opening untrusted SQLite databases still carries risk: database tools and libraries must parse complex binary structures, so use well-maintained SQLite tooling when handling files from unknown sources.","Because “.db” is ambiguous, do not assume it is SQLite (or safe) based on the extension; identify by file signature/magic where possible and only open with software appropriate to the detected type.","Be cautious with SQL content inside an untrusted database if you plan to run queries or export data into other systems; treat the data as untrusted input.",[84,87,90,93],{"question":85,"answer":86},"Is a .db file always an SQLite database?","No. “.db” is a common extension for SQLite databases, but it is also used generically for other database formats. If SQLite tools can’t read it, it may not be SQLite.",{"question":88,"answer":89},"What MIME type is associated with SQLite database files?","A recognized Internet Media Type for SQLite 3 databases is application/vnd.sqlite3.",{"question":91,"answer":92},"Why doesn’t double-clicking open my .db file?","Operating systems often don’t associate .db with a specific viewer, and the extension is ambiguous. Use an SQLite tool (like the sqlite3 shell or a SQLite database browser) and open the file from within that tool.",{"question":94,"answer":95},"How can I confirm it’s really SQLite without trusting the extension?","Use tools or desktop mechanisms that identify files by “magic” (signature) rather than only by extension; this approach is described in the shared-mime-info specification and is used by many Linux desktops.",[],[98],"application/vnd.sqlite3",[100,106,112,117,123,129,135,141],{"ext":101,"name":102,"category":7,"categoryName":8,"popularity":103,"summary":104,"howToOs":105},"xml","XML Document",95,".xml is a plain-text XML document used to store structured data with tags and attributes. You can open it in many text editors and web browsers; developers also use specialized XML editors for validation and tree views.",[14,15,16,17,18],{"ext":107,"name":108,"category":7,"categoryName":8,"popularity":109,"summary":110,"howToOs":111},"json","JSON data",88,".json files store structured data as plain text using the JSON (JavaScript Object Notation) format. They’re commonly used for web APIs, app configuration, and data exchange, and can be opened with any text editor or JSON-aware tools.",[14,15,16,17,18],{"ext":113,"name":114,"category":7,"categoryName":8,"popularity":11,"summary":115,"howToOs":116},"yaml","YAML File",".yaml is a YAML document: a human-readable data serialization format commonly used for configuration files and data exchange. You can open it with a text editor, or with editor support such as the YAML extension for Visual Studio Code.",[14,15,16,17,18],{"ext":118,"name":119,"category":7,"categoryName":8,"popularity":120,"summary":121,"howToOs":122},"vcf","vCard contact file (VCF)",80,".vcf is a vCard contact file used to share one or more contacts (names, phone numbers, emails, and other contact fields). It can be opened by contact apps and services that import vCards, such as Apple devices and Google Contacts.",[14,15,16,17,18],{"ext":124,"name":125,"category":7,"categoryName":8,"popularity":126,"summary":127,"howToOs":128},"sqlite3","SQLite 3 database",78,".sqlite3 is a SQLite version 3 database stored as a single cross-platform file. You can open it with SQLite’s sqlite3 command-line shell or any SQLite-capable database browser/library.",[14,15,16,17,18],{"ext":130,"name":131,"category":7,"categoryName":8,"popularity":132,"summary":133,"howToOs":134},"sqlite","SQLite 3 Database File",75,".sqlite is a SQLite 3 database stored as a single file. You open it with SQLite tools (for example, the SQLite command-line shell) or any application that supports SQLite.",[14,15,16,17,18],{"ext":136,"name":137,"category":7,"categoryName":8,"popularity":138,"summary":139,"howToOs":140},"jsonl","JSON Lines (newline-delimited JSON)",72,".jsonl is a JSON Lines file: plain text where each line is a complete JSON value, commonly used for logs and large datasets that are processed record-by-record.",[14,15,16,17,18],{"ext":142,"name":143,"category":7,"categoryName":8,"popularity":144,"summary":145,"howToOs":146},"parquet","Apache Parquet columnar data file",70,".parquet is an open, column-oriented file format for efficient storage and retrieval of tabular data. It’s commonly opened with data tools such as pandas (Python) and other analytics/ETL software that supports Apache Parquet.",[14,15,16,17,18],[148,151,154],{"label":149,"to":150},"Home","/",{"label":152,"to":153},"File Extension Index","/file-extension",{"label":155,"to":156},".DB","/file-extension/db","category-data","/category/data","Learn what .DB files are, how to open them on every platform, common fixes, and security best practices.",[14,15,16,17,18],[162,165,168,171,174],{"os":14,"label":163,"to":164},"Open .DB on Windows","/how-to/open-db-on-windows",{"os":15,"label":166,"to":167},"Open .DB on Mac","/how-to/open-db-on-mac",{"os":16,"label":169,"to":170},"Open .DB on Linux","/how-to/open-db-on-linux",{"os":17,"label":172,"to":173},"Open .DB on iOS","/how-to/open-db-on-ios",{"os":18,"label":175,"to":176},"Open .DB on Android","/how-to/open-db-on-android",[62,68,74],[65,66],[],"untrusted_source",[],[],[],[],1794323963319]