How to shuffle Word exam questions and answers into versions for free

· Team Pencilius · 8 min read

Short answer: The easiest free way to shuffle a Word exam is Pencilius. Upload the .docx, check the questions it reads, and it makes your versions with the questions shuffled, the answer choices shuffled, or both, plus a matching answer key PDF for every version. Microsoft Word can’t do this by itself: its Sort command only orders A to Z, by number or by date.

Pencilius is built for paper exams. Besides shuffling, it keeps your questions in a question bank you reuse every term, prints each version with its own answer key, an answers table and a question order table, plans the printing for each class section, and checks the exam for missing or doubtful answers before you finalize it.

Start free with up to 30 questions, 3 exams and 5 versions per exam, or try the demo with a short exam of your own, no account needed.

How to shuffle a Word exam with Pencilius

  1. Import your Word file. Create an exam, click Import and upload the .docx (a PDF works too). An AI model reads the document and pulls out each multiple-choice question with its choices, and tables and pictures come across with their questions. Correct answers come from what you marked: bold, underline or highlight on the right choice, or an answer key at the end of the document. Point values printed in the document, such as “[2 pts]” or “2 points each”, are read too.
  2. Review before anything is saved. Every question is shown with where it sat in your document. Most are Ready. Anything that needs attention is listed under To look at, with the reason in plain words and a one-click fix, for example when no answer is marked or an answer key disagrees with the marked choice. Anything you don’t want can be Left out. Nothing is added until you choose Add to question bank.
  3. Shuffle each version. Add the versions you need. For each one, turn on Shuffle questions, Shuffle answers or both, then press Shuffle. Choices such as “All of the above” stay in place automatically, a question whose choices refer to each other by letter keeps its order, and you can lock any other choice by hand. Leave one version unshuffled if you want a copy in your original order. The preview shows each version as it will print.
  4. Finalize and print. Click Distribute, look over the checks, then Finalize distribution. You get an exam PDF and an answer key PDF for each version, ready to print.

What else Pencilius gives you

  • A question bank you keep. Imported questions go into your question bank, where you tag them, find them and pull them into next term’s exams instead of copying between Word files.
  • Keys that match the paper. Each version’s answer key is made from the same questions that version prints, so an edit you make before finalizing reaches every version and every key together.
  • Tables for the whole set of versions. The answers table puts every version’s key on one sheet for grading. The question order table shows where each original question landed in each version. Both download as PDF or CSV.
  • A print plan for your sections. Set the copies for each class section and download one packet per section, collated in seating order, or the individual files with a print list.
  • Control over how the paper looks. Set the title, a second line such as course and term, the name line, student instructions, header and footer text, page numbers, point values, font (Arial, Georgia or Times New Roman), font size, spacing between questions and page margins. The PDF matches the preview.
  • Equations, pictures and tables. Equations from Word’s equation editor come across typeset. Add new ones with the equation editor or in LaTeX, and add pictures and tables to any question.
  • Shared passages handled. When several questions share a reading passage, the passage prints once with the first of them.
  • Checks before you finalize. Pencilius lists questions without a correct answer, questions with more than one correct answer that don’t tell students to select all that apply, choices that shouldn’t move when shuffled, and questions sharing a passage that shuffling would separate.
  • A fixed record of what you handed out. A finalized distribution keeps an exact copy of every version and key, so later edits to the exam don’t change papers you have already printed.

What Pencilius reads from Word and PDF files

  • Word (.docx): questions, choices and marked answers, with their tables, pictures and equations.
  • Ordinary PDFs (ones where you can select the text): questions with their tables and pictures.
  • Scanned PDFs: questions with their text and tables.
  • Question types: multiple choice, with true/false as a two-option question.

Pencilius compared with the Word-only methods

Method Shuffles questions Shuffles answer choices Answer key per version Good for Limits
Pencilius Yes, per version Yes, with “All of the above” kept put Made from the same questions, PDF Any multiple-choice exam you will give more than once —
Cut and paste by hand Yes, slowly Yes, slowly You write it 2 versions, under 20 questions Every later edit has to be made in every copy
Table plus random-number sort Yes No (not practical) You write it One reorder of a long test Options split from stems; figures and page breaks drift
VBA macro Depends on the macro Depends on the macro Rarely One fixed format you control Questions with a different number of options; macros blocked
Spreadsheet plus mail merge Yes Only with extra formulas Possible, with formulas People comfortable in Excel Formatting, equations and anything that is not plain text

If you’d rather do it in Word itself

These methods need no new software. Each one leaves the answer keys to you.

Method 1: Shuffle by hand

Save a copy of the exam for each version, cut and paste questions into a new order, then reorder the options inside each question. Use Word’s automatic numbering (Home, then Numbering) so question numbers and option letters follow the move, and bold or highlight the correct option in the master copy before you start.

Limits: every fix after the versions exist has to be repeated in every copy. A typo found the night before the exam means editing four files and checking four keys.

Method 2: Sort table rows by random numbers

  1. Select the questions and choose Insert, then Table, then Convert Text to Table.
  2. Merge each question and its options into one cell, so a stem never separates from its choices.
  3. Add a column on the left and fill it with random numbers (type =RAND() in Excel, copy, and paste as values).
  4. On the table’s Layout tab choose Sort, and sort by that column.
  5. Delete the number column, hide the borders, and save as Version B. Repeat for each version.

