HomeConversionHex to decimal0x09 hex to decimal

0x09 Hex to Decimal

The hexadecimal value 0x09 equals 9 in decimal. Below you'll find the step-by-step conversion, binary equivalent, ASCII meaning, programming examples, and more.

Quick Answer
0x09 = 9 in decimal
Hexadecimal 09 (base 16) equals 9 (base 10)
Hexadecimal
0x09
Decimal
9
Binary
00001001
Octal
11
ASCII
TAB (\t)
Hexadecimal Input (Base 16)
Decimal Result (Base 10)
Binary Result (Base 2)
Hex: 09 Position 1 (digit 0): 0 × 16¹ = 0 Position 0 (digit 9): 9 × 16⁰ = 9 Sum: 0 + 9 = 9 0x09 = 9 in decimal

What Is 0x09 in Hexadecimal?

0x09 is a hexadecimal (base-16) number. The 0x prefix is a standard notation used in programming to identify hexadecimal values. The actual hex digits are 09.

In the hexadecimal number system, each digit represents a power of 16. The available digits are 0–9 and A–F, where A = 10, B = 11, C = 12, D = 13, E = 14, and F = 15.

Since both digits in 09 are within the 0–9 range, this is one of the simpler hex values to convert — it looks the same as a regular decimal number, but the calculation method is different because the base is 16, not 10.

How to Convert 0x09 to Decimal: Step-by-Step

Converting hexadecimal to decimal uses a positional notation formula. Here's exactly how to convert 0x09 to decimal:

The Formula

Decimal = d₁ × 16¹ + d₀ × 16⁰

Where d₁ is the leftmost digit and d₀ is the rightmost digit.

Step 1: Identify Each Digit

The hex number 09 has two digits:

Step 2: Multiply by Powers of 16

0 × 16¹ = 0 × 16 = 0 9 × 16⁰ = 9 × 1 = 9

Step 3: Add the Results

0 + 9 = 9

Therefore, 0x09 in hexadecimal = 9 in decimal.

Why Does 0x09 Equal 9?

In this specific case, since the left digit is 0, the 16¹ position contributes nothing. The entire value comes from the rightmost digit (9), which sits in the 16⁰ (ones) position. This makes 0x09 one of the hex values where the decimal result matches the hex digits — but only because the value is below 10. For hex values 0A (10) and above, the decimal result starts to diverge.

0x09 in Other Number Systems

Here's how 0x09 looks in every common number base:

Number SystemBaseValue
HexadecimalBase 1609
DecimalBase 109
OctalBase 811
BinaryBase 200001001

0x09 to Binary Conversion

Each hex digit maps to exactly 4 binary bits:

0 → 0000 9 → 1001 0x09 = 00001001 in binary

This binary value 00001001 represents the decimal number 9: the 2³ bit (8) and the 2⁰ bit (1) are set, giving 8 + 1 = 9.

0x09 to Octal Conversion

To convert 0x09 to octal, first convert to decimal (9), then divide by 8:

9 ÷ 8 = 1 remainder 1 Read remainders bottom-up: 11 (octal)

What Is 0x09 in ASCII? (Horizontal Tab)

In the ASCII character table, 0x09 (decimal 9) represents the Horizontal Tab (HT) character. This is a non-printable control character — it doesn't display as a visible symbol on screen.

What Does the Tab Character Do?

The horizontal tab character advances the cursor to the next tab stop position. In most systems, tab stops are set at every 8 characters, though many editors use 4 spaces. It's one of the most commonly used control characters.

How Is It Written in Code?

In almost every programming language, the tab character is represented by the escape sequence \t:

Various// Tab character escape sequences C/C++: '\t' or "\t" Python: '\t' or "\t" JavaScript: '\t' or "\t" Java: '\t' or "\t" C#: '\t' or "\t"

ASCII Control Characters Near 0x09

HexDecimalASCIIDescription
0x077BELBell (alert beep)
0x088BSBackspace
0x099HTHorizontal Tab ← this one
0x0A10LFLine Feed (new line)
0x0B11VTVertical Tab
0x0D13CRCarriage Return

Together, 0x09 (tab), 0x0A (line feed), and 0x0D (carriage return) are the three most commonly encountered whitespace control characters in programming and text processing.

How to Convert 0x09 to Decimal in Programming Languages

Here's how you handle the hex value 0x09 in popular programming languages:

Python

Python# Method 1: Using int() with base 16 result = int('09', 16) print(result) # Output: 9 # Method 2: Hex literal value = 0x09 print(value) # Output: 9 # Method 3: Using the 0x prefix string result = int('0x09', 16) print(result) # Output: 9

JavaScript

JavaScript// Method 1: parseInt with radix 16 let result = parseInt('09', 16); console.log(result); // Output: 9 // Method 2: Hex literal let value = 0x09; console.log(value); // Output: 9 // Method 3: Number() with 0x prefix let num = Number('0x09'); console.log(num); // Output: 9

Java

Java// Method 1: Integer.parseInt with radix int result = Integer.parseInt("09", 16); System.out.println(result); // Output: 9 // Method 2: Hex literal int value = 0x09; System.out.println(value); // Output: 9

C / C++

C/C++// Method 1: Hex literal int value = 0x09; printf("%d\n", value); // Output: 9 // Method 2: strtol for string conversion long result = strtol("09", NULL, 16); printf("%ld\n", result); // Output: 9

