ASCII Control Codes

Find a code by its name, such as tab or null, and copy the sign that stands for it.

␉Character tabulation (HT)Ready to copy

43 control codes and signs. Tap any value to copy it.

43 control codes and signs. A character and its name both copy the character. A code copies the code; keys are for typing.
CharacterNameCode pointHTML

All control codes and signs

Start here

  • Character tabulation (HT) U+2409. The sign for code 9: hex 09, ^I in caret notation, \t in C. Moves right to the next tab stop.
  • Line feed (LF) U+240A. The sign for code 10: hex 0A, ^J in caret notation, \n in C. Moves down to the next line.
  • Carriage return (CR) U+240D. The sign for code 13: hex 0D, ^M in caret notation, \r in C. Moves back to the start of the line.
  • Null (NUL) U+2400. The sign for code 0: hex 00, ^@ in caret notation, \0 in C. Does nothing; blank paper tape reads as this code.
  • Escape (ESC) U+241B. The sign for code 27: hex 1B, ^[ in caret notation. Opens an escape sequence: the bytes after it take another meaning.
  • Backspace (BS) U+2408. The sign for code 8: hex 08, ^H in caret notation, \b in C. Moves one position back.
  • Delete (DEL) U+2421. The sign for code 127: hex 7F, ^? in caret notation. On punched tape it punched out every hole, to delete a character.
  • Bell (BEL) U+2407. The sign for code 7: hex 07, ^G in caret notation, \a in C. Calls for attention.

Spaces, lines and erasing

  • Line tabulation (VT) U+240B. The sign for code 11: hex 0B, ^K in caret notation, \v in C. Moves down to the next vertical tab stop.
  • Form feed (FF) U+240C. The sign for code 12: hex 0C, ^L in caret notation, \f in C. Moves down to the top of the next page.
  • Space (SP) U+2420. The sign for code 32: hex 20. The space is a character and not a control code, so it has no caret form.

Bell, devices and other controls

  • Shift in (SI) U+240F. The sign for code 15: hex 0F, ^O in caret notation. Switches back to the usual character set.
  • Shift out (SO) U+240E. The sign for code 14: hex 0E, ^N in caret notation. Switches to another character set.
  • Device control one (DC1) U+2411. The sign for code 17: hex 11, ^Q in caret notation. Turns a device on. Also called XON.
  • Device control two (DC2) U+2412. The sign for code 18: hex 12, ^R in caret notation. Turns a device on.
  • Device control three (DC3) U+2413. The sign for code 19: hex 13, ^S in caret notation. Turns a device off. Also called XOFF.
  • Device control four (DC4) U+2414. The sign for code 20: hex 14, ^T in caret notation. Turns a device off.
  • Cancel (CAN) U+2418. The sign for code 24: hex 18, ^X in caret notation. Says that the data before it are in error or to be ignored.
  • End of medium (EM) U+2419. The sign for code 25: hex 19, ^Y in caret notation. Marks the end of the usable part of a tape.
  • Substitute (SUB) U+241A. The sign for code 26: hex 1A, ^Z in caret notation. Stands in for a character found to be invalid.

Separators

  • Information separator four (FS) U+241C. The sign for code 28: hex 1C, ^\ in caret notation. Separates files, the highest of four levels.
  • Information separator three (GS) U+241D. The sign for code 29: hex 1D, ^] in caret notation. Separates groups, the level below files.
  • Information separator two (RS) U+241E. The sign for code 30: hex 1E, ^^ in caret notation. Separates records, the level below groups.
  • Information separator one (US) U+241F. The sign for code 31: hex 1F, ^_ in caret notation. Separates units, the lowest of the four levels.

More signs for spaces, keys and codes

  • Symbol for newline U+2424. A newline of any kind, whichever codes make it.
  • Open box U+2423. Another sign for a space: Unicode notes it as a graphic for space.
  • Blank symbol U+2422. A b with a stroke: Unicode notes it as a graphic for space.
  • Symbol for delete form two U+2425. A second sign for delete, which Unicode notes as the keyboard symbol for undoable delete.
  • Symbol for substitute form two U+2426. A second sign for substitute, from ISO 2047: a question mark turned backwards.
  • Rightwards arrow to bar U+21E5. A sign for the Tab key: Unicode’s other name for it is rightward tab.
  • Downwards arrow with corner leftwards U+21B5. A sign for the Enter key: Unicode notes that it may indicate a carriage return or new line.
  • Erase to the left U+232B. Unicode’s other name for it is delete to the left key: the backspace.
  • Erase to the right U+2326. Unicode’s other name for it is delete to the right key.

How this list was compiled: Names of the control codes, and what Unicode notes about a sign, are from NamesList.txt, version 18.0 (unicode.org), and the signs from UnicodeData.txt 18.0 (unicode.org). What each code does, and the groups, follow Wikipedia’s C0 and C1 control codes (en.wikipedia.org), restated. That a sign is its code plus hex 2400 is from en.wikipedia.org. Caret notation, the C escapes, the two newlines, the bell and the end of a C string follow Wikipedia: en.wikipedia.org, en.wikipedia.org, en.wikipedia.org, en.wikipedia.org, en.wikipedia.org and en.wikipedia.org. All read on November 24, 2026 and November 25, 2026. License: own work for the selection, names, drawings and notes; Unicode and CLDR data under the Unicode License v3, unicode.org

How it works

ASCII control codes are 33 of the 128, 0 to 31 and 127: actions and signals such as a tab or the end of a text, with no character to print. Each has a row and a sign to copy.

Read the full guide

Copying a sign is not copying the code

␉ is a character that looks like the letters HT and marks where a tab is; pasting it does not move the cursor. For a real ASCII tab character press the Tab key in a text editor (in a web form that key moves to the next field), and for a newline press Enter. For lines that break in the wrong place, use remove line breaks.

Caret notation

A control code can be written as a caret and a letter: ^A is 1, ^B is 2 and ^M is 13. ^@ is 0, the ASCII null, and ^? is 127. In the C language eight of them have a backslash form, from \0 to \r.

  • Each sign is its code plus hex 2400: tab, 09, is ␉, U+2409. Only delete is not: ␡ is U+2421.
  • Unicode calls the slanted letters of these signs only exemplary, so a font may draw a sign another way.

Questions and answers

What is the ASCII code for a tab?

9, or hex 09. It is ^I in caret notation and \t in C. Unicode names the character Character tabulation, and ␉ is the sign for it.

Is an ASCII newline a line feed or a carriage return?

Either or both. ASCII line feed is 10 and ASCII carriage return is 13. Unix ends a line with 10, Windows with 13 and then 10, and the classic Mac OS used 13 alone. ␤ is a sign for a newline of any kind.

What is the ASCII null character?

Code 0, the first of the 128. It prints nothing, and in C it marks the end of a string. ␀ is the sign that shows where one is.

What is the ASCII bell?

Code 7, ^G in caret notation. It was sent to ring a bell on the machine at the other end. Its sign is ␇.

What are the codes for backspace, escape and delete?

ASCII backspace is 8, escape is 27 and delete is 127, the last code. Their signs are ␈, ␛ and ␡. The Backspace and Delete keys have signs of their own, ⌫ and ⌦.