How to Generate Barcodes from Airtable Data (No External Tools)

You can generate scannable barcodes - EAN-13, Code 128, QR codes, GS1-128 - directly from your Airtable fields and render them in PDFs. Add a {{barcode:FieldName}} placeholder to your template, map it to an Airtable text field, and the barcode generates automatically at PDF creation time. No Bartender, no external barcode software, no copy-paste.

Airtable's Barcode field can scan barcodes into records, but it can't generate printable barcode images. TypeFlow fills that gap - on labels, QC spec sheets, invoices, shipping documents, or any template.

For label-specific workflows, see our complete guide to printing labels from Airtable.

Key Takeaways

  • Built-in barcode generation: EAN-13, Code 128, QR codes, and GS1-128 from any Airtable text or number field.
  • No external tools: Barcodes render at PDF generation time. No Bartender, NiceLabel, or barcode software needed.
  • Any document type: Works on labels, QC spec sheets, invoices, shipping docs, certificates - not limited to labels.
  • 2-click setup: Map an Airtable field to a barcode placeholder and select the type.

Airtable Can Scan Barcodes but Can't Generate Them

Airtable's Barcode field type lets you scan barcodes with your phone camera. It stores the scanned value as text. That's useful for inventory check-in.

But it can't do the reverse. You have a product UPC like 6990580506648 in a field. You need it printed as a scannable barcode on a label or document. Airtable has no way to turn that text value into a barcode image.

Current workarounds people use:

  • bwip-js URL formula - Create a formula field like "http://bwipjs-api.metafloor.com/?bcid=code128&text="&{SKU}. Generates an image URL. Fragile. Breaks if the API changes. No control over size or format.
  • miniExtensions Barcode Generator - Generates barcode images as Airtable attachments. Good for viewing barcodes in Airtable, but you still need another tool to put them in a document or label.
  • External barcode software - Tools like Bartender or NiceLabel cost $500+/year. They don't integrate with Airtable. You export data, generate barcodes separately, paste into documents manually.

TypeFlow skips all of this. Add a barcode placeholder to your template, map the field, generate. The barcode renders in the PDF.


Barcode Types You Can Generate from Airtable

EAN-13 - Retail Products

The standard 13-digit barcode on retail products. Every item on a store shelf has one. Scannable at point of sale.

  • Used on: Product labels, price tags, retail packaging.
  • Field requirement: 13-digit number (or 12 digits - the check digit calculates automatically).
  • Example: 6990580506648 on a produce bag.

EAN-13 is governed by GS1. If you sell through retail, your products need one.

Product label with EAN-13 barcode generated from Airtable data showing variety name and size

Code 128 - Logistics and Internal Tracking

Variable-length barcode that handles any text or number. The most flexible type.

  • Used on: Shipping labels, SKU tags, work orders, asset labels, tracking numbers.
  • Field requirement: Any text field. Letters, numbers, or both.
  • Example: SKU-2026-0142 on a warehouse label.

Code 128 is the default choice when EAN-13 is too restrictive. If your data isn't a 13-digit number, use Code 128.

QR Code - Mobile Scanning and URLs

Two-dimensional code that holds more data. Any smartphone camera can scan it.

  • Used on: Asset tags, inventory tracking, equipment labels, URLs linking to records.
  • Field requirement: Any text. URLs, serial numbers, JSON data.
  • Example: https://app.example.com/asset/12345 on an equipment tag.

QR codes are defined by ISO 18004. They hold up to 4,296 characters - far more than any 1D barcode.

GS1-128 - Food Traceability and Supply Chain

An extension of Code 128 with standardized data elements called Application Identifiers (AIs). Required on food product cases and pharmaceutical packaging.

  • Used on: Food cases, produce boxes, pharma packaging, supply chain documents.
  • Encodes: GTIN (01), pack date (13), lot number (10), expiry date (17), serial number (21).
  • Example: (01)10699058983976(13)250123(10)MU01123456

GS1-128 is critical for FDA FSMA Traceability Rule compliance. More on this below.

Which Barcode Type Should You Use?

Your Use CaseBarcode TypeWhy
Retail products for store shelvesEAN-13Industry standard for POS scanning.
Shipping labels and trackingCode 128Handles any alphanumeric data.
Asset tags and inventoryQR CodeScannable with any smartphone.
Food cases and pharmaGS1-128FDA FSMA regulatory compliance.
Internal SKU labelsCode 128Flexible, compact, widely supported.

How to Add a Barcode to Your Airtable Document

Here's an example QC spec sheet with EAN-13 and GS1-128 barcodes generated from Airtable data. Click to open the full PDF, or duplicate the demo base:

QC spec sheet with EAN-13 and GS1-128 barcodes generated from Airtable data with TypeFlow
PDF
Open full PDF ↗

Ready-to-use template

QC Policy with Barcodes

