Toolman

ASCII code for tab

9

Horizontal Tab — a control character, not printable

Decimal9
Hexadecimal0x09
Octal0011
Binary00001001
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

Every character by name · The ASCII table · Text to binary converter