Skip to main content

Create Barcode in Zapier

What this action does

PDF4me — Create Barcode generates a standalone barcode or QR code image from any text or dynamic Zap data and returns it as a Base64-encoded file. Choose from six formats — QR Code, Data Matrix, Code128, Aztec, HanXin, and PDF417 — and encode order numbers, product URLs, tracking IDs, or any alphanumeric data automatically. No source PDF is required; the barcode is produced from scratch and can feed directly into storage, email, or a downstream PDF embedding step.

Authenticating Your API Request

Every PDF4me action in Zapier requires a valid Connection. Create or select one that holds your PDF4me API key so the Zap can authenticate barcode generation requests securely.

Important Facts You Should Not Miss

Both fields are required
Barcode Type and Text are both required. Barcode Type determines the encoding standard, and Text carries the actual data to encode. Leaving either blank causes the action to fail without producing output.
Output is Base64, not a file URL
The File Content output field contains Base64-encoded image data, not a URL. To get a downloadable file, pass the Base64 value directly into a storage action — Google Drive Upload File, Dropbox Upload File, or similar — in the next Zap step.
Map dynamic data from prior steps
The Text field supports Zapier's field mapping. Click the + icon and select any output from a prior step — order ID from Shopify, row value from Google Sheets, or a contact field from HubSpot — to generate a unique barcode per record automatically.
PDF4me Create Barcode action in Zapier showing Barcode Type set to QR Code and Text mapped from a prior Zap step

Barcode Type selects the encoding format; Text is mapped from any prior step — an order ID, URL, SKU, or any alphanumeric value.

Parameters

Required: Both Barcode Type and Text must be provided for the action to generate a barcode.

ParameterRequiredWhat it doesExample
Barcode TypeYesFormat of the barcode to generate. Options: QR Code, Data Matrix, Code128, Aztec, HanXin, PDF417 — plus 150+ additional types.QR Code
TextYesData to encode into the barcode. Map a dynamic value from a prior Zap step — order number, URL, SKU, asset ID, or any alphanumeric string.ORDER-2024-00123

Output Fields

FieldDescription
File ContentBase64-encoded barcode image — pass to Google Drive, Dropbox, Gmail, or any storage/email step

Quick Setup

  1. Add PDF4meCreate Barcode to your Zap.
  2. Select Account (or click Connect a new account and enter your API key).
  3. Choose Barcode Type from the dropdown — e.g., QR Code for links, Code128 for inventory labels.
  4. Map Text to the dynamic field you want to encode — e.g., {{Order Number}} from Shopify.
  5. Add a follow-up step — save the File Content to Google Drive, attach it to a Gmail message, or pass it to Add Barcode or QR Code to PDF for embedding.

Workflow Examples

Workflow ExamplesCommon Zapier patterns using PDF4me Create Barcode.
E-commerce order tracking QR codes
  1. Shopify trigger fires on new order.
  2. PDF4me Create Barcode runs with Barcode Type set to QR Code and Text mapped from Order Number.
  3. Gmail attaches the Base64 barcode image to the order confirmation email.
  4. Google Drive saves the barcode image to the /Order Barcodes/ folder for records.
Inventory product label generation
  1. New row added to Google Sheets (product register) triggers the Zap.
  2. PDF4me Create Barcode encodes the SKU value into a Code128 barcode.
  3. PDF4me Add Barcode or QR Code to PDF embeds it into the label template PDF.
  4. Dropbox saves the labeled PDF to /Product Labels/ for the warehouse team.
Event ticket QR code distribution
  1. New registration in Eventbrite triggers the Zap.
  2. PDF4me Create Barcode generates a QR Code from the Attendee ID and Event Name.
  3. PDF4me Fill a PDF Form embeds the QR code into the ticket template.
  4. Gmail emails the completed ticket PDF to the attendee automatically.

Frequently Asked Questions

Which barcode formats are supported?+
QR Code, Data Matrix, Code128, Aztec, HanXin (Chinese national standard 2D code), and PDF417 are the primary formats. The full library includes 150+ types covering retail (EAN13, UPC-A), logistics (GS1-128, ITF-14), and healthcare (HIBC, GS1 DataBar). Select the appropriate type from the Barcode Type dropdown.
How do I use the Base64 File Content output in a next step?+
Map the File Content field from this action into any Zapier step that accepts Base64 file input — Google Drive (Upload File), Dropbox (Upload File), Gmail (attachment), or OneDrive (Create File). Most storage apps accept Base64 directly as file content.
Can I encode a full URL into a QR code?+
Yes. Enter the full URL in the Text field — for example, https://yoursite.com/track?order=12345. For very long URLs, use a URL shortener first to keep the QR code dense enough to scan at small print sizes.
What is the character limit per barcode type?+
QR Code handles up to 4,296 alphanumeric characters. Code128 supports up to 255. DataMatrix and PDF417 handle large payloads. Linear formats like EAN13 and UPC-A have fixed-length numeric constraints defined by their respective standards.
Does this action require a source PDF?+
No. Create Barcode generates a standalone barcode image from scratch — no source document is needed. To embed the barcode into an existing PDF, use the separate Add Barcode or QR Code to PDF action in the next Zap step.

Get Help