Generate sequential Koha item barcodes with preserved leading zeroes, printable labels, CSV export, and clean barcode lists for inventory, item import, and batch work.
Create Barcode Range
Enter a numeric range and optional prefix or suffix. The generated barcode value can be used as the Koha item barcode, normally stored in 952$p.
Label Print Settings
Export and Print
Generate barcodes first. Then print labels directly or export clean barcode lists for Koha work.
Generated Barcodes
Barcode list
| # | Barcode | Koha field | Type |
|---|---|---|---|
| Generate a range to see results. | |||
Barcode Preview
Clean Existing Barcode List
Paste barcode values from a scanner, Excel sheet, or old accession register. The tool can remove duplicates and prepare a clean list for printing or export.
How to Print Barcode Labels
- Enter the barcode range, such as start number 000001 and end number 000100.
- Set the prefix if required, such as BK, LIB, or your branch code.
- Set label width, label height, and columns according to your label sheet.
- Click Generate Barcodes.
- Click Print Barcode Sheet to print from the browser. Use scale 100% or actual size.
For Koha item import, use the barcode value in 952$p. If you are preparing item records in Excel, download the Koha CSV and merge the barcode column into your item spreadsheet.
A Koha Barcode Generator helps you create barcode numbers for library items, print barcode labels, and prepare barcode lists for Koha item records. It is useful when you are setting up a new Koha library, migrating from another system, adding new books, or preparing item data for import.
In Koha, the item barcode connects the physical book, DVD, journal, or resource to its item record. When a staff member scans a barcode during circulation, Koha uses that barcode to find the correct item record.
What Is a Koha Barcode Generator?
A Koha Barcode Generator is a simple tool that creates barcode values for Koha library items. Instead of typing each barcode manually, you can generate a clean range such as 000001 to 000500 or BK000001 to BK000500.
This tool is helpful because barcode mistakes can create real problems during circulation. If a barcode is missing, duplicated, too long, printed badly, or saved in the wrong field, staff may not be able to check out, check in, renew, or search items correctly.
How Koha Uses Barcodes in Library Records
Koha stores bibliographic information and item information separately. A bibliographic record describes the title, author, edition, publisher, and subject. An item record describes the physical copy owned by the library.
For MARC21 systems, Koha stores item data in the 952 field, and the item barcode is stored in 952$p. This means your barcode is not just a printed label. It is also a key item identifier inside Koha.
How to Use This Koha Barcode Generator
Using this Koha Barcode Generator is simple. Start by choosing whether you want a prefix. A prefix is optional text before the number, such as BK, LIB, SCH, or a branch code.
Next, enter your start number and end number. For example, if you want 100 barcodes, you can enter 000001 as the start number and 000100 as the end number. The number width setting keeps leading zeroes, so your barcode series stays clean and consistent.
- Enter an optional prefix, such as
BKorLIB. - Enter the start number, such as
000001. - Enter the end number, such as
000100. - Choose the number width, such as
6. - Select the barcode type, such as Code 128 B.
- Set label width, height, and columns.
- Click Generate Barcodes.
- Print the labels or export the barcode list.
Koha Barcode Field: What Does 952$p Mean?
In Koha, 952$p is the item barcode field for MARC21 item records. Think of it as the place where Koha stores the scannable identity of each physical item.
For example, if your book label shows this barcode number:
000001
Then your Koha item barcode field should also contain:
952$p = 000001
If the printed barcode and the Koha item record do not match, scanning will not work correctly. That is why this tool includes a Koha 952$p CSV export option.
Code 128 vs Code 39 for Koha Barcodes
This tool supports Code 128 B and Code 39. Both can be used for library barcodes, but Code 128 is usually the better choice for most modern barcode workflows because it is compact and supports more characters.
| Barcode Type | Best For | Supports Letters | Supports Numbers | Good for Koha? |
|---|---|---|---|---|
| Code 128 B | Modern library barcodes, compact labels, mixed text | Yes | Yes | Yes |
| Code 39 | Simple older barcode systems | Yes, limited | Yes | Yes |
| QR Code | Links and larger text | Yes | Yes | Not ideal for normal Koha circulation |
| EAN/UPC | Retail products | Mostly numeric | Yes | Not usually used for Koha item barcodes |
For most Koha libraries, Code 128 is the safest default. Use Code 39 only if your scanner, library policy, or old label system already depends on it.
Best Barcode Number Formats for Koha Libraries
A good barcode format should be short, readable, unique, and easy to continue later. Avoid random formats unless your library already has a clear policy.
| Format | Example | Best Use |
|---|---|---|
| Plain number | 000001 | Small libraries and new Koha setups |
| Prefix + number | BK000001 | Book collections |
| Branch + number | MAIN000001 | Multi-branch libraries |
| Year + number | 2026000001 | Annual accession workflows |
| Collection + number | REF000001 | Reference or special collections |
A beginner-friendly format is usually 000001, 000002, 000003, and so on. If you manage multiple branches, use a short branch prefix, such as A000001 or MAIN000001.
How to Print Koha Barcode Labels
Printing barcode labels is not only about generating the barcode. You also need the right label size, clear black bars, enough white space, and correct printer scaling.
Always print at 100% scale or actual size. Do not use “fit to page” because it can stretch or shrink the barcode. A stretched barcode may look normal to the eye but fail when scanned.
Before printing hundreds of labels, print one test sheet. Scan 3–5 labels from the sheet. If they scan correctly, then print the full batch.
| Print Setting | Recommended Choice |
|---|---|
| Scale | 100% or actual size |
| Barcode color | Black |
| Background | White |
| Label text | Show readable number |
| Test print | Always test one sheet |
| Scanner test | Scan before applying labels |
How to Export Koha Barcodes to CSV, TXT, and 952$p CSV
This tool gives different export options because libraries use barcodes in different workflows. You may need a simple list for printing, a CSV file for spreadsheet work, or a Koha-ready barcode column for item import.
| Export Option | Best Use |
|---|---|
| CSV | Spreadsheet work, reports, and migration preparation |
| TXT | Simple barcode list |
| Koha 952$p CSV | Preparing item barcode data for Koha |
| Printable HTML | Saving or printing labels from a browser |
| Copy Barcode List | Quick paste into another tool |
The Koha 952$p CSV option is especially useful when you are preparing item data for import. It helps you keep barcode values clean before adding them to your Koha item spreadsheet.
Common Koha Barcode Problems and Fixes
Barcode issues are common during Koha setup, migration, and item import. Most problems come from duplicate barcode values, wrong fields, bad print settings, or mismatch between the printed label and the Koha item record.
| Problem | Likely Cause | Fix |
|---|---|---|
| Barcode does not scan | Label printed too small or blurry | Reprint at 100% scale |
| Koha says barcode not found | Barcode not saved in 952$p | Check the item record |
| Duplicate barcode error | Same number used twice | Generate a new unique range |
| Barcode looks stretched | Printer scaling changed size | Use actual size printing |
| Barcode number appears twice | Label template duplicated text | Hide one text line or fix the template |
| CSV import fails | Wrong field names or encoding | Check item columns and UTF-8 |
| Scanner reads wrong value | Poor print quality or wrong format | Test Code 128 and reprint |
If you are importing records, check the barcode column before upload. A small spreadsheet mistake can create hundreds of incorrect item records.
Koha Barcode Generator vs Koha Label Creator
Koha has its own label creator tools. Some libraries use Koha’s built-in label workflow, while others prefer creating barcode ranges before importing or printing.
A separate Koha Barcode Generator is useful when you want quick barcode ranges, printable labels, or CSV/TXT exports outside the full Koha label setup process.
| Feature | Koha Barcode Generator | Koha Label Creator |
|---|---|---|
| Fast range generation | Yes | Yes |
| Works outside Koha admin | Yes | No |
| Koha 952$p CSV export | Yes, in this tool | Not the main purpose |
| Layout control | Basic and simple | More detailed |
| Best for beginners | Very easy | Needs Koha access |
| Best for live item batches | Good | Good inside Koha |
Both tools can be useful. Use this generator when you need a quick, clean barcode range. Use Koha’s built-in label creator when you want to manage label batches inside Koha.
Practical Example: Create 500 Barcodes for a School Library
Imagine a school library wants to label 500 books before importing items into Koha. The library wants clean numbers with leading zeroes.
| Setting | Value |
|---|---|
| Prefix | Leave blank |
| Start number | 000001 |
| End number | 000500 |
| Number width | 6 |
| Increment | 1 |
| Barcode type | Code 128 B |
| Columns per page | 3 |
| Show text under barcode | Yes |
The output will look like this:
000001
000002
000003
...
000500
After generating the range, download the Koha 952$p CSV. Use that barcode list when preparing item data for import.
Before Importing Barcodes into Koha
Before you import barcode data into Koha, check the list carefully. Koha barcodes should be unique. Do not reuse a barcode for two different books.
Keep barcode values short, clear, and consistent. If your library uses prefixes, decide the prefix style before printing labels.
| Check | Why It Matters |
|---|---|
| No duplicates | Prevents circulation errors |
| Short barcode values | Keeps labels readable |
| Correct 952$p field | Makes scanning work in Koha |
| Clear prefix policy | Avoids messy future ranges |
| Test scanner first | Prevents label waste |
| Backup before import | Protects live data |
Who Can Use This Koha Barcode Generator?
This Koha Barcode Generator is useful for school libraries, college libraries, public libraries, private libraries, training centers, and Koha migration teams.
It is also helpful for librarians who are preparing item records in Excel before import. If your library is still setting up Koha, this tool can help you build a clean barcode system before circulation starts.
Best Practices for Koha Barcode Planning
Do not start barcode printing without a simple plan. Decide your format, number length, prefix policy, and future range before printing labels.
For example, if your library may grow to 50,000 items, avoid a short format like 001. A six-digit format like 000001 gives you more room and looks cleaner on labels.
| Question | Example Answer |
|---|---|
| Will we use a prefix? | No, only numbers |
| How many digits? | 6 digits |
| First range | 000001–005000 |
| Barcode type | Code 128 B |
| Field in Koha | 952$p |
| Print style | Barcode + readable number |
FAQs About Koha Barcode Generator
What is a Koha Barcode Generator?
A Koha Barcode Generator is a tool that creates barcode numbers and printable barcode labels for Koha library items. It helps libraries create clean barcode ranges for circulation, item import, and inventory work.
What is 952$p in Koha?
In MARC21 Koha item records, 952$p is the item barcode field. This is where the barcode value for a physical library item is stored.
Which barcode type is best for Koha?
Code 128 B is a good default choice for most Koha libraries because it is compact and supports letters and numbers. Code 39 can also work, but it is less compact.
Can I use leading zeroes in Koha barcodes?
Yes. Leading zeroes are commonly used in library barcode ranges. For example, 000001 is cleaner than 1 because it keeps the barcode series consistent.
Can Koha generate barcodes automatically?
Koha has settings and tools that can support barcode workflows inside Koha. This online generator is useful when you want a quick barcode range, printable labels, or CSV export outside the Koha admin area.
Why does my barcode not scan?
A barcode may not scan if it is printed too small, stretched, blurry, too light, or created in a format your scanner does not read. Print at 100% scale and test one sheet first.
Can I export barcodes for Koha import?
Yes. This tool includes a Koha 952$p CSV export so you can prepare barcode data for item import or spreadsheet work.
Can I use the same barcode for two items?
No. Each physical item should have a unique barcode. Duplicate barcodes can confuse circulation, searching, inventory, and item tracking.
Is Code 39 okay for Koha?
Yes, Code 39 can be used if your barcode values use supported characters. However, Code 128 B is usually better for compact labels and modern scanners.
Should I print the readable number under the barcode?
Yes. Showing the readable number helps staff type the barcode manually if a scanner fails or the barcode label is damaged.




