ASCII Control Codes Reference

The 33 ASCII control characters — abbr, caret and escape.

Ad placeholder (leaderboard)
Enjoying the tools? Go Pro for £4.99 (one-time) and remove all ads — forever, on this device. Remove ads — £4.99

This is a searchable reference for the 33 ASCII control characters — the non-printing codes that direct terminals, printers and data streams rather than displaying a glyph. It is built for programmers, sysadmins and anyone debugging serial output, terminal escape sequences or text-encoding issues, where knowing exactly what ^C, \n or 0x1B means saves time.

How it works

The control set covers codes 0 to 31 (the C0 control set) plus DEL at 127. Each row in the table gives the decimal and hexadecimal value, the standard abbreviation, the caret notation (the Ctrl-key combination), any C-style escape sequence, the full name, and a plain-English description of its purpose. You can search by decimal value, abbreviation (like LF), name, or escape sequence (like \n) to jump straight to a code. The caret column maps keystrokes to codes — pressing Ctrl with a letter sends the corresponding control character.

Example

The most commonly referenced control codes:

DecHexAbbrCaretEscapeMeaning
000NUL^@\0Null
909HT^I\tHorizontal tab
100ALF^J\nLine feed (Unix newline)
130DCR^M\rCarriage return
271BESC^[\eEscape
1277FDEL^?Delete

Note that Unix uses LF for newlines, classic Mac used CR, and Windows uses CR LF together. Everything runs in your browser; nothing is uploaded.

Ad placeholder (rectangle)