A Chrome extension that exports Quizzes and Flashcards from Google 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 NotebookLM's aesthetic
- π UI Button Injection: Export button appears directly in NotebookLM
- Clone or download this repository
- Open Chrome and go to
chrome://extensions/ - Enable "Developer mode" (toggle in top right)
- Click "Load unpacked"
- Select the
NotebookLM2Ankifolder
Coming soon
- Navigate to a notebook in NotebookLM
- Generate a Quiz or Flashcards using NotebookLM'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 NotebookLM, 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
NotebookLM2Anki/
βββ 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 NotebookLM
- 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 NotebookLM 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