Barcode Generator
Script for Adobe Illustrator
✦ Available exclusively on Patreon for Pro supporters.
ㅤ
Description
Barcode Generator is a powerful ExtendScript tool designed for Adobe Illustrator that creates production-ready UPC-12 and EAN-13 barcodes. The script features an intuitive tabbed interface with real-time preview, customizable font selection, and adjustable character tracking. All barcodes are generated as vector graphics with proper formatting, including numbers positioned below the bars.
ㅤ
Key Features
- Two Barcode Standards: Generate UPC-12 (Universal Product Code) and EAN-13 (European Article Number) barcodes
- Automatic Check Digit Calculation: Enter 11 digits for UPC-12 or 12 digits for EAN-13, and the script automatically calculates the check digit
- Live Preview: See your barcode in real-time as you type and adjust settings
- Fit in Window: Automatically zoom to the previewed barcode for better visibility
- Font Customization: Choose from preferred fonts or fallback to system defaults
- Adjustable Tracking: Fine-tune character spacing with an easy-to-use scrollbar (-100 to +100 range)
- Vector Output: All barcodes are created as scalable vector graphics
ㅤ

ㅤ
Installation
1. Download the Barcode Generator.jsx script file.
2. Place the script in your Adobe Illustrator Scripts folder:
⮑ Mac: /Applications/Adobe Illustrator <Version>/Presets/<Language>/Scripts
⮑ Windows: C:\Program Files\Adobe\Adobe Illustrator <Version>\Presets\<Language>\Scripts
3. Restart Adobe Illustrator if it's already running.
4. Access the script via File > Scripts > Barcode Generator.
ㅤ
Using the Script:
ㅤ
Getting Started
- Open Adobe Illustrator and create a new document or open an existing one
- Run the script by navigating to: File > Scripts > Barcode Generator
- Script dialog will appear with multiple settings:
ㅤ

ㅤ
Generating a Barcode
ㅤ
1. Select the Barcode
- Choose either the UPC‑12 or EAN‑13 tab
- UPC‑12 expects 11 input digits (the 12th is calculated)
- EAN‑13 expects 12 input digits (the 13th is calculated)
ㅤ
2. Enter Your Code:
- Type the required number of digits for the selected standard
- Only numbers are accepted (letters and special characters are automatically filtered)
- Example: UPC‑12: 12345678901 (11 digits; check digit auto‑calculated) EAN‑13: 123456789012 (12 digits; check digit auto‑calculated)
ㅤ
3. Choose a Font (optional):
- Click the font dropdown menu
- Select from the curated list of preferred fonts (e.g., Arial, Helvetica, OCR‑B)
- If preferred fonts are missing, it falls back to available system fonts
ㅤ
Adjust Font Tracking:
- Use the scrollbar to adjust character spacing (-100 to +100)
- Or type a value directly in the text field
- Use arrow keys (Up/Down) for fine adjustments
- Right-click the scrollbar to reset to 0
ㅤ
4. Preview Your Barcode:
- The preview checkbox is enabled by default
- Watch your barcode update in real-time as you make changes
- Check "Fit in Window" to automatically zoom to the barcode preview
- Uncheck "Preview" to disable live preview
ㅤ
5. Generate the Barcode:
- Click the "OK" button
- The barcode will be created on your active artboard
- A success message will display the calculated check digit
- The barcode will be automatically selected and centered
ㅤ
Wrap-Up
Barcode Generator streamlines creation of UPC‑12 and EAN‑13 barcodes with live preview, curated font choices, adjustable tracking, and vector‑perfect output.
Select your standard, enter digits, fine‑tune spacing, and use “Fit in Window” for precise visual checks. The result is fast, consistent, and print‑ready every time.
ㅤ
ㅤ