4 in Hexadecimal — 4₁₀ = 0x4

4 in hexadecimal is 0x4. The number 4 is less than 16, so it maps directly to a single hex digit 4. The page shows the step-by-step division method, a hex digit table, and conversions to binary (100), octal (4), and a greyscale colour swatch....

4 → HEX

4 IN HEXADECIMAL (BASE 16)

4

4₁₀ = 0x4 = 4₁₆

Hex (base 16)

4

With prefix

0x4

Binary (base 2)

100

Octal (base 8)

4

Single digit hex?

Yes

Hex digit type

Numeral

Even or odd?

Even

Divisible by 16?

No

STEP-BY-STEP — REPEATED DIVISION BY 16

4 < 16, so it fits in a single hex digit: 4 = 4₁₆

FUN FACT

4 in hex is 4. In web colours, #444444 is a medium dark grey. 4 = 0100 in binary, taking exactly half a nibble.

HEX DIGIT TABLE (0–15)

0

0

1

1

2

2

3

3

4

4

5

5

6

6

7

7

8

8

9

9

10

A

11

B

12

C

13

D

14

E

15

F

BASE CONVERSIONS

Decimal (base 10)

Standard counting system

4

Hex (base 16)

Colours, memory addresses, encoding

0x4

Binary (base 2)

Digital computing

100

Octal (base 8)

Unix file permissions

4

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

    4 is less than 16, so it fits in one hex digit: 4 = 4.

  3. 3

    The result is 4, written as 0x4 in programming notation or 4₁₆ in mathematical notation.

  4. 4

    Verify: 4 x 16^0 = 4. ✓

WORKED EXAMPLE

4 to hex: 4 is less than 16, so it fits in one hex digit: 4 = 4. 4₁₀ = 0x4 = 4₁₆ Binary: 100 Octal: 4

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.