🍋 Math Tools
Number Base Converter
Convert between binary, octal, decimal, hex, and any base
chars
words
sentences
lines
Results
Result
About Number Base Converter
Convert numbers between any base from 2 to 36. Auto-detects 0b, 0o, 0x prefixes. Shows simultaneous binary, octal, decimal, and hexadecimal representations.
How It Works
Uses JavaScript's parseInt() to read the input in the specified base, then toString() to convert to all four bases simultaneously.
Step by Step
- 1 1
- 2 .
- 3
- 4 E
- 5 n
- 6 t
- 7 e
- 8 r
- 9
- 10 a
- 11
- 12 n
- 13 u
- 14 m
- 15 b
- 16 e
- 17 r
- 18
- 19 (
- 20 u
- 21 s
- 22 e
- 23
- 24 0
- 25 b
- 26 ,
- 27
- 28 0
- 29 o
- 30 ,
- 31
- 32 0
- 33 x
- 34
- 35 p
- 36 r
- 37 e
- 38 f
- 39 i
- 40 x
- 41
- 42 f
- 43 o
- 44 r
- 45
- 46 a
- 47 u
- 48 t
- 49 o
- 50 -
- 51 d
- 52 e
- 53 t
- 54 e
- 55 c
- 56 t
- 57 i
- 58 o
- 59 n
- 60 )
- 61
- 62 2
- 63 .
- 64
- 65 S
- 66 e
- 67 l
- 68 e
- 69 c
- 70 t
- 71
- 72 s
- 73 o
- 74 u
- 75 r
- 76 c
- 77 e
- 78
- 79 a
- 80 n
- 81 d
- 82
- 83 t
- 84 a
- 85 r
- 86 g
- 87 e
- 88 t
- 89
- 90 b
- 91 a
- 92 s
- 93 e
- 94 s
- 95
- 96 3
- 97 .
- 98
- 99 V
- 100 i
- 101 e
- 102 w
- 103
- 104 t
- 105 h
- 106 e
- 107
- 108 n
- 109 u
- 110 m
- 111 b
- 112 e
- 113 r
- 114
- 115 i
- 116 n
- 117
- 118 a
- 119 l
- 120 l
- 121
- 122 c
- 123 o
- 124 m
- 125 m
- 126 o
- 127 n
- 128
- 129 b
- 130 a
- 131 s
- 132 e
- 133 s
- 134
- 135 s
- 136 i
- 137 m
- 138 u
- 139 l
- 140 t
- 141 a
- 142 n
- 143 e
- 144 o
- 145 u
- 146 s
- 147 l
- 148 y
- 149
- 150 4
- 151 .
- 152
- 153 C
- 154 o
- 155 p
- 156 y
- 157
- 158 a
- 159 n
- 160 y
- 161
- 162 r
- 163 e
- 164 p
- 165 r
- 166 e
- 167 s
- 168 e
- 169 n
- 170 t
- 171 a
- 172 t
- 173 i
- 174 o
- 175 n
Tips
- 0b prefix = binary, 0o = octal, 0x = hexadecimal
- Hex is widely used in CSS colors, memory addresses, and encoding
- Each hex digit maps to exactly 4 binary digits (nibble)
Frequently Asked Questions
What bases are commonly used?
Binary (2) for hardware/logic, octal (8) for Unix permissions, decimal (10) for humans, hexadecimal (16) for programming and colors.
Can I use bases above 16?
Yes, up to base 36 (0-9 plus A-Z). Base 36 is sometimes used for compact URL-safe identifiers.