Best Free Barcode Generator
Generate a retail or asset barcode — Code 128, EAN, UPC, ISBN — as a clean PNG. Free, no signup.
How it works
- Enter data. Type the number or text to encode in the barcode.
- Pick a type. Choose the symbology — Code 128, EAN-13, UPC-A, Code 39 or ISBN.
- Download PNG. The barcode appears instantly — download it as a PNG to print or place.
About this tool
Barcode Generator creates a standards-compliant barcode from your data and gives you a clean PNG to print or place. Pick the symbology to match where it'll be scanned — Code 128 for general use, EAN-13 or UPC-A for retail products, Code 39 for asset tags, ISBN for books. The tool validates your input against each type's rules, so you find out before printing if an EAN needs more digits. No watermark, no signup, generated on the fly and never stored.
What people use it for
- Make a UPC or EAN barcode for a product
- Print Code 128 labels for inventory or assets
- Generate an ISBN barcode for a book
- Create Code 39 tags for internal tracking
Developer API
Automate this tool from your own code. Send a POST request to the endpoint below and get the same result the web tool produces. It is rate-limited per IP and needs no signup — API keys for higher limits are coming.
https://best.free/api/tools/barcode-generator/
| Parameter | Example | Required | Notes |
|---|---|---|---|
text |
0123456789012 |
Yes | Data to encode. |
symbology |
code128 |
No | code128 / code39 / ean13 / ean8 / upca / isbn13. |
curl -X POST https://best.free/api/tools/barcode-generator/ \
-H 'Content-Type: application/json' \
-d '{"text": "0123456789012", "symbology": "code128"}'
import requests
r = requests.post(
"https://best.free/api/tools/barcode-generator/",
json={"text": "0123456789012", "symbology": "code128"},
)
print(r.json())
const r = await fetch("https://best.free/api/tools/barcode-generator/", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ text: "0123456789012", symbology: "code128" }),
});
const data = await r.json();
console.log(data);
Response: JSON with a base64 PNG data URI in "image".
{"ok": true, "image": "data:image/png;base64,iVBORw0KG..."}