TL;DR
- A good sample ID naming convention gives every sample a unique, permanent and short ID that is never reused.
- Print the ID as text next to the barcode, and keep all other details in your records.
- Use Data Matrix for tube bottoms and racks, QR for phone scans and Code 128 for handheld side scans.
- Label a 96 well plate on two sides and the lid, and mark the A1 corner.
Make your sample labels now with Scispot's free lab label maker.
Many labs still name samples by hand. A paper in PLOS Computational Biology gives a typical example: "JP PCR 8/23 4." The authors state that manual sample names "are time-consuming to generate, difficult to interpret, and often contain insufficient information." Hand-made names also sort in the wrong order, change in spreadsheets and come off in the freezer. This guide shows how to set up a sample ID naming convention for lab tubes and plates: rules, formats, label content, barcode choice and plate labels.
What makes a good sample ID naming convention?
A good sample ID naming convention is a written rule that gives every sample a short, unique and permanent ID. Follow these six rules.
- Make each ID unique, and never reuse it. Do not give an ID to a new sample, even after you discard the old one. Sandorian, a lab software vendor, states: "An ID assigned to a disposed sample must never be reused."
- Let the ID point to the record. The PLOS authors write that a sample ID "provides a link between a physical sample and a database entry." Keep the date, owner, contents and location in that record.
- Use a fixed-width, zero-padded number. Without padding, "S-100 files between S-10 and S-11" (tinysamples). The ETH Zurich Genetic Diversity Centre shows the same problem: WS-SG10 sorts before WS-SG2. Pad the number, for example 0142.
- Add a short prefix, and start with a letter. A prefix "may help interpret the ID" (PLOS). LabKey Sample Manager uses "S-" as its default prefix. LabKey also warns against numbers-only sample IDs, and ETH notes that R identifiers cannot start with a digit.
- Use one separator, preferably a hyphen. Sequencer file names already use underscores, for example SampleID_S1_L001_R1_001.fastq.gz. A hyphen inside the ID keeps these file names easy to split (ETH Zurich). Note: LabKey search needs quotes around a hyphenated ID.
- Keep personal data off the label, and avoid look-alike characters. Do not print patient names or other personal details on the tube. Sandorian advises to exclude 0, O, 1, I and l from any part of the ID that people copy by hand. Some labs add a check digit, which lets a system detect a misread ID (Sandorian).
3 sample ID formats you can copy
Choose one format, and use it for every sample.
| Format | Example | Use when | Breaks when |
|---|---|---|---|
| Plain counter | S-0142 | One lab shares one list and one counter | Two people assign numbers from memory |
| Project prefix | PRJ-0142 | Several projects each own a counter | A project gets a new name, or a sample moves to another project |
| Project + date + counter | PRJ-261202-001 | People must read the project and the day from the ID | A counter reset repeats an earlier ID, or the ID date differs from the record date |
The first two formats follow tinysamples' examples.
Should the ID include a date? A date is optional. It helps people read the ID, but guides do not agree. Sandorian warns that date-embedded IDs "create collision risk when intake volume grows and counter resets are mismanaged." tinysamples advises to keep dates in a separate date column. Spreadsheets also change values that look like dates: tinysamples reports that in 2020 the HUGO Gene Nomenclature Committee renamed 27 human genes to stop Excel from turning them into dates. If you use a date, never let a counter reset repeat an ID. Keep the true date in the record.
In Scispot's free label tool, you set the Prefix, Date (YYMMDD, YYYYMMDD or None), Separator, Start at and Digits fields.
What to print on a lab tube label
Print the sample ID as text and as a barcode. People read the text, and scanners read the code. The PLOS authors state that the sample ID "is the only piece of information that needs to be printed on the sample label." Keep all other details in your records.
Regulated work can need more. For regulated bioanalysis, the Global Bioanalysis Consortium states: "All samples must be labeled clearly with a unique identity. Handwritten labels should not be used." It advises this minimum label content: protocol number, subject or animal number, visit or time, matrix and a unique identifier. In clinical studies, labels must not show the subject's name or other identifying personal information.
SWOG's specimen labeling guide notes that "cold storage can make the labels come off easily." Follow these steps:
- Choose a labeling system that is "suitable for (permanent) cryogenic storage" (ATCC).
- Label the tubes before you freeze them (SWOG).
- Apply the labels to dry tubes at room temperature.
- Wrap the label around the tube, so the overlap sits on top of the label (SWOG).
- Test a few labels before you print a full batch.
To make tube labels now, use the free lab tube label generator. When many samples arrive, labeling is one step of sample accessioning.
Data Matrix vs QR code vs Code 128 for lab tubes
Use Data Matrix for small tubes and rack scanning, QR when people scan with a phone, and Code 128 for side labels read by handheld scanners.
| Feature | Data Matrix | QR code | Code 128 |
|---|---|---|---|
| Type | 2D | 2D | 1D (linear) |
| ISO/IEC standard | 16022 | 18004 | 15417 |
| Smallest symbol | 10 × 10 modules | 21 × 21 modules | Gets wider with each character |
| Quiet zone | 1 module | 4 modules | 10 × the bar width on each side (Scispot tool setting) |
| Scanner | 2D imager or phone camera | 2D imager or phone camera | Almost any handheld scanner |
| Typical lab use | Tube bottoms and rack scanning | Larger labels and phone scans | Side labels on tubes and boxes |
Choose Data Matrix for rack scanning and small tube bottoms. Eppendorf states that its RackScan reads "2D barcodes on up to 96 cryogenic sample vials within a rack." Micronic laser-etches Data Matrix codes on tube bottoms, and its hybrid tubes add a 1D code on the side.
Choose QR when people scan with a phone. In Scispot's free tool, the QR code holds a short link to a Scispot sample card. If the code must hold the ID alone, choose Code 128 or Data Matrix.
Choose Code 128 for handheld 1D scanners and long, narrow side labels. Keep the ID short.
Both 2D codes are royalty-free. In 2023, the ICH M2 expert working group recommended Data Matrix and/or QR codes per ISO/IEC 16022 and ISO/IEC 18004. For hardware, see our guide to lab label printers. For scanning at scale, read about barcode sample tracking.
How to label a 96 well plate or a 96-tube rack
A 96 well plate has rows A to H and columns 1 to 12, with A1 at the top left. The ANSI/SLAS standards (1-2004 and 4-2004) set a footprint of 127.76 mm × 85.48 mm, with a 9 mm well pitch.
PakGent Bio, a plate maker, writes: "Most lost samples are not lost in the assay — they are lost between the rack and the plate." It gives these rules:
- Label the plate on two sides plus the lid, with the plate ID, date and experiment code.
- Mark the A1 corner.
- Use sample IDs on the plate map that match the tube labels exactly.
- On shared plates, ask a second person to check the map against the tube rack before the first pipetting step.
A 96-tube rack uses the same A1 to H12 grid, so one ID rule can name both. If you use a 96 well plate label template, check it against these rules. To see one ID rule fill a full rack, open the 96-tube rack preview. The tool also exports a CSV file that you can import into your LIMS. When labels alone are not enough, move to sample traceability.
From labels to tracked samples. Bring your sample IDs, labels and records together with Scispot. Scispot "supports barcode scanning and label printing, and scans can update sample status and location in real time," according to its sample traceability page. Label formats, ID schemas and printers are set up during implementation. Book a Demo →




