FileToFlashcards

AnkiWeb addon 509964653

Converts PDFs, text, Word, RTF, and images into editable Anki flashcards using Claude AI, then exports them as .apkg decks.
AI-generated summary; may contain mistakes.

card-creationaiimportexport

Open on AnkiWeb GitHub Ask about alternatives

AnkiWeb

Rating
0 (πŸ‘ 0 Β· πŸ‘Ž 0)
Updated
2026-03-05
Anki versions
2.1.2~
Description language
en

Maintenance

stale

  • Last update or commit was 210 days before the snapshot (2026-03-05).

GitHub

Repository
arespin/filetoanki Β· more by arespin
Stars
⭐ 0 · forks 0 · open issues 0
Last commit
2026-03-05
Languages
HTML, Python, Swift, Shell
Tests
0

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
2.1.1–2026-03-05
2.1.2+2026-03-05
History across monthly snapshots

Loading…

Similar addons

AnkiTutor

Exports selected Anki deck fields as AI-ready Markdown, HTML, PDF, or text, optionally adding base64 images, deduplication, prompt templates, and reference documents for personalized study.

aiexportduplicates

Rating 0 πŸ‘ 0 Β· πŸ‘Ž 0 Anki 2.1.3~ Updated 2026-07-01
PDF to notes

Converts PDF files into Anki notes by extracting each page's first line as prompt and inserting page images or HTML as answers, supporting normal and cloze notes.

card-creationimportdeck-managementshortcutscloze

Rating 9 πŸ‘ 5 Β· πŸ‘Ž 4 ⭐ 6 Anki 2.1.66~ Updated 2022-07-24

README

FileToAnki

Convert any document into Anki flashcards using AI. Upload a file, extract key facts with Claude, and export a ready-to-use Anki deck.

Features

  • Multi-format support: PDF, TXT, DOCX, RTF, and images (with OCR)
  • AI-powered extraction: Uses Claude to identify and extract the most important facts
  • Smart flashcard generation: Creates question/answer pairs optimized for learning
  • Native Anki export: Generates .apkg files compatible with Anki desktop and mobile
  • Edit before export: Review, edit, add, or delete cards before exporting

Two Ways to Use

1. Web App (Recommended for quick use)

A Flask-based web application that runs locally in your browser.

Web App Screenshot

Requirements

Installation

cd webapp

# Create virtual environment
python3 -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate

# Install dependencies
pip install -r requirements.txt

# (Optional) Install Tesseract for image OCR
# macOS:
brew install tesseract
# Ubuntu:
sudo apt-get install tesseract-ocr

Run

python app.py

Open http://localhost:8080 in your browser.


2. iOS App

A native SwiftUI app for iPhone and iPad.

Requirements

  • macOS with Xcode 15+
  • iOS 15+ device or simulator
  • Claude API key from Anthropic

Run

  1. Open FileToAnki.xcodeproj in Xcode
  2. Select your development team in Signing & Capabilities
  3. Build and run on a simulator or device
  4. Enter your Claude API key when prompted

How It Works

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚   Upload    β”‚ ──▢ β”‚   Parse     β”‚ ──▢ β”‚   Claude    β”‚ ──▢ β”‚   Export    β”‚
β”‚    File     β”‚     β”‚   Text      β”‚     β”‚   Extract   β”‚     β”‚   .apkg     β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜     β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜     β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜     β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
     PDF              Extract            AI identifies        SQLite DB
     DOCX             text from          key facts and        packaged as
     TXT              document           creates Q&A          Anki deck
     Images (OCR)                        pairs
  1. Upload: Select any supported document
  2. Parse: Text is extracted from the file (OCR for images/scanned PDFs)
  3. Extract: Claude analyzes the content and generates flashcards
  4. Review: Edit, add, or remove cards as needed
  5. Export: Download the .apkg file and import into Anki

Supported File Types

Format Extension Notes
PDF .pdf Text-based and scanned (via OCR)
Plain Text .txt UTF-8 encoded
Word .docx Microsoft Word documents
Rich Text .rtf Rich Text Format
Images .png, .jpg, .jpeg, .gif, .bmp, .tiff Requires Tesseract OCR

API Key

This project requires a Claude API key from Anthropic:

  1. Go to console.anthropic.com
  2. Create an account or sign in
  3. Generate an API key
  4. Enter the key in the app when prompted

Privacy Note: Your API key is stored locally in your browser's localStorage. When you extract flashcards, your key is sent securely over HTTPS to our server, which then forwards it to Anthropic's API. We do not store, log, or retain your API key on our servers.

Project Structure

FileToAnki/
β”œβ”€β”€ FileToAnki.xcodeproj/    # Xcode project
β”œβ”€β”€ FileToAnki/              # iOS app source
β”‚   β”œβ”€β”€ Models/              # Data models
β”‚   β”œβ”€β”€ Views/               # SwiftUI views
β”‚   β”œβ”€β”€ ViewModels/          # Business logic
β”‚   └── Services/            # File parsing, API, export
β”œβ”€β”€ webapp/                  # Web app source
β”‚   β”œβ”€β”€ app.py              # Flask server
β”‚   β”œβ”€β”€ templates/          # HTML templates
β”‚   β”œβ”€β”€ requirements.txt    # Python dependencies
β”‚   └── run.sh              # Launch script
└── README.md

License

MIT License - feel free to use, modify, and distribute.

Acknowledgments

  • Anthropic for the Claude API
  • Anki for the spaced repetition platform