Barcodegen adds real barcodes to WordPress. Type a value, pick a format, and you get a clean vector barcode that prints sharply at any size — product pages, packing slips, invoices, tickets, shelf labels, asset tags, anything.
Six formats, generated locally
How it renders
Every barcode is written as inline SVG by PHP. There is no image file to manage, no JavaScript, and no canvas: the bars stay sharp on retina screens and come out of a laser printer perfectly. Guard bars extend below the digit row and the number system digits sit in the quiet zones, so EAN-13 and UPC-A output looks like a real retail label, not a screenshot.
Three ways to add one
Privacy and performance
Nothing is sent anywhere. There are no external requests, no trackers, no cookies and no third party libraries — the encoders are about a thousand lines of PHP written for this plugin. Barcodes render on the server, so they work in feeds and emails and add nothing to your page weight budget.
[barcodegen format="ean13" value="5901234123457"]
Every attribute is optional except the value:
Enclosed content also works, which is handy when the value contains quotes:
[barcodegen format="code39"]HELLO WORLD[/barcodegen]
If a value cannot be encoded — a five digit EAN-13, a lower case letter in Code 39 — you will see the reason while editing and visitors will see nothing at all.
What each format accepts, so you get it right the first time.
Non-digit characters are stripped from EAN, UPC and ITF values, so 590-1234-123457 encodes exactly like 5901234123457. Values with accents or non-Latin characters are rejected by Code 128 and accepted by Code 39 only if they are in the Latin-1 range.