Make flashcards and a practice quiz from any study material or PDF
Upload a handout, slides or notes and get a checked card list plus a one-page study app with flip cards, a 10-question quiz and a retry pile for the cards you missed.
- Level Beginner
- Time 20-30 minutes
- Works with
- Claude.ai
- Claude Desktop
- Claude Code
On this page13 sections
You have a 40-page handout, an exam on Friday and no flashcards. Making cards by hand takes longer than studying them. This guide has Claude do it in two passes: first a card list you can check against the source, then a small study app built from that list. The app is an artifact, a page Claude builds beside your chat that you can open again from the sidebar and share with your study group.
What you’ll have at the end
- A table of 20 cards. Each card has a question, an answer of 25 words or fewer, the PDF page it came from and a topic.
- A study page with two tabs:
- Flashcards: flip a card, then press Again or Got it. Cards you miss come back later in the same round.
- Quiz: 10 multiple-choice questions with believable wrong options, the correct answer and its page after each one, and a final score.
- A Practice missed cards button that sends the quiz questions you got wrong back to Flashcards.
- All cards stored in one list at the top of the page’s code, so fixing a card means editing one line.
What you need, and what it costs
| Item | Details (per Anthropic’s help center) |
|---|---|
| Claude plan | Artifacts work on Free, Pro, Max, Team and Enterprise. |
| A setting | Cloud code execution and file creation must be on in Settings > Capabilities (Free, Pro, Max). On Team and Enterprise it’s under Organization settings > Capabilities. |
| Your material | PDF, DOCX, TXT, EPUB, HTML and more. In a chat, each file can be up to 500 MB, with up to 20 files per chat. |
| Sharing (optional) | Sharing a link to the page needs Pro, Max, Team or Enterprise. Whoever opens it needs a Claude account. |
Cost: nothing beyond your plan’s normal usage.
PDFs and pictures. Claude reads both the text and the visuals (diagrams, charts, images) in PDFs of up to 100 pages. From 101 to 1,000 pages it reads the text only. If your diagrams matter, upload the chapter you’re studying, not the whole textbook.
Before you start
- Use material you’re allowed to use. Your own notes and the handouts you were given for your course are the usual case. Check your school’s rules on AI tools.
- One topic per page. One chapter or lecture per study page works better than the whole term.
- Strip what doesn’t belong. Remove names, grades or anything personal from notes before you upload them.
Step 1: Upload the material
- Open claude.ai or the Claude desktop app and start a new chat.
- Click + in the lower left of the message box, then Add files or photos, and choose your PDF. You can also drag the file into the chat.
- Photos of handwritten notes work too (JPEG, PNG, GIF or WebP). Take them in good light. Anthropic suggests images of at least 1000 x 1000 pixels.
Step 2: Paste the prompt
This is the exact prompt we tested (see step 4). For a chat, make two small changes first: replace the first line with Read the attached PDF. Do two things., and replace Save it as study.html. with Make it an artifact.
Read photosynthesis-handout.pdf. Do two things.
PART 1 - card list. Save it as cards.md.
Make 20 flashcards that cover the most testable facts in this material. For each card give: front (a question or a term), back (the answer, 25 words or fewer), page (the PDF page it came from) and topic. Use only facts that appear in the material. Never add facts from outside it. If something in the material is unclear or looks wrong, still make the card but start the back with [CHECK]. Show the cards as a table, then list anything you left out (admin notes, dates, things that aren't testable).
PART 2 - study app. Save it as study.html.
Build an interactive study page from the card list, as one self-contained HTML file with no external scripts, fonts or images.
- Two tabs: Flashcards and Quiz.
- Flashcards: show the front; click the card or press Space to flip it. Buttons "Again" and "Got it". Cards marked Again come back later in the same round. A shuffle button and a counter ("12 of 20 left").
- Quiz: 10 multiple-choice questions made from the cards, 4 options each. Take the wrong options from other cards' answers on the same topic so they look plausible. After each answer, show whether it was right, the correct answer and its page number.
- At the end of the quiz: the score, a list of the cards I missed, and a "Practice missed cards" button that opens Flashcards with only those cards.
- Keep all cards in one JSON array at the top of the code, so I can fix a card by editing one line.
- Large text, works on a phone, usable with the keyboard.
- Don't call Claude from the page and don't save any data.
Why it’s written this way:
- “Use only facts that appear in the material.” Your exam tests your course, not the internet.
- Page numbers on every card. When a card looks wrong, you can open the page and check it in seconds. These are the PDF’s page numbers as your PDF viewer shows them, which may differ from the numbers printed on the pages.
[CHECK]. If the source is blurry or contradicts itself, you see it instead of learning a guess.- “No external scripts” and “Don’t call Claude”. The page works on its own and loads fast. Anthropic’s sharing rules also block link sharing for artifacts that use Claude, so this keeps the link-sharing option open.
Step 3: Check the cards before you study them
Read the table before you open the app. It’s the most important step.
- Pick five cards at random and find each one on its page.
- Look at the left out list. If something you need is there, ask Claude to add a card for it.
- Fix anything marked
[CHECK].
If a card is wrong, ask Claude to correct that card number and rebuild the page. Or open the page’s code, find the card list at the top and edit the line yourself.
Step 4: What our test produced
We made a three-page sample handout on photosynthesis, with a lab reminder and a teacher’s exam tip mixed in. Then we ran the prompt above once in Claude Code with claude -p.
- Cards: all 20 matched the handout, each with the right page. It split them into three topics, one per page of the handout.
- Left out: the lab reminder, the page headers and a passing mention of the chloroplast’s outer and inner membranes. It turned the exam tip (“Photosystem II comes first even though it was discovered second”) into a card.
- No
[CHECK]flags: our handout had nothing unclear. With a real scan, expect a few. - The page: we clicked through it in a browser at phone size. Flipping, Again (the card went to the back of the pile and came round again; only Got it lowered the counter, to 19 of 20), the 10-question quiz, the score and Practice missed cards all worked, with no errors.
We did not run this in a claude.ai chat, because that needs a live account. There the result appears as an artifact beside the chat instead of a file, and its look will differ from run to run.
Step 5: Study with it
- Open it again later. Everything you make is saved to the Artifacts tab in your Claude sidebar.
- On your phone. In the Claude app for iPhone or Android, open the Artifacts tab to view your artifacts.
- Make a new quiz. In our test page, each quiz drew 10 random cards from the 20, so a new quiz mixed in questions we hadn’t seen yet.
- If something breaks, look for Try fixing with Claude next to the error. It copies the error into a new message for Claude to fix.
Step 6 (optional): Share it with your study group
- Open the artifact and click Share.
- Pro and Max: under Who has access, choose Anyone with the link. Or type a classmate’s email address to invite just them (in beta).
- Team and Enterprise: choose who in your organization can open it. Anyone with the link works only if an Owner has turned on external sharing or allowed that artifact. If it’s grayed out, ask an Owner.
- Copy the link and send it.
Everyone who opens it needs a Claude account. Artifacts start private to you, and the iPhone and Android apps can’t change sharing settings, so do this on the web or in the desktop app. To stop sharing, open Share again and choose Only you (Pro and Max) or Only people invited (Team and Enterprise).
The Claude Code route
Have a folder of lecture PDFs? In Claude Code, cd into the folder, run claude and paste the prompt as it is, with your file name. You get cards.md and study.html; double-click study.html to open it in your browser. On Pro, Max, Team or Enterprise, signed in with /login, you can ask Claude Code to publish the page as an artifact, a private page on claude.ai that you can share.
What can go wrong
- Cards say things the handout doesn’t. Keep the “use only facts” line and check five cards against their pages every time.
- Quiz is too easy. If the wrong options are obviously wrong, ask for wrong options that are true statements from other cards on the same topic.
- Diagrams were ignored. The PDF is over 100 pages, so Claude read the text only. Upload just the chapter.
- Scanned pages come out garbled. Expect
[CHECK]cards. Retake blurry photos, or type the key lines into the chat. - “Anyone with the link” is grayed out. On Team and Enterprise, an Owner controls external sharing. On Free, link sharing isn’t available.
- Progress is gone when you reopen it. That’s by design: the prompt says “don’t save any data”. See below if you want it to remember.
Make it yours
- Remember progress. On Pro, Max, Team and Enterprise, artifacts can store data between sessions (text only, up to 20 MB per artifact). Personal storage keeps each person’s data private; shared storage shows the same data to everyone, so choose personal for scores. Ask Claude to remove “don’t save any data” and use personal storage for which cards you’ve marked Got it.
- Open-answer grading. Artifacts can call Claude, so the page could grade a typed answer against the card and explain what’s missing. People using it sign in with their own Claude account, and it counts against their plan’s limits, not yours. The trade-off: an artifact that uses Claude can’t be shared with “Anyone with the link”. New artifacts ask your permission the first time they use Claude.
- More cards. Change “20 flashcards” to 40 and “10 multiple-choice questions” to 20 for a bigger chapter. Keep the “25 words or fewer” rule: short answers are easier to remember.
- Other subjects. For languages, ask for “front: word in English, back: word in Spanish plus one example sentence from the material”.
- A bigger app. For tabs per chapter or a progress chart, the web artifacts builder skill helps Claude build a larger React app and bundle it into one HTML file.
Next steps
- Turn the prompt you keep retyping into a one-click skill, so “make me flashcards” always uses your format.
- Turn bank statements or sales spreadsheets into a shareable dashboard for another artifact you can rebuild from new files.
Sources
- support.claude.com/en/articles/17153992-what-are-artifacts-and-how-do-i-use-them (opens in a new tab)
- support.claude.com/en/articles/9547008-share-artifacts (opens in a new tab)
- support.claude.com/en/articles/8241126-upload-files-to-claude (opens in a new tab)
- code.claude.com/docs/en/artifacts (opens in a new tab)
Related guides
Turn bank statements or sales spreadsheets into a shareable dashboard
Export a CSV, have Claude clean and categorize it, and get a one-file HTML dashboard with charts, a month filter and a red-flags box that you can rebuild in seconds when new data arrives.
Intermediate1-2 hours the first time, under 5 minutes per refresh
Best MCP servers for non-developers: what to connect first
The best MCP servers and connectors for people who don't code: email, calendar, files, notes, meetings, design and automation, with plans, setup and safety.
Beginner10 minutes to pick, about 5 minutes per connector to set up
Claude Design vs Figma MCP: which to use for UI work
Claude Design drafts screens for you; Figma MCP lets Claude read and edit your Figma files. Compare plans, limits and handoff, then use both in one workflow.
Beginner10 minutes to decide, about 30 minutes for the hands-on workflow