ASCII 9

CHARACTER TABULATION

Horizontal tab advances to the next tab stop on the same line.

This ASCII code is a control character and has no printable Unicode glyph.

Why one tab can occupy different widths

In 41 09 42, byte 09 is a horizontal tab between A and B. With tab stops four columns apart, expanding this sample gives A, three spaces, then B. Starting with AB instead gives 41 42 09 43: only two spaces are needed before C reaches the same stop. The stored tab still occupies one byte in each UTF-8 example.

Try bytes.fromhex("41 09 42").decode().expandtabs(4) in Python. Changing 4 to 8 gives seven spaces after A. Once a program saves that expanded string, its bytes contain spaces (20 hex) where the tab (09) used to be. In a tab-separated file, replacing tabs this way removes the column separators.

The Mnemonic button copies HT, the two-letter abbreviation. To check a tab-delimited export, inspect its bytes for 09. Compare ASCII space ยท Python tab expansion rules

ASCII values

Mnemonic
HT
Decimal
9
Hex
09
Octal
011
Binary
00001001
Category
Control character

Copy values

FormatValueAction
MnemonicHT
Decimal9
Hex09
Octal011
Binary00001001