Label Formats and Sizes
By default, all ShipEngine labels are 4x6
(4 inches x 6 inches). You can optionally specify label_layout: "letter"
to create
labels in US Letter size (8.5 inches x 11 inches) when you create a label using the PDF or PNG formats.
Format ShipEngine supports labels in three formats: pdf
, png
, and zpl
.
Size: ShipEngine PDF and PNG can print either 4"x 6" shipping labels (or 100mm x 150mm for metric users) or letter size (8.5’’x11’’).
Label Format | Size | Description |
---|---|---|
pdf | 4" x 6" (or 100mm x 150mm for metric users), or letter size (8.5’’x11’’) | Adobe PDF Format |
png | 4" x 6" (or 100mm x 150mm for metric users), or letter size (8.5’’x11’’) | A PNG (portable network graphics) image file |
zpl | 4" x 6" format ONLY | Zebra Programming Language (ZPL) format, which is useful for printing with a Zebra Printer |
Label Download Options
If you do not specify a label_format
when creating a label, you will receive multiple label URLs in the Create Label response. Label URLs remain valid for 90 days. See the Download via URL section of our Downloading a Label article to learn more.
Specify the label_download_type
as inline to streamline the label download process. The inline label download type will provide a single, Base64 encoded label in the response.
See our Downloading a Label article to learn more about
Example
The following example demonstrates setting the label_layout
when creating a label.
Notice that the label_download
object in the response includes links to download the label as pdf
, png
, and/or zpl
. There is also an href
field, which exists for backward compatibility purposes. We recommend that you use the other fields instead.