Koha Barcode Range Generator

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.

Optional text before the number.
Leading zeroes are preserved.
Must be equal or higher than start.
Optional text after the number.
Width 6 creates 000001.
Usually 1.
Code 128 is recommended.
Prevents very large browser jobs.

Label Print Settings

0Total barcodes
-First barcode
-Last barcode
-Barcode type

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

No preview yet.

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.

Auto works for most pasted lists.

How to Print Barcode Labels

  1. Enter the barcode range, such as start number 000001 and end number 000100.
  2. Set the prefix if required, such as BK, LIB, or your branch code.
  3. Set label width, label height, and columns according to your label sheet.
  4. Click Generate Barcodes.
  5. 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.

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?

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 BKLIBSCH, 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.

  1. Enter an optional prefix, such as BK or LIB.
  2. Enter the start number, such as 000001.
  3. Enter the end number, such as 000100.
  4. Choose the number width, such as 6.
  5. Select the barcode type, such as Code 128 B.
  6. Set label width, height, and columns.
  7. Click Generate Barcodes.
  8. 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 TypeBest ForSupports LettersSupports NumbersGood for Koha?
Code 128 BModern library barcodes, compact labels, mixed textYesYesYes
Code 39Simple older barcode systemsYes, limitedYesYes
QR CodeLinks and larger textYesYesNot ideal for normal Koha circulation
EAN/UPCRetail productsMostly numericYesNot 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.

FormatExampleBest Use
Plain number000001Small libraries and new Koha setups
Prefix + numberBK000001Book collections
Branch + numberMAIN000001Multi-branch libraries
Year + number2026000001Annual accession workflows
Collection + numberREF000001Reference or special collections

A beginner-friendly format is usually 000001000002000003, 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 SettingRecommended Choice
Scale100% or actual size
Barcode colorBlack
BackgroundWhite
Label textShow readable number
Test printAlways test one sheet
Scanner testScan 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 OptionBest Use
CSVSpreadsheet work, reports, and migration preparation
TXTSimple barcode list
Koha 952$p CSVPreparing item barcode data for Koha
Printable HTMLSaving or printing labels from a browser
Copy Barcode ListQuick 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.

ProblemLikely CauseFix
Barcode does not scanLabel printed too small or blurryReprint at 100% scale
Koha says barcode not foundBarcode not saved in 952$pCheck the item record
Duplicate barcode errorSame number used twiceGenerate a new unique range
Barcode looks stretchedPrinter scaling changed sizeUse actual size printing
Barcode number appears twiceLabel template duplicated textHide one text line or fix the template
CSV import failsWrong field names or encodingCheck item columns and UTF-8
Scanner reads wrong valuePoor print quality or wrong formatTest 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.

FeatureKoha Barcode GeneratorKoha Label Creator
Fast range generationYesYes
Works outside Koha adminYesNo
Koha 952$p CSV exportYes, in this toolNot the main purpose
Layout controlBasic and simpleMore detailed
Best for beginnersVery easyNeeds Koha access
Best for live item batchesGoodGood 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.

SettingValue
PrefixLeave blank
Start number000001
End number000500
Number width6
Increment1
Barcode typeCode 128 B
Columns per page3
Show text under barcodeYes

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.

CheckWhy It Matters
No duplicatesPrevents circulation errors
Short barcode valuesKeeps labels readable
Correct 952$p fieldMakes scanning work in Koha
Clear prefix policyAvoids messy future ranges
Test scanner firstPrevents label waste
Backup before importProtects 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.

QuestionExample Answer
Will we use a prefix?No, only numbers
How many digits?6 digits
First range000001–005000
Barcode typeCode 128 B
Field in Koha952$p
Print styleBarcode + 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.