100% browser-side barcode tool

Reliable barcodes.
Nothing stored.

Generate and validate product barcodes directly in the browser. This page uses self-hosted code from your SmartGen repository—no database, analytics request, API key, or external barcode service.

Runs locallyWorks offline after loadNo client API keys

$10 lifetime serviceCore tool first. Checkout and activation are not enabled yet.

Self-hosted generator

Create a product-ready barcode.

Choose a standard, enter the product value, and download a sharp local SVG. Retail identifiers are checksum-validated before the barcode can be generated.

0/80

Code 128 accepts readable product, stock, and inventory values.

Appearance controls
PRINT PREVIEWCODE 128

This barcode is generated in your browser. The product value does not leave this page.

Client-admin dashboard integration

Block invalid product barcodes before save.

Load one self-hosted JavaScript file in the client’s admin dashboard. The integration normalizes retail check digits, prevents invalid form submission, and raises a local event with the valid barcode. The client’s own backend remains responsible for its product database.

  • 01 No SmartGen server receives product data.
  • 02 No secret key appears in browser code.
  • 03 The client’s existing product endpoint owns the final save.
CLIENT ADMIN CONFIGURATION
<script src="https://smartgentools.com/barcode-service/barcode-service.js"></script>
<script>
SmartGenBarcode.attachProductForm({
  form: "#client-product-form",
  barcodeInput: "#product-barcode",
  formatInput: "#barcode-format",
  onValid: ({ barcode, format }) => {
    // Send only to the client’s own backend.
    // Never place a real API key in this browser code.
    document.querySelector("#product-barcode").value = barcode;
  }
});
</script>
01

Add the self-hosted script

Use the SmartGen domain file in the client’s admin dashboard or copy barcode-service.js into the client’s own repository. No external service is called by the tool.

02

Connect existing form fields

Provide selectors for the client’s product form, barcode input, and format input. The integration validates values on entry and prevents the form from saving an invalid barcode.

03

Keep secrets on the client server

Let the client’s backend use its own session, CSRF protection, and server-side credentials when it saves the product. The browser plugin never needs the secret key.

Built-in validation rules

FormatAccepted product inputBrowser action
EAN-1312 digits or valid 13-digit identifierCalculates or verifies the check digit
UPC-A11 digits or valid 12-digit identifierCalculates or verifies the check digit
Code 1281–80 printable charactersGenerates an inventory barcode locally
Code 39Uppercase letters, numbers, spaces, and approved symbolsBlocks unsupported characters before save