Anki Deck to JSON Converter
Convert your Anki flashcard decks to clean, structured JSON format. Free, fast, and completely private — all processing happens in your browser.
100% Private: All conversion happens locally in your browser. Your files never leave your device.
Drag & drop your Anki file
or click to select a file
Supported formats:
Note: Web Workers are not supported in your browser. Conversion will run on the main thread, which may cause brief UI freezes for large files.
Supported Anki Formats
Our converter supports all major Anki file formats, making it easy to convert any deck regardless of how it was exported:
- APKG files (.apkg) — The standard Anki package format containing deck data, note types, and metadata. This is the most common export format from Anki desktop and AnkiWeb.
- TSV files (.tsv) — Tab-separated values format for simple deck imports and exports. Useful for decks created from spreadsheets or text files.
- SQLite databases (.db, .sqlite, .anki2) — Direct Anki database files containing all deck information. Found in your Anki profile folder.
- COLPKG files (.colpkg) — Collection packages that include your entire Anki collection with multiple decks, settings, and configurations.
How to Convert Anki Decks to JSON
- Export your deck from Anki — Open Anki, select your deck, go to File → Export, and save as .apkg or .colpkg format.
- Upload the file — Drag and drop your file into the converter above, or click to select it from your computer.
- Wait for conversion — The converter processes your file locally. Large decks may take a few seconds.
- Download your JSON — Click the download button to save your converted deck as a JSON file.
Features
🔒 100% Private
All conversion happens locally in your browser. Your files never leave your device — no data is sent to any server.
⚡ Fast Conversion
Convert decks with thousands of cards in seconds. Web Workers ensure the UI stays responsive during processing.
📁 All Formats Supported
Supports APKG, TSV, SQLite, COLPKG, and ANKI2 files. Convert any Anki deck regardless of export format.
🎯 Smart Output
JSON output is optimized for each deck type. Basic, cloze, and custom note types are all handled intelligently.
🏷️ Preserves Structure
Deck hierarchy, tags, field names, and cloze deletions are all preserved in the JSON output.
💻 CLI Available
Command-line tool for developers. Perfect for batch processing, automation, and handling very large files.
Why Convert Anki Decks to JSON?
Converting Anki decks to JSON format opens up many possibilities for working with your flashcard data:
- Build custom applications — Integrate flashcard data into your own websites, apps, or learning tools.
- Data analysis — Analyze deck content programmatically using Python, JavaScript, or any language that reads JSON.
- Cross-platform compatibility — Use your Anki content in other flashcard systems or learning platforms.
- Portable backups — Create human-readable backups of your decks that can be easily inspected and modified.
- Content transformation — Process and transform deck content with scripts for bulk editing or format conversion.
- API integration — Feed flashcard data into APIs, databases, or machine learning models.
Command Line Tool
For developers and power users, we provide a command-line interface for batch processing and automation:
Basic Usage
npm run anki:convert -- --input deck.apkg --output deck.jsonWith Options
# Include statistics and suspended cards
npm run anki:convert -- -i deck.apkg -o deck.json --include-stats --include-suspended
# Show help
npm run anki:convert -- --helpCLI Options
-i, --input— Input file path (required)-o, --output— Output file path (required)--include-stats— Include card statistics in output--include-suspended— Include suspended cards-h, --help— Show help documentation
Frequently Asked Questions
Is my data safe when using the Anki Converter?
Yes! All conversion happens locally in your browser using Web Workers. Your files never leave your device, and no data is sent to any server. This ensures complete privacy and security for your flashcard content.
What happens to images and audio in my Anki deck?
Media files (images, audio, video) are not included in the JSON output. The converter extracts only text content, removing all media references while preserving the surrounding text. This keeps the output clean and focused on the textual data.
Can I convert large Anki decks?
Yes! The converter can handle decks with thousands of cards. For very large decks (100,000+ cards), we recommend using the command-line tool for better performance. The browser version supports files up to 500MB.
What JSON structure is produced?
The output is intelligently structured based on your deck type. Basic cards have front/back fields, cloze cards include all cloze variations, and custom note types preserve all field names and values. The JSON also includes metadata like card counts, tags, and deck hierarchy.
What Anki file formats are supported?
The converter supports all major Anki formats: APKG (Anki Package), COLPKG (Collection Package), ANKI2 (Anki Database), TSV (Tab-Separated Values), and SQLite database files (.db, .sqlite).
Can I use the converted JSON in other applications?
Absolutely! The JSON output is standard and can be used in any application that reads JSON. Common uses include building custom study apps, importing into other flashcard systems, data analysis, and creating backups in a portable format.
Is there a command-line version?
Yes! For developers and power users, we provide a CLI tool that can be run with npm. Use "npm run anki:convert -- --input deck.apkg --output deck.json" to convert files from the command line. This is ideal for batch processing and automation.
Does the converter preserve deck hierarchy?
Yes, the converter preserves nested deck structures. If your Anki collection has parent and child decks (using the :: separator), the JSON output will maintain this hierarchy with subdecks nested appropriately.
Related Japanese Learning Tools
Explore more free tools on KanaDojo to enhance your Japanese learning:
Japanese Translator
Translate between English and Japanese with Hiragana, Katakana, and Romaji output.
Kana Practice
Learn Hiragana and Katakana with interactive games and quizzes.
Kanji Study
Practice Kanji organized by JLPT levels from N5 to N1.
Vocabulary Builder
Build your Japanese vocabulary with thousands of words by JLPT level.
Verb Conjugator
Practice Japanese verb conjugations with all forms and tenses.
Learning Resources
Discover curated Japanese learning resources, apps, and textbooks.