18 in Hexadecimal — 18₁₀ = 0x12

18 in hexadecimal is 0x12. 18 requires 2 hex digits: 12. The page shows the step-by-step division method, a hex digit table, and conversions to binary (10010), octal (22), and a greyscale colour swatch....

18 → HEX

18 IN HEXADECIMAL (BASE 16)

12

18₁₀ = 0x12 = 12₁₆

Hex (base 16)

12

With prefix

0x12

Binary (base 2)

10010

Octal (base 8)

22

Single digit hex?

No

Hex digit type

Numeral

Even or odd?

Even

Divisible by 16?

No

STEP-BY-STEP — REPEATED DIVISION BY 16

Dividend÷ 16QuotientRemainderHex digit ↑
18÷ 16122
1÷ 16011

Read hex digits bottom to top: 12 = 12

FUN FACT

18 in hex is 12. 18 = 1×16 + 2 = 12₁₆. The pattern continues: 16+n = (10+n) in hex for n=0..9.

HEX REPRESENTATION

0x
1

= 1

× 16¹

2

= 2

× 16

CSS COLOUR (greyscale #121212)

#121212

rgb(18, 18, 18) — dark grey

BASE CONVERSIONS

Decimal (base 10)

Standard counting system

18

Hex (base 16)

Colours, memory addresses, encoding

0x12

Binary (base 2)

Digital computing

10010

Octal (base 8)

Unix file permissions

22

NEARBY VALUES

Created with❤️byeaglecalculator.com

HOW TO CONVERT

  1. 1

    Hexadecimal (base 16) uses digits 0-9 and letters A-F, where A=10, B=11, C=12, D=13, E=14, F=15.

  2. 2

    18 / 16 = 1 remainder 2 (2) 1 / 16 = 0 remainder 1 (1) Read hex digits bottom to top: 12

  3. 3

    The result is 12, written as 0x12 in programming notation or 12₁₆ in mathematical notation.

  4. 4

    Verify: 1 x 16^1 + 2 x 16^0 = 18. ✓

WORKED EXAMPLE

18 to hex: 18 / 16 = 1 remainder 2 (2) 1 / 16 = 0 remainder 1 (1) Read hex digits bottom to top: 12 18₁₀ = 0x12 = 12₁₆ Binary: 10010 Octal: 22

FREQUENTLY ASKED QUESTIONS

RELATED CALCULATORS

MORE NUMBER THEORY CALCULATORS

Was this calculator helpful?

Last updated: April 29, 2026 · Verified by EagleCalculator team · Eagle-eyed accuracy for every calculation.