Data preparation

Randomization List Generator: Simple, Block and Stratified Randomisation for Trials

Create the allocation sequence for your trial, field experiment or animal study in seconds. Choose simple, permuted-block or stratified block randomisation, any number of arms and ratios such as 2:1, fixed or randomly varying block sizes, and a seed so the list can be regenerated exactly. Download the list as CSV or print sealed-envelope cards.

✅ No login needed100% freeRuns in your browserYour data stays on your device
Randomization List Generator✅ Free · no login📚 Cite this tool
Your data never leaves your PC. Your data is analysed on your own computer or phone, even when you upload a CSV or Excel file. Nothing is uploaded, stored or seen by Codanics, and no login is needed.
  • PriceFree, no login or sign-up needed
  • Your dataProcessed in your browser, never uploaded
  • Works onPhone, tablet or computer, any modern browser
  • Made byDr. Muhammad Aammar Tufail, Codanics
  • Published17 November 2026
  • Last updated16 November 2026

📚 How to cite this tool

This tool is free. If it helped your thesis, paper, report or assignment, please cite it. It keeps the tools free and helps other students find them.

Citation · APA 7th edition

Tufail, M. A. (2026). Randomization list generator: simple, block and stratified randomisation for trials [Online tool]. Codanics. Retrieved 16 November 2026, from https://codanics.com/tools/randomization-list-generator/

In-text citation: (Tufail, 2026) · Narrative: Tufail (2026)

The access date is today’s date, filled in automatically. Author: Muhammad Aammar Tufail. Published 17 November 2026.

🚀 Follow Codanics channel on WhatsApp for more updatesNew free tools, scholarships, PhD positions and research tips, straight to your phone. Free lessons on YouTube too.

How to use the randomization list generator

  1. List the arms, one per line. Add a ratio after a colon for unequal allocation, for example New drug:2 and Control:1.
  2. Choose Permuted blocks (recommended for most trials) or Simple. For blocks, enter one size or several (such as 4, 6) to vary block sizes at random. For stratified randomisation, add one factor per line, such as Sex: Male, Female.
  3. Enter the number of participants (per stratum if stratified), an ID prefix and a seed, then click Generate list. Note the seed: it regenerates exactly the same list.
  4. Download the CSV, copy it into Excel, or print envelope cards for sealed, opaque envelopes. Copy the methods sentence for your protocol or CONSORT report.

Which randomisation method should I use?

MethodHow it worksUse when
SimpleEach participant is allocated independently, like a (weighted) coin toss.Large trials (hundreds per arm), where chance imbalance is small.
Permuted blocksEach block of, say, 4 contains exactly 2 A and 2 B in random order.Small and medium trials and lab or field experiments: group sizes stay balanced throughout recruitment.
Stratified blocksA separate block list for each stratum (e.g. each site × sex).When a strong prognostic factor or multiple centres could cause imbalance. Keep strata few: 2–6 is typical.

Varying the block size at random (for example 4 and 6) makes it harder for recruiters to predict the last allocations in a block, which protects allocation concealment.

How the list is generated

The seed text is hashed into a starting state for a fast, well-tested pseudo-random generator (mulberry32). For block randomisation, each block contains every arm in proportion to its ratio and is shuffled with the Fisher–Yates algorithm; for simple randomisation each slot is drawn with probabilities proportional to the ratios. The same seed and settings always produce the same list in this tool, so you can document and reproduce it. Because the generator differs from R’s, the same seed will not give the same list in R.

Worked example

The example allocates 40 participants to Treatment A or Placebo (1:1) in permuted blocks of 4 with the seed “codanics-2026”. Every block of four has two of each, so after any multiple of 4 participants the arms are exactly balanced and the final list has 20 per arm. Add Site: Lahore, Karachi under Strata to get a separate balanced list of 40 for each site.

Reporting (CONSORT)

CONSORT asks you to report the method used to generate the sequence, the type of randomisation and any restriction (blocking, block size), the mechanism used to conceal the allocation (for example sequentially numbered, opaque, sealed envelopes), and who generated the sequence, enrolled participants and assigned interventions. The sentence above covers the first parts; add your concealment and implementation details.

Learn the statistics behind these numbers. Codanics has free statistics, R and Python lessons on YouTube and full courses for researchers.

Frequently asked questions

What block size should I use?

Use a block size that is a small multiple of the ratio total, such as 4 or 6 for two arms in 1:1. Mixing two sizes (4 and 6) at random makes the sequence harder to guess. Very small blocks (2) are easy to predict.

How do I make the list reproducible?

Keep the seed and the settings (arms, ratio, method, block sizes, strata and number of participants). Entering the same values again regenerates exactly the same list.

Why does my list have more slots than participants?

Block randomisation only stays balanced if blocks are complete, so the last block is generated in full. Use the slots in order; any extra slots at the end are simply not used.

How many strata can I use?

As few as possible. Each stratum needs enough participants to fill several blocks; with many small strata the overall balance can get worse. Two or three factors with two or three levels each is a common maximum.

Can I use this for field or lab experiments?

Yes. Use it to allocate plots, pots, animals or samples to treatments. For a complete field layout with blocks and plot maps, see the field-trial layout tools on Codanics.

Is anything uploaded?

No. The list is generated in your browser and nothing is stored or sent anywhere. Download or print it before closing the page.

Do I need to log in or create an account to use the randomization list generator?

No. There is no login, no sign-up and no email required. Open the page and start using it straight away, for free, on any device.

How do I cite this tool in my thesis or paper?

Use the citation box on this page. In APA 7th edition: Tufail, M. A. (2026). Randomization list generator: simple, block and stratified randomisation for trials [Online tool]. Codanics. Retrieved [date you used it], from https://codanics.com/tools/randomization-list-generator/. BibTeX, RIS (EndNote, Mendeley, Zotero), MLA, Harvard, Chicago and Vancouver formats are also available.

Free guides and courses from Codanics

More free tools

See all free Codanics tools → · Codanics on YouTube · WhatsApp channel

Made by Dr. Muhammad Aammar Tufail, Codanics. First published 17 November 2026, last updated 16 November 2026. Found a bug or have an idea for a new tool? Tell us on the WhatsApp channel or in the comments on YouTube. Results are for learning and planning; check important analyses with a statistician or your supervisor.