Notebook2Anki is a Chrome extension that exports Quizzes and Flashcards from Gemini Notebook (formerly NotebookLM) directly to Anki.
- 📚 Quiz Support: Export multiple-choice questions with hints, options, and rationales
- 🗂️ Flashcard Support: Export simple front/back flashcards
- ⚡ AnkiConnect Integration: Send cards directly to Anki (requires Anki open)
- 📦 APKG Export: Download as
.apkgfile (works offline, import anywhere) - 📄 CSV Export: Export as CSV for manual import or other tools
- 🔢 LaTeX/Math Support: Cards render mathematical notation via MathJax
- 🎨 Beautiful Dark Theme: Matching Gemini Notebook's aesthetic
- 🔘 UI Button Injection: Export button appears directly in Gemini Notebook
- Clone or download this repository
- Open Chrome and go to
chrome://extensions/ - Enable "Developer mode" (toggle in top right)
- Click "Load unpacked"
- Select the
Notebook2Ankifolder
Coming soon
- Navigate to a notebook in Gemini Notebook
- Generate a Quiz or Flashcards using Gemini Notebook's features
- Click the extension icon in Chrome toolbar
- Choose your export method:
- Send to Anki: Requires Anki desktop open with AnkiConnect
- Download .apkg: Creates a portable Anki package file
- Export CSV: Creates CSV files for quizzes and/or flashcards
- When viewing quiz/flashcard content in Gemini Notebook, an "Anki Export" button appears
- Click the button to send directly to Anki via AnkiConnect
- Anki Desktop installed and running
- AnkiConnect add-on installed
- No additional requirements (works in browser)
The extension creates two note types in Anki:
15 fields for multiple-choice questions:
- Question, Hint, ArchDiagram (for images)
- Option1-4, Flag1-4 (True/False), Rationale1-4
2 fields for simple flashcards:
- Front, Back
Both include dark theme styling and MathJax support.
- Creates deck under
NotebookLM::parent deck - Creates note types automatically if missing
- Best for direct integration
- Portable Anki package
- Import on any device (desktop, mobile, AnkiWeb)
- No Anki instance required during export
- Universal format
- Can import into Anki, Quizlet, or other tools
- Separate files for quizzes and flashcards
Notebook2Anki/
├── manifest.json # Chrome extension manifest
├── src/
│ ├── background/ # Service worker for AnkiConnect
│ ├── content/ # Content scripts for UI injection
│ ├── popup/ # Extension popup UI
│ ├── lib/ # Shared utilities
│ └── templates/ # Anki card templates
├── vendor/ # Third-party libraries
│ ├── sql.js # SQLite in browser
│ ├── jszip.min.js # ZIP creation
│ ├── FileSaver.min.js # File downloads
│ └── genanki.js # Anki deck generation
└── icons/ # Extension icons
No build step required. Load the extension directly in developer mode.
- Load extension in Chrome
- Navigate to Gemini Notebook
- Create quizzes/flashcards
- Test each export method
This project integrates functionality from:
- notebooklm-anki-extension: Quiz export with AnkiConnect
- flashcardConverter: Flashcard extraction and APKG generation
- sql.js: SQLite compiled to WebAssembly
- JSZip: ZIP file creation
- FileSaver.js: File downloads
- genanki-js: Anki deck generation
MIT License
Contributions welcome! Please open an issue or pull request.
- Make sure Anki Desktop is open
- Verify AnkiConnect is installed: Tools → Add-ons → Check for "AnkiConnect"
- AnkiConnect uses port 8765 by default
- The note type might have field mismatches
- Try deleting and recreating the note type in Anki
- Or use APKG export which creates fresh note types
- Make sure you've generated a Quiz or Flashcards in Gemini Notebook first
- Refresh the page and try again
- Some notebooks may have different data structures
- Make sure MathJax is configured in Anki
- Cards use
\(...\)for inline math and\[...\]for display math