Duplicate the Airtable base, paste the template in Typeflow, then generate your first PDF in minutes.

Free tier available • No credit card required

Step 1 - Add a Barcode Placeholder to Your Template

In the TypeFlow template editor, add a barcode placeholder where you want the barcode to appear:

TypeFlow template editor showing barcode placeholder variables for EAN-13 and GS1-128 barcodes
{{barcode:FieldName}}

Replace FieldName with the name of your Airtable field. This works in any template type - labels, spec sheets, invoices, reports, certificates.

Example: A product label template with a barcode:

<div class="label">
  <div class="product-name">{{Product Name}}</div>
  <div class="barcode-area">{{barcode:UPC}}</div>
  <div class="sku">{{SKU}}</div>
</div>

Step 2 - Map the Barcode Field

In the mapping interface:

  1. Select the Airtable field that contains the barcode value (e.g., your UPC field).
  2. Choose the barcode type from the dropdown: EAN-13, Code 128, or QR Code.
  3. Done. No other configuration needed.
TypeFlow barcode mapping interface showing EAN-13 and Code 128 barcode type selection from Airtable fields

Step 3 - Generate Your Barcoded Documents

Once your workflow is configured, you have two ways to generate documents with barcodes. Choose the method that best fits your need for manual control versus full automation.

Method 1: Button-Triggered Generation

Use this method for manual control over when a barcoded document is generated.

  1. In TypeFlow, scroll to the bottom of the page and click on "Classic Implementation"

  2. Copy the URL, it should look like this: "https://app.typeflow.us/api/generate-doc?record_id="&RECORD_ID()&"&table_id=xxx&flow_id=xxx"

TypeFlow Classic Implementation section displaying the API URL with record_id parameter for button-triggered barcode document generation
  1. Go to your Airtable table and add a new button field
Airtable interface showing Add Field menu with Button field type selected for creating barcode document generation button
  1. Paste the URL from TypeFlow to the URL Formula
Airtable button field configuration dialog showing URL formula field where TypeFlow API endpoint is pasted for barcode generation

Now whenever you want to generate a document with barcodes, click the button in Airtable and it will generate the PDF for you.

Method 2: Fully Automated Generation

This method removes all manual work, generating barcoded documents automatically based on conditions you set. It requires a paid Airtable plan for Airtable Automations.

  1. Go to Automation in Airtable

  2. Click on "Add a trigger" and choose When a Record matches a condition

  3. Select the table and field you want to trigger the automation on (e.g., when Status changes to "Ready")

Airtable Automation trigger configuration showing condition to trigger barcode document generation
  1. Click on Add an advanced logic or action

  2. Pick Run Script. A new popup appears.

  3. Go back to TypeFlow and select Automation in Airtable. Copy the script.

  4. Paste the script in the popup.

Airtable Run Script action dialog showing TypeFlow automation script pasted into the code editor for barcode generation
  1. In the left-side of the popup, do not forget to configure the variable input, record_id. You need to select Airtable Record ID from the dropdown.
Airtable script configuration panel showing record_id variable mapped to Airtable Record ID from the automation trigger
  1. Test your script, and see if it works. Adjust if needed (most of the time the error comes from the record_id variable - see step 8).
Airtable automation test results showing successful execution with green checkmark and barcode document generation confirmation

Now your automation is ready. Documents with barcodes generate automatically whenever a record matches your trigger conditions.

Bulk Generation

You can also generate barcoded documents for multiple records at once using the TypeFlow Airtable extension. Open the extension, select your flow, select records in your view, and click "Generate."

Best for: Batch printing barcode labels for inventory counts, restocking, or preparing all orders for a shift.


Barcodes on Documents - Not Just Labels

Most people think of barcodes on labels. But barcodes belong on many document types.

QC Spec Sheets with Product Barcodes

Food companies generate Quality Control policy documents with UPC barcodes and GS1-128 traceability codes. One of our customers generates QC spec sheets for each product SKU - with an EAN-13 for the retail barcode and a GS1-128 for the PTI (Produce Traceability Initiative) code. Both barcodes are generated from Airtable fields in one PDF.

Certificates of Conformity with Batch Barcodes

Manufacturing companies include lot and batch barcodes on certificates. A Code 128 barcode with the batch number lets inspectors scan the certificate and pull up the production record. See our Certificate of Conformity guide.

Shipping Documents with Tracking Barcodes

Logistics teams add Code 128 tracking barcodes to bills of lading and packing lists. The carrier scans the barcode at each checkpoint. See our shipping document guide and packing list guide.

Invoices with Order Barcodes

Order number barcodes on invoices speed up warehouse processing. The receiving team scans the barcode to match the invoice to the shipment. No manual lookup.

Product Labels with EAN-13