C#

C#// Method 1: Convert.ToInt32 int result = Convert.ToInt32("09", 16); Console.WriteLine(result); // Output: 9 // Method 2: Hex literal int value = 0x09; Console.WriteLine(value); // Output: 9

PHP

PHP// Method 1: hexdec function $result = hexdec('09'); echo $result; // Output: 9 // Method 2: intval with base 16 $result = intval('09', 16); echo $result; // Output: 9

Where Is 0x09 Used in the Real World?

The hex value 0x09 appears in many contexts across computing and programming:

📝

Text Files & CSV Data

Tab-separated values (TSV) files use 0x09 as the column delimiter between data fields.

🖥️

Terminal & Console

The tab character aligns output in columns when printing formatted data to the terminal.

📊

Spreadsheet Imports

When pasting tabular data, 0x09 tells the spreadsheet to place data in the next column.

🔍

Hex Editors

When inspecting files in a hex editor, you'll frequently see 09 bytes representing tab characters.

🌐

HTML & Web

In HTML, 0x09 is treated as whitespace. It can also be written as the entity 	 or 	.

🔐

Data Protocols

Many network protocols and data formats use 0x09 as a field separator or whitespace token.

Hex Values Near 0x09 — Comparison Table

Here's a handy reference showing hex values around 0x09 and their decimal, binary, octal, and ASCII equivalents:

HexDecimalBinaryOctalASCII
0x000000000000NUL
0x011000000011SOH
0x022000000102STX
0x033000000113ETX
0x044000001004EOT
0x055000001015ENQ
0x066000001106ACK
0x077000001117BEL
0x0880000100010BS
0x0990000100111HT ◄
0x0A100000101012LF
0x0B110000101113VT
0x0C120000110014FF
0x0D130000110115CR
0x0E140000111016SO
0x0F150000111117SI
0x10160001000020DLE

What Does the 0x Prefix Mean?

The 0x prefix is a widely recognized convention in programming that marks a number as hexadecimal. It originated in the C programming language and is now used across virtually all modern languages.

Why 0x?

The prefix uses 0 (which signals a non-decimal literal in many languages) followed by x (for hexadecimal). This prevents ambiguity — without it, the number 09 might be interpreted as decimal 9 or even cause an error in languages that treat leading-zero numbers as octal.

Other Hex Notations

NotationExampleUsed In
0x prefix0x09C, C++, Java, JavaScript, Python, C#
# prefix#09HTML/CSS color codes
h suffix09hAssembly language (Intel syntax)
$ prefix$09Pascal, Motorola assembly
&H prefix&H09Visual Basic
16# prefix16#09#Ada, VHDL

0x09 — Signed vs. Unsigned Interpretation

For the value 0x09, the signed and unsigned interpretations are identical because the most significant bit is 0.

As an 8-bit Value (Byte)

Unsigned: 0x09 = 9 Signed: 0x09 = 9 Binary: 00001001 MSB (bit 7) = 0 → positive number

In 2's complement representation, any byte where the most significant bit (MSB) is 0 is positive, and its signed value equals its unsigned value. Since 0x09 = 00001001, the MSB is 0, so the signed value is also 9.

Bit-Level Breakdown

Bit Position76543210
Binary Value00001001
Power of 21286432168421
Contribution00008001

Total: 8 + 1 = 9

Frequently Asked Questions About 0x09

0x09 in decimal is 9. The 0x prefix indicates hexadecimal notation, and the value 09 in base 16 equals 0 × 16 + 9 × 1 = 9 in base 10.

0x09 in binary is 00001001. Each hex digit converts to 4 bits: 0 → 0000, 9 → 1001.

0x09 is the Horizontal Tab (HT) character in ASCII. It's a non-printable control character represented in code as \t. It moves the cursor to the next tab stop, typically every 4 or 8 characters.

The 0x prefix is a notation convention from the C programming language that marks a number as hexadecimal (base 16). It's now universally used in C, C++, Java, JavaScript, Python, and many other languages. So 0x09 means "the hex number 09."

Yes, 0x09 equals decimal 9. For hex values 0x00 through 0x09, the decimal equivalent matches the hex digits. Starting from 0x0A (decimal 10), hex and decimal values begin to diverge because hex uses letters A–F for values 10–15.

0x09 in octal is 11. Convert to decimal first (9), then to octal: 9 ÷ 8 = 1 remainder 1, so octal = 11.

In Python, use int('09', 16) which returns 9. You can also use int('0x09', 16) or simply write the hex literal 0x09 directly in your code — Python automatically treats it as the integer 9.

In JavaScript, use parseInt('09', 16) which returns 9. Or use the hex literal 0x09 directly. You can also use Number('0x09') to get 9.

No. 0x09 is a non-printable control character (Horizontal Tab). ASCII printable characters start at 0x20 (space, decimal 32) and go through 0x7E (tilde ~, decimal 126). All values below 0x20 are control characters.

In terms of value, they are the same — both equal 9. The difference is notation: 0x09 explicitly indicates hexadecimal (base 16), while 9 without a prefix is assumed to be decimal (base 10). In programming, using 0x09 makes your intent clear when working with hex values, bit masks, or byte-level data.

See Also

Number Conversion