🔢 Number Base Converter

Convert between decimal, binary, octal, hexadecimal, Roman numerals, and any base from 2 to 36.

Enter a number

Conversions for: 42 (base 10)
Decimal (Base 10)42
Binary (Base 2)101010
Octal (Base 8)52
Hexadecimal (Base 16)2A
Base 321A
Base 162A
Roman NumeralsXLII

Quick reference

Decimal 0
Bin: 0000 · Oct: 0 · Hex: 0
Decimal 1
Bin: 0001 · Oct: 1 · Hex: 1
Decimal 2
Bin: 0010 · Oct: 2 · Hex: 2
Decimal 3
Bin: 0011 · Oct: 3 · Hex: 3
Decimal 4
Bin: 0100 · Oct: 4 · Hex: 4
Decimal 5
Bin: 0101 · Oct: 5 · Hex: 5
Decimal 6
Bin: 0110 · Oct: 6 · Hex: 6
Decimal 7
Bin: 0111 · Oct: 7 · Hex: 7
Decimal 8
Bin: 1000 · Oct: 10 · Hex: 8
Decimal 9
Bin: 1001 · Oct: 11 · Hex: 9
Decimal 10
Bin: 1010 · Oct: 12 · Hex: A
Decimal 11
Bin: 1011 · Oct: 13 · Hex: B
Decimal 12
Bin: 1100 · Oct: 14 · Hex: C
Decimal 13
Bin: 1101 · Oct: 15 · Hex: D
Decimal 14
Bin: 1110 · Oct: 16 · Hex: E
Decimal 15
Bin: 1111 · Oct: 17 · Hex: F