How to Recover a Lost Zotero Library: Every Fix That Works
A lost Zotero library is almost always still on your computer. Zotero keeps your references in a data folder that survives reinstalls, updates, and crashes, and it keeps automatic backups of the database inside that folder. Most "my library is gone" cases are Zotero looking at the wrong folder, and the fix takes five minutes. This guide walks through every recovery route in order of likelihood: finding the real data directory, restoring from Zotero's own backups, pulling the library down from sync, rescuing deleted items from the trash, repairing a corrupted database, and, as a last resort, extracting your references out of the Word documents you cited them in.
One thing before you start. Zotero refreshes its automatic database backup on a rolling basis, so the longer you keep using a broken library, the more likely the good backup gets replaced by a backup of the empty one. Close Zotero, and do the reading below before you click anything else.
Find out what actually happened
"Lost" covers several different failures, and each has its own fix. Match your situation first:
| What you see | Likely cause | Start with |
|---|---|---|
| Zotero opens with an empty library after an update or reinstall | Zotero is pointed at a new, empty data directory | Check the data directory |
| Specific items vanished; the rest of the library is fine | Deleted, possibly by an accidental keypress or a sync from another device | The trash |
| Zotero shows a database error on startup | Corrupted zotero.sqlite, often from a cloud-synced folder | The repair tool |
| The computer is dead, stolen, or wiped | Local data unreachable | Sync restore or your own backups |
| Library vanished years ago with an old Firefox | Data stranded in a Firefox profile folder | The Firefox-era locations |
The single most useful fact for everything below: your library does not live inside the Zotero application. It lives in a data directory in your home folder, /Users/ on a Mac, C:\Users\ on Windows, ~/Zotero on Linux. Inside it, zotero.sqlite holds every item, note, and tag, and the storage folder holds your PDFs in subfolders with eight-character names. Reinstalling the application leaves that folder where it is.
Check where Zotero is looking
This is the most common case. After an update, a migration, or a fresh install, Zotero can end up pointed at a brand-new, empty data directory while your real one sits untouched a folder away. The Zotero forums fill with threads titled "Zotero opened up empty!" and "My library is suddenly empty!", and most of them end here.
- In Zotero, open Settings, go to the Advanced pane, and click Show Data Directory. This opens the folder Zotero is currently using.
- Look at
zotero.sqlitein that folder. Size is the diagnostic: an empty Zotero database is only about 1 to 5 MB. A database with a real library in it is usually far larger. Check the file's modification date too; a database created today did not hold your five years of references. - If the open folder looks empty or new, search your whole computer for other files named
zotero.sqlite. Search hidden folders as well. Each hit is a candidate data directory; the one with a large, olderzotero.sqliteand astoragefolder full of subfolders is yours. - Point Zotero at it: in Settings under Advanced, set the Data Directory Location to the folder you found (choose the folder that contains
zotero.sqlite, and keep Zotero closed while you move or copy anything). Restart Zotero.
If your library disappeared back in the Firefox-plugin era of Zotero, the data may be stranded inside a Firefox profile. Zotero's own guidance for that migration says to look for a zotero subdirectory inside your Firefox profile directory, and, if you ever used Firefox's "Refresh Firefox" feature, inside an "Old Firefox Data" folder on your Desktop. Confirm the same way: a sizable zotero.sqlite plus a populated storage folder.
Restore from Zotero's automatic backups
Zotero backs up its own database without being asked. In the data directory, next to zotero.sqlite, you will find zotero.sqlite.bak, which Zotero updates periodically whenever the existing backup is more than 12 hours old. After version updates you may also see numbered backups like zotero.sqlite.1.bak. If your database is damaged or was somehow emptied, one of these files probably still holds the intact library.
The restore is a rename, straight from Zotero's documentation:
- Close Zotero completely. The documentation is blunt about this: moving or copying these files while Zotero runs can damage your data.
- In the data directory, rename
zotero.sqlitetozotero.sqlite.old. Keep it; it costs nothing and preserves the option to go back. - Pick the backup whose timestamp predates the disaster, and rename it to
zotero.sqlite. - Start Zotero.
Two caveats. The rolling backup can be up to 12 hours behind, so anything you added in the last few hours may be missing from it, and if you kept using Zotero for a day after the library broke, the rolling backup may already be a copy of the broken state. That second risk is exactly why the numbered update backups and any copies of the data directory you made yourself are worth checking before you give up on this route.
If you back up your whole computer with Time Machine, File History, or similar, you have more candidates: restore an older copy of the entire data directory, then swap it in. Note the current directory's location, close Zotero, rename the live folder to Zotero-Old, and copy the restored folder into the original spot under the original name.
Pull your library back down with sync
If you ever set up a Zotero account and turned syncing on, your items live on Zotero's servers as well. Data syncing is free and unlimited, and it covers everything except attachment files: items, notes, links, tags. Attachments sync only within your storage quota, which is 300 MB on the free plan.
First, check what the server actually has. Log in at zotero.org and open your web library. If your references are there, recovery on a new or wiped machine is exactly what sync was built for. Zotero's documentation puts it plainly: set up your account on the new computer and "Zotero will pull down your entire library from the server."
- Install Zotero and open Settings, then the Sync pane.
- Enter your account credentials in the Data Syncing section and click Sync.
- Wait. A large library takes a while on the first pull, and PDFs beyond your storage quota will need to come from a local backup of the
storagefolder instead.
The Sync pane also has a Reset section with options like Replace Online Library. Leave those alone during a recovery. They exist for rare, specific situations, and the documentation warns that resetting when you do not need to causes new problems. If the online library looks right and the local one looks wrong, a plain sync from a clean start does the job.
One honest limit: sync restores what you synced. If syncing was never turned on, or you turned it off two years ago, the server has at most a two-year-old snapshot. Check the web library's contents before you count on this route.
Rescue deleted items from the trash
If the library is intact but particular items are gone, the deletion route is more likely than the disaster route. Deleted items go to Zotero's Trash, visible in the left-hand collections pane. Select what you want back and use Restore to Library, which returns each item to where it was.
The catch is the clock. By default, Zotero automatically removes items from the trash 30 days after deletion. That default is configurable in the General pane of the settings ("Automatically remove items in the trash deleted more than … days ago"), so if you are prone to accidental deletes, raising the number is cheap insurance. Your online library at zotero.org has its own trash with the same restore option, which helps when a deletion happened on another synced device and you catch it from the web side.
Deletions sync like any other change. If an item was deleted on your laptop last week, restoring it from the desktop's trash works; waiting until day 31 does not, so check the trash early in any recovery.
If the database is corrupted
A startup error naming the database, rather than an empty window, means zotero.sqlite itself is damaged. Zotero is specific about the usual cause: keeping the data directory in a cloud storage folder such as Dropbox, Google Drive, or OneDrive, which its documentation calls "extremely likely to corrupt your database or break Zotero in unexpected ways." Cloud sync tools rewrite the database file behind Zotero's back, and a database cannot survive two writers. Network drives produce the same failure.
Your options, best first:
- If you sync and the online library is complete: skip repair entirely. Close Zotero, back up the data directory, delete
zotero.sqlite, reopen Zotero, and let it rebuild the database from the server. - If you have a healthy
.bakor an older copy: restore it using the rename steps above. - Otherwise: Zotero provides a database repair tool that attempts to fix a corrupted
zotero.sqliteyou upload. Close Zotero and copy the entire data directory somewhere safe before trying it, and know that it cannot fix every corruption.
After any of these, move the data directory out of the cloud-synced folder and back to the default location, and let Zotero's own sync handle multi-device access. Zotero does not support the cloud-folder setup and will not help debug what it breaks.
Recover references from your Word documents
Here is the route the standard advice misses, and for a worst case it is remarkable: if you cited your Zotero library in Word or LibreOffice documents, the documents themselves contain your references. The Zotero word processor plugin embeds each cited item's full metadata in the document's citation fields, and a free tool called Reference Extractor reads it back out.
Upload a .docx or .odt that contains Zotero citations, and it extracts the cited items, de-duplicates them, and exports them as CSL JSON, BibTeX, or RIS, any of which imports straight into a fresh Zotero library. A dissertation chapter with 150 citations becomes 150 recovered items with authors, titles, years, journals, and DOIs intact.
Set expectations before you lean on it. You get back what you cited, so uncited items in the old library stay lost, and you get metadata without the attached PDFs. The extracted items also arrive as new records, which means the citations in your old documents will still point at the vanished originals; to keep editing an old document with a rebuilt library, you have to reinsert each citation from the newly imported items. For a library that existed nowhere else, those are happy problems.
If nothing worked: rebuild without retyping
Sometimes the honest answer is that the data is gone: no backup, no sync, no documents with embedded citations. The rebuild is still faster than the first build was.
- Drag your PDFs into a fresh library if you still have them anywhere (a downloads folder, an email trail, a USB stick). Zotero retrieves metadata for most published PDFs automatically, so a folder of papers becomes a structured library with little typing.
- Your browser history and any Google Scholar library or alerts you kept are a map of what you had.
- The reference lists of your own drafts name every source that mattered. Our guide to fixing citation errors includes a pass for matching a reference list against a manuscript, which doubles as a rebuild checklist.
- For sources you can only half remember, work through the identification steps in how to cite a source you can't find before giving up on any single item.
Make this a one-time event
Every recovery route above works better when it was set up before the failure. The full kit costs nothing:
- Turn on data syncing. Free, unlimited for metadata, and it turns "my laptop died" from a catastrophe into an inconvenience. It is a live mirror rather than a true backup (deletions propagate), so pair it with the next item.
- Copy the data directory on a schedule. Close Zotero, copy the whole folder to an external drive or into your regular computer backup, done. Zotero's documentation recommends backing up the entire directory rather than exports, because the directory preserves everything, including attachments and collections.
- Keep the data directory out of Dropbox, Google Drive, and OneDrive. Back up copies of it there all you like; the live directory stays in the default location.
- Raise the trash retention past 30 days in the General settings if you delete aggressively.
- Check the backup occasionally. A
zotero.sqliteyou have never test-opened is a hope, and the size check from earlier (an empty database is 1 to 5 MB) takes ten seconds.
Quick-reference: symptoms and fixes
| Symptom | First move | Backup plan |
|---|---|---|
| Empty library after update | Settings, Advanced, Show Data Directory; verify zotero.sqlite size | Search the disk for other zotero.sqlite files |
| Items missing, library fine | Trash, Restore to Library (within 30 days) | Web library trash at zotero.org |
| Database error on startup | Restore zotero.sqlite.bak by renaming | Repair tool at zotero.org/utils/dbfix, or delete and resync if fully synced |
| New or wiped computer | Sync pane, enter credentials, Sync | Restore a copied data directory |
| Library lost with old Firefox | Firefox profile's zotero subfolder; "Old Firefox Data" on Desktop | Search for zotero.sqlite |
| Everything truly gone | Reference Extractor on your Word documents | Re-import PDFs; Zotero retrieves their metadata |
Frequently Asked Questions
Related Guides
Zotero Full-Text Search: Find Any Word Inside Your PDFs
Why Zotero full-text search misses words in your PDFs, how the Everything mode and Attachment Content differ, and the fixes for scanned files and long books.
How to Use Zotero: Setup, Library, and Citations Guide
Learn how to use Zotero end to end: the browser connector, collections and tags, citing in Word and Google Docs, sync and storage, and useful plugins.
How to Cite an Interview in APA 7
APA 7 splits interviews three ways, and only one kind gets a reference entry. Worked examples for podcasts, archives, personal interviews, and participants.
Try AllCitations for Free
No account required. Generate your first citation in seconds.
Start Citing for Free