Limits: step 2 is slow on a long exam, pictures and equations inside cells often move or resize, answer choices are not shuffled, and you write every key by hand.

Method 3: Use a Word macro

Microsoft support forums and Office community sites have VBA macros that shuffle questions or the answers under each question. Read one before running it: many expect every question to be exactly one paragraph followed by exactly four answer paragraphs, and a five-option question shifts everything after it. Macros run only in desktop Word, recent Office versions block macros in downloaded files, many school IT policies turn them off, and few macros write an answer key. Always run one on a copy.

Method 4: Build the test from a spreadsheet with mail merge

If your questions live in Excel with one row per question (stem, options, correct letter), add a =RAND() column, sort by it, and use Word’s mail merge (Mailings, then Start Mail Merge, then Directory) to pour the rows into a test layout. The correct-letter column travels with each row, so the key for question order comes along.

Limits: shuffling the options inside each row needs extra formulas to track where the correct answer lands, and formatting, symbols and equations rarely survive the trip through Excel.

Which approach fits you

  • You teach the same course to several sections or class periods. Use Pencilius: one set of questions, versions for each period, and a print plan that sorts the copies by section.
  • You coordinate a common exam with other instructors. Collect the questions in one Pencilius exam, lock what must stay put, and finalize one set of versions and keys for every section, rather than passing separate Word files around.
  • You have years of exams in Word. Import the .docx files you already have, review them, and keep the questions in your question bank for next term.
  • You need two versions of a short quiz, once. Shuffling by hand in Word is fine.

Tips that apply to every method

  • Write options that don’t refer to positions. “Both mitosis and meiosis” survives a shuffle; “Both A and C” and “Both of the above” don’t.
  • Mark correct answers in the master copy before you make any versions.
  • Put the version name where a proctor can see it at a glance, and have students copy it onto their answer sheet.
  • Check one question per page of each version against its key before printing a full run.

Shuffle your next Word exam free

Take one exam you have already given, import the .docx into Pencilius, and compare the versions and keys with what you would make by hand. The free plan covers up to 30 questions, 3 exams and 5 versions per exam, and the demo needs no account. For why shuffled versions help in the first place, see The MCQ Shuffle.

Frequently asked questions

What is the easiest free way to shuffle a Word exam?

Upload the .docx to Pencilius. It reads the multiple-choice questions and the answers you marked, shows every question for review, and then makes versions with the questions shuffled, the answer choices shuffled, or both. Each version gets its own exam PDF and answer key PDF. The free plan covers up to 30 questions, 3 exams and 5 versions per exam, and the demo works without an account.

Does Pencilius shuffle answer choices as well as questions?

Yes. Each version has its own Shuffle questions and Shuffle answers switches, so a version can reorder questions, answer choices, or both. Choices such as 'All of the above' keep their position, a question whose choices refer to each other by letter ('Both A and C') keeps its whole order, and you can lock any other choice yourself. Every version's answer key follows the order that version prints.

Can Microsoft Word shuffle test questions automatically?

No. Word has no random order command. The Sort command (Home, then the A-Z Sort button) sorts paragraphs or table rows alphabetically, by number or by date, ascending or descending. To get a random order in Word itself you sort by a column of random numbers you add yourself or run a macro. Pencilius does the shuffling for you and writes an answer key for each version.

How do I randomize answer choices in Word without breaking 'All of the above'?

Shuffle only the questions whose options are independent, and leave options such as 'All of the above', 'None of the above' or 'Both A and C' in their original position. Rewriting 'Both A and C' as text that does not name letters makes the question safe to shuffle. Pencilius keeps these options in place for you, and you can lock any other option so it keeps its position when the rest are shuffled.

Is there a Word macro that shuffles multiple-choice questions?

Several community VBA macros exist, usually posted in Microsoft support and Office forums. Most assume a fixed layout, such as every question followed by exactly four answer paragraphs, and fail quietly when a question has three or five options. They need the desktop version of Word, macros must be allowed on your computer, and none of them writes an answer key for you.

How do I keep a separate answer key for each version?

Mark the correct option in your master copy before you shuffle anything, and build each key from the shuffled version rather than from memory. Put the version letter on every copy where it can't be missed. Pencilius writes each version's key from the same questions it prints, so the key cannot fall out of step with the paper.

How many versions of a test should I make?

Two versions, alternated like a checkerboard, mean no student sits beside, in front of or behind someone with the same version. Four versions cover the diagonal neighbours as well. More versions add printing and sorting work, so make as many as your seating plan needs.

What files does Pencilius produce?

Print-ready PDFs: one exam PDF and one answer key PDF per version, plus an answers table and a question order table (PDF or CSV) covering all versions.

What does Pencilius import from a Word or PDF file?

Multiple-choice questions, including true/false written as two options, with the answers you marked. Word files bring tables, pictures and equations across with their questions, ordinary PDFs bring tables and pictures, and scanned PDFs bring text and tables. Review shows every question with where it sat in your document, so you decide what goes into your question bank.

  • #microsoft-word
  • #shuffled-exams
  • #multiple-versions
  • #answer-keys
  • #multiple-choice