Sign In
Products
ZPL ViewerBarcode GeneratorImage → ZPLZPL cheat sheetLabel DesignerTemplate Gallery
Developers
API QuickstartAPI ReferenceMCP ServerBulk GenerationWebhooksSDKs & ExamplesLimitsDirectPrint agent NewGitHub ActionVS Code extensionOn-Premise
Solutions
Logistics & ShippingE-CommerceERP & WMSManufacturingRetailHealthcare & LaboratoryAll solutions
Tools
ZPL Diagnostics HubZPL DebuggerSize & DPI AnalyzerDPI ConverterBarcode fit calculatorShipping Label AnalyzerFont InspectorOrientation DebuggerCalibration AssistantPrinter Compatibility CheckerBarcode Readability CheckerPrinter Language DetectorThermal Printer Test PackZPL ToolsEPL ToolsTSPL ToolsCPCL ToolsPrinter Language ConverterAll ToolsGuidesPricing
Language
EnglishTürkçeDeutsch
Home›ZPL Command Matrix›^TB

^TB — Text Block (width and height)

Places text in a block of the given width and height with word wrap; text that does not fit is truncated, not overprinted as with ^FB.

Syntax^TBa,b,c
CategoryPositioning and text

In the preview

This command is supported by the preview engine.

Example

^TBN,400,100

Runnable example

^XA^PW609^LL406^FO40,50^A0N,30,30^TBN,520,100^FDA text block wraps inside its width and is cut off at its height, so a long name never runs into the barcode.^FS^FO40,170^BY2^BCN,80,Y,N,N^FD12345678^FS^XZ

Open this label in the editor

Parameters

ParameterDescriptionType
ablock rotation; empty = the rotation of the last ^A (or ^FW)enumOptions: N, R, I, B
bblock width in dotsintDefault: 1 · Range: 1–32000
cblock height in dots; text beyond it is truncatedintDefault: 1 · Range: 1–32000

^FO · ^FT · ^FD · ^FH · ^A · ^FB · ^FW · ^FR · ^FV · ^PA · ^CW

Try this command in the preview