Generate, embed, read and split by barcode.
One REST API for the whole barcode lifecycle: create 150+ barcode and QR types, stamp them onto any PDF, read them back with coordinates, or split a scanned batch at its barcode separators.
The Barcode API, on every platform.
Add Create Barcode as a native no-code action, or call the same operation from the REST API. Build it once, then run it everywhere.
Every barcode job, one API.
Create, embed and decode barcodes and QR codes over plain HTTPS. Every card opens its reference in the docs.
Create a barcode
Generate a standalone barcode or QR image from a single line of text. 150+ types, returned as a print-ready PNG.
Create barcode docsAdd one to a PDF
Stamp a barcode onto any page of an existing PDF, positioned to the pixel, sized in millimetres or points, at any opacity.
Add barcode docsRead them back
Decode every 1D and 2D barcode in a PDF and get its type, text and position coordinates back as structured JSON.
Read barcode docsSwiss QR bills
Generate a compliant Swiss QR payment bill, or read the structured payment data back from a scanned slip.
Swiss QR docsEPC / SEPA QR
Generate EPC QR codes for SEPA payment transfers in Power Automate, Make and Zapier.
EPC QR docsSplit by barcode
Cut a merged scan into separate files at barcode separator pages, matching Contains or Equals, cutting Before, After or removing the marker.
Split by barcode docsA scannable barcode from one line of text.
- Pick the symbology. Set
barcodeTypetoqrCode,code128,dataMatrix,pdf417,aztec,ean13,upcAand more — 150+ in all. - Encode your value. Put the data in
text;hideTextdecides whether the human-readable caption prints beneath it. - Get a print-ready PNG.
POST /api/v2/CreateBarcodereturns the barcode as a binary image, optimised for print and mobile scanning. - Scale up async. Set
async: truefor a 202 and a polling URL when you generate codes in bulk.
curl -X POST https://api.pdf4me.com/api/v2/CreateBarcode \
-H "Authorization: Basic YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"text": "PDF4me Barcode Sample",
"barcodeType": "qrCode",
"hideText": false,
"async": true
}'Stamp a barcode onto any page.
- Send the PDF and the code.
docContentis your Base64 PDF;textandbarcodeTypedefine the barcode to stamp. - Target the pages.
pagesacceptsall,1-3,1,3,5or2-, so you can brand every page or just the cover. - Place it precisely.
alignX(Left/Center/Right) andalignY(Top/Middle/Bottom), with size and margins in millimetres or points. - Fine-tune the look. Set
opacity, put the caption above or below, or useshowOnlyInPrintfor a scan mark that stays off-screen.

Barcodes and QR codes embedded into a PDF via /api/v2/AddBarcode.
Decode barcodes, then act on them.
- Decode everything on the page. Pass
barcodeType: ["all"], or list specific formats like["qrCode","code128"];pagespicks the range. - Get structured results. Each hit returns its
type, decodedtext,pageandx / y / width / heightcoordinates. - Route on the value. Use the decoded text to rename, sort or look up records in the next step of your workflow.
- Or split the whole batch. Split PDF by Barcode cuts a merged scan at separator pages. For Swiss QR invoice batches, use Split PDF by Swiss QR. Read Swiss QR returns the payment payload.
{
"barcodes": [
{
"type": "qrCode",
"text": "INV-2026-0042",
"page": 1,
"x": 100, "y": 200,
"width": 50, "height": 50
}
]
}Get your documents done.
Build it into your product with the API, automate it with no code, or use the free tools in your browser. No credit card to begin.
curl -X POST https://api.pdf4me.com/v1/ConvertToPdfFree tier · No credit card required