Label Formats & Sizes
ShipEngine supports labels in three formats: pdf
, png
, and zpl
.
By default, all ShipEngine labels are 4 inches x 6 inches (correlates to 100mm x 150mm for our metric users). You can optionally specify label_layout: "letter"
to print 4x6 labels on US Letter size (8.5 inches x 11 inches) sheets when you create a label using the PDF or PNG formats. The letter
layout will accommodate two 4x6 labels on a single sheet.
Label format and size reference:
Label Format | Default Size | Description |
---|---|---|
pdf | 4" x 6" | Adobe PDF format. Also supports printing the 4" x 6" label to an 8.5" x 11" (US Letter) sheet. |
png | 4" x 6" | A PNG (portable network graphics) image file. Also supports printing the 4" x 6" label to an 8.5" x 11" (US Letter) sheet. |
zpl | 4" x 6" | Zebra Programming Language (ZPL) format, which is useful for printing with a Zebra Printer. ZPL does not support printing to 8.5" x 11" sheets. |
Label Download Options
When you purchase a label, the create label response will return label URLs in the label_download
object so you can download the labels in each of the available formats, unless you specify which label format you want in the request body (which you can do when choosing the inline
label download type).
The inline label download type will instead provide a single Base64 encoded label of the format specified in your request body. See our Downloading a Label page to learn more about label download options.
Example Label Request & Response
The following example demonstrates setting the label_layout
property to indicate a 4x6 label should be returned in the response.
Response
Notice that the label_download
object in the response includes links to download the label as pdf
, png
, and zpl
. There is also an href
field, which exists for backward compatibility purposes. We recommend that you use the other fields instead.