ASCII code for tab
9
Horizontal Tab — a control character, not printable
| Decimal | 9 |
| Hexadecimal | 0x09 |
| Octal | 0011 |
| Binary | 00001001 |
| HTML entity | 	 |
| String escape | \t |
What it is
Advances to the next tab stop. The width of a tab is a display convention rather than a property of the character, which is the entire reason tabs-versus-spaces is an argument.
The full entry
ASCII 9 in full — the code point page, with what sits either side of it and how the character is encoded elsewhere.
Frequently asked questions
What is the ASCII code for tab?
The ASCII code for tab is 9 in decimal, 0x09 in hexadecimal and 0011 in octal.
What is tab in binary?
00001001 — eight bits, though ASCII only defines seven, so the top bit is always zero.
How do I write tab in a string?
Most languages accept the escape \t. Writing the raw character instead works in some contexts and breaks in others, which is what the escape exists to avoid.
Other characters
- ASCII code for newline — 10
- ASCII code for vertical tab — 11
- ASCII code for form feed — 12
- ASCII code for carriage return — 13
- ASCII code for shift out — 14
- ASCII code for shift in — 15
- ASCII code for data link escape — 16
- ASCII code for device control 1 (xon) — 17
- ASCII code for device control 2 — 18
- ASCII code for device control 3 (xoff) — 19
- ASCII code for device control 4 — 20
- ASCII code for negative acknowledge — 21
Every character by name · The ASCII table · Text to binary converter