ESC/POS command reference › GS V
GS V (1D 56): cut the paper (full or partial)
1D 56 00 is a full cut, 1D 56 01 a partial cut. 1D 56 41 n and 1D 56 42 n feed to the cutter first, then cut.
| ASCII | GS V m [n] |
| Hex | 1D 56 m [n] |
| Decimal | 29 86 m [n] |
Parameters
m | 0 or 48 = full cut, 1 or 49 = partial cut at the current position. 65 = feed, then full cut; 66 = feed, then partial cut. |
n | only for m = 65 or 66: extra feed before the cut, 0 to 255 units. |
What it does
A partial cut leaves a small strip uncut, so the receipt hangs from the printer instead of dropping. A full cut separates it.
The cutter sits a little past the print head, so a cut straight after the last line goes through that line. Feed first (Thermalink sends ESC d 3 then GS V 0 or GS V 1), or use m = 65 or 66, which feed to the cutting position themselves.
Libraries pick different forms: python-escpos sends 1D 56 00 / 1D 56 01; escpos-php's cut() sends 1D 56 41 03 (full) or 1D 56 42 03 (partial) by default.
Example
Feed three lines, partial cut, then the next receipt starts.
4C 61 73 74 20 6C 69 6E 65 0A 1B 64 03 1D 56 01 4E 65 78 74 20 72 65 63 65 69 70 74 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 | "Last line" | 4C 61 73 74 20 6C 69 6E 65 |
| ESC d | Print and feed 3 lines | 1B 64 03 |
| GS V | Partial cut | 1D 56 01 |
| Text | "Next receipt" | 4E 65 78 74 20 72 65 63 65 69 70 74 |
Sending it from code
JavaScript (bytes)
const fullCut = [0x1b, 0x64, 3, 0x1d, 0x56, 0];
const feedAndPartialCut = [0x1d, 0x56, 66, 0];PHP with escpos-php
$printer->cut(); // 1D 56 41 03
$printer->cut(Printer::CUT_PARTIAL); // 1D 56 42 03Python (raw bytes)
data += b"\x1b\x64\x03\x1d\x56\x00" # feed 3 lines, full cut
Common mistakes
- Cutting through the last line because there was no feed before
GS V 0. - Debugging the bytes on a printer that has no cutter. Check the model has one first.
- Mixing up 0x41 and 0x01:
1D 56 41needs one more byte (n) after it, or the printer takes your next byte as n.
Related commands
ESC d: print and feed paperESC p: open the cash drawer from a receipt printerESC @: initialize the printer
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).