Retail product labels with scannable UPC barcodes. Print from Avery sheets or thermal printers (Zebra, DYMO). See our product label guide with barcodes for a complete walkthrough, or our label printing guide for all label types.

Automate your document generation

Start with 20 free documents. Built for businesses using Airtable.

Start now

GS1-128 for Food Traceability

This section is for food manufacturers, distributors, and produce companies that need GS1-128 barcodes for regulatory compliance.

What Is GS1-128 and Why Food Companies Need It

GS1-128 is Code 128 with structured data. It uses Application Identifiers (AIs) to encode product identity, dates, and lot information in a single barcode.

The FDA FSMA Traceability Rule requires food companies to include traceability data on cases of listed foods. GS1-128 barcodes are the standard way to encode this data.

Common Application Identifiers:

AIMeaningFormatExample
(01)GTIN (product identifier)14 digits10699058983976
(13)Pack dateYYMMDD250123
(10)Lot/batch numberUp to 20 charsMU01123456
(17)Expiry dateYYMMDD260630
(21)Serial numberUp to 20 charsSN00001234

How to Structure GS1-128 Data in Airtable

Create a formula field that concatenates the AIs with your data fields:

"(01)" & {GTIN} & "(13)" & DATETIME_FORMAT({Pack Date}, "YYMMDD") & "(10)" & {Lot Number}

This produces: (01)10699058983976(13)250123(10)MU01123456

Store this in a field called something like GS1-128 Barcode Data.

Generating the GS1-128 Barcode

In your template, add:

{{barcode:GS1-128 Barcode Data}}

In the mapping, select the formula field and choose Code 128 as the barcode type. GS1-128 uses Code 128 symbology.

PTI Compliance for Produce

The Produce Traceability Initiative requires specific GTIN formats on produce cases. The PTI barcode must include:

  • (01) - Case GTIN (14 digits, starts with indicator digit)
  • (13) - Pack date (YYMMDD)
  • (10) - Lot number (must match the lot on the physical label)

If you pack produce at the grower level, the lot format is typically: MU + Grower Code + Julian Date. If packed at a facility, it's: MU + Location ID + Run Number.


Common Issues and Solutions

Barcode Not Rendering

The field name in {{barcode:FieldName}} must match your Airtable field name exactly. It's case-sensitive. Double-check the spelling in your mapping.

Also verify the field has data. An empty field produces no barcode.

EAN-13 Wrong Number of Digits

EAN-13 needs exactly 13 digits. If you have 12 digits (UPC-A format), add a leading 0. The check digit at the end calculates automatically if you provide 12 digits.

If your field has spaces or dashes (like 699 058 05066 4), remove them. The barcode generator needs a clean number string.

Barcode Too Large or Too Small

Adjust the container size in your template CSS. The barcode scales to fit its container:

.barcode-area {
  width: 200px;
  text-align: center;
}

GS1-128 Parentheses in the Barcode

The parentheses around AIs - (01), (13), (10) - are for human reading only. They appear in the text below the barcode but are not encoded in the barcode data itself. The barcode uses FNC1 characters to separate data elements.

If your barcode scanner reads the data without parentheses, that's correct behavior.


Start Generating Barcodes from Airtable

Create a free TypeFlow account, connect your Airtable base, and generate your first barcode in under 5 minutes. No barcode software to install. No middleware to configure.

Automate your document generation

Start with 20 free documents. Built for businesses using Airtable.

Start now

Frequently Asked Questions

Find answers to the most common questions about this feature.

No. Airtable has a Barcode field that scans barcodes via camera, but it cannot generate barcode images. You need a tool like TypeFlow to generate printable barcodes from your Airtable data.
With TypeFlow, you can generate EAN-13 (retail products), Code 128 (logistics, SKUs), and QR codes (asset tracking, URLs) directly from any Airtable text or number field.
Yes. Create a formula field in Airtable that concatenates your GTIN, pack date, and lot number with Application Identifiers. Then map that field to a barcode placeholder and select Code 128 as the type.
No. TypeFlow generates barcodes at PDF render time. No Bartender, NiceLabel, or other external barcode software needed.
Yes. Barcodes work on any TypeFlow template - QC spec sheets, invoices, certificates, shipping documents, reports. Not limited to labels.
Use TypeFlow's bulk generation feature in the Airtable extension. Select records, click generate, and all labels with barcodes are created at once. See our label printing guide for details.

All Questions

Need more help?

Our team is here to help you solve all your problems and answer your questions.

Contact Us
Kevin Rabesaotra

Kevin from TypeFlow

Author

Kevin Rabesaotra is a growth engineer and automation specialist with 8+ years of experience building no-code solutions. As Founder & CEO of TypeFlow, he has helped hundreds of businesses automate document generation and streamline workflows with Airtable integrations. Previously, Kevin was a Product Lead specializing in growth engineering, running experiments to drive revenue, retention, and lead generation.

Was this page helpful?