ESC/POS command reference › ESC E
ESC E (1B 45): bold text on a receipt printer
1B 45 01 turns bold on, 1B 45 00 turns it off. Epson calls it "emphasized" mode.
| ASCII | ESC E n |
| Hex | 1B 45 n |
| Decimal | 27 69 n |
Parameters
n | 1 = bold on, 0 = bold off. The viewer reads only the lowest bit. |
What it does
Bold stays on until you turn it off with ESC E 0, reset with ESC @, or send an ESC ! byte without bit 3 set. It applies to every character after it, across lines.
escpos-php's setEmphasis(true) writes exactly 1B 45 01, and python-escpos uses the same bytes for bold=True. Thermalink uses it for bold rows on the BIXOLON.
Example
Only the total line is bold.
49 74 65 6D 0A 1B 45 01 54 4F 54 41 4C 20 20 20 20 20 31 32 2E 35 30 0A 1B 45 00 54 68 61 6E 6B 20 79 6F 75 0A
Preview drawn in your browser by the ESC/POS viewer's engine on 80 mm paper. Letters use a similar monospace font, not the printer's own. Open this example in the viewer to edit the bytes.
How the viewer decodes these bytes
| Command | What it does | Bytes |
|---|---|---|
| Text | "Item" | 49 74 65 6D |
| ESC E | Bold on | 1B 45 01 |
| Text | "TOTAL 12.50" | 54 4F 54 41 4C 20 20 20 20 20 31 32 2E 35 30 |
| ESC E | Bold off | 1B 45 00 |
| Text | "Thank you" | 54 68 61 6E 6B 20 79 6F 75 |
Sending it from code
JavaScript (bytes)
const boldOn = [0x1b, 0x45, 0x01], boldOff = [0x1b, 0x45, 0x00];PHP with escpos-php
$printer->setEmphasis(true); // 1B 45 01
$printer->text("TOTAL 12.50\n");
$printer->setEmphasis(false); // 1B 45 00Python (raw bytes)
data = b"\x1b\x45\x01" + b"TOTAL 12.50\n" + b"\x1b\x45\x00"
Common mistakes
- Forgetting
ESC E 0: the rest of the receipt, and the next job if it does not start withESC @, comes out bold. - Mixing
ESC EwithESC !.ESC !sets bold through bit 3, so a laterESC ! 0turns off the bold you set withESC E.
Related commands
ESC !: set font, bold, size and underline in one byteESC -: underline text on a receipt printerGS B: white on black (reverse) text
Sources
- escpos-php,
Printer.php(MIT licence) - python-escpos,
constants.py(MIT licence) - Thermalink agent output, printed on a BIXOLON SRP-352plusIII (Windows 11, USB)
I wrote this page from the open-source libraries above, Thermalink's own output and tests on my BIXOLON printer. It is not copied from Epson's manual. For model-specific details see Epson's official ESC/POS reference or your printer maker's manual. Last checked 22 November 2026.
Building receipts byte by byte? Thermalink lets a web app send the receipt as JSON and prints it silently, with QR codes, logos, cut and cash drawer ($49 one-time).