Barcode to SVG Generator
Make EAN-13, EAN-8, UPC-A or Code 128 barcodes clipped into shapes like skulls and hearts, and download them as SVG or PNG in your browser.
Still loading. If the tool doesn’t appear, reload this page.
About this tool
Barcode to SVG Generator
Make EAN-13, EAN-8, UPC-A and Code 128 barcodes clipped into shapes like skulls and hearts, then download them as SVG or PNG.
Barcode to SVG Generator builds EAN-13, EAN-8, UPC-A and Code 128 barcodes and clips the bars into a chosen silhouette such as a skull, ghost or heart. The band at the bottom of every shape is left unclipped so the part a scanner reads stays whole. Type a number, pick a shape and ink colour, and download real vector rectangles as an SVG file, copy the markup, or save a PNG. The encoder runs in your page, and the human-readable digits are converted to outlines so the file needs no font.
How to use Barcode to SVG Generator
- 1
Choose a format: EAN-13, EAN-8, UPC-A or Code 128.
- 2
Type your number or text. For the numeric formats, enter one digit fewer than the full length and the check digit is added.
- 3
Pick a shape from the picker and a bar colour.
- 4
Read the status line under the input and fix anything it flags.
- 5
Download the SVG or PNG, or copy the SVG markup.
Why use Barcode to SVG Generator
Four real symbologies
EAN-13, EAN-8, UPC-A and Code 128 are encoded from the standard bar patterns, with guard bars and the Code 128 checksum.
Check digits handled
Enter the data digits and the check digit is added. If you type a full number with a wrong last digit, the tool says which digit it expected and offers a one-tap fix.
Protected scan band
Every shape keeps the bottom band of bars unclipped, so shaping the barcode does not cut into the part scanners read.
Vector output
The SVG holds one rectangle per bar plus outlined digits, so it scales without blur. A PNG export is available too.
Ink check
Pick any colour and the tool warns when it is light or warm enough that some scanners may read the bars as blank.
Runs in your browser
Encoding and export happen on the page. Nothing you type is sent to a server by this tool.
Common use cases
- Packaging and merchandise art: place a shaped EAN-13 or UPC-A symbol in Illustrator, Figma or Inkscape as plain vector rectangles.
- Posters, stickers and tattoo flash: use a decorative barcode shape with your own number, then print a test copy before the final run.
- Internal labels: encode a serial or SKU as Code 128 (set B) and export it as SVG for a label template.
- Learning how barcodes work: type 12 digits and watch the check digit be calculated and the guard bars drawn.
- Web pages and receipts: copy the SVG markup straight into HTML or a template.
Frequently asked questions
Which barcode types can I make?
EAN-13, EAN-8, UPC-A and Code 128. Code 128 uses code set B, so it takes letters, digits, spaces and common punctuation up to 100 characters.
Will a shaped barcode scan?
The bottom band is never clipped, which gives scanners the bars they need, but the tool cannot test your print. Ink spread, size, curvature and scanner quality matter, so print a sample and scan it first.
How are check digits treated?
For EAN-13, EAN-8 and UPC-A, enter one digit fewer than the full length and the check digit is appended. If you enter a full number with the wrong last digit, you get an invalid check digit message and export is blocked until you fix it.
Why can I not download my barcode?
Numeric formats need every digit, including a correct check digit. Code 128 needs at least one character. The hint under the input says what is missing.
Does the SVG need a font?
No. The human-readable digits are converted to paths, so the file looks the same wherever you open it.
What are the shapes for?
They are decorative silhouettes the bars are clipped into. The numbers you encode are still yours, so use real, valid codes for anything that goes on a product.