🍋
Menu
🍋 Math Tools

Number Base Converter

Convert between binary, octal, decimal, hex, and any base

Free Browser-only No sign-up
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 1
  2. 2 .
  3. 3
  4. 4 E
  5. 5 n
  6. 6 t
  7. 7 e
  8. 8 r
  9. 9
  10. 10 a
  11. 11
  12. 12 n
  13. 13 u
  14. 14 m
  15. 15 b
  16. 16 e
  17. 17 r
  18. 18
  19. 19 (
  20. 20 u
  21. 21 s
  22. 22 e
  23. 23
  24. 24 0
  25. 25 b
  26. 26 ,
  27. 27
  28. 28 0
  29. 29 o
  30. 30 ,
  31. 31
  32. 32 0
  33. 33 x
  34. 34
  35. 35 p
  36. 36 r
  37. 37 e
  38. 38 f
  39. 39 i
  40. 40 x
  41. 41
  42. 42 f
  43. 43 o
  44. 44 r
  45. 45
  46. 46 a
  47. 47 u
  48. 48 t
  49. 49 o
  50. 50 -
  51. 51 d
  52. 52 e
  53. 53 t
  54. 54 e
  55. 55 c
  56. 56 t
  57. 57 i
  58. 58 o
  59. 59 n
  60. 60 )
  61. 61
  62. 62 2
  63. 63 .
  64. 64
  65. 65 S
  66. 66 e
  67. 67 l
  68. 68 e
  69. 69 c
  70. 70 t
  71. 71
  72. 72 s
  73. 73 o
  74. 74 u
  75. 75 r
  76. 76 c
  77. 77 e
  78. 78
  79. 79 a
  80. 80 n
  81. 81 d
  82. 82
  83. 83 t
  84. 84 a
  85. 85 r
  86. 86 g
  87. 87 e
  88. 88 t
  89. 89
  90. 90 b
  91. 91 a
  92. 92 s
  93. 93 e
  94. 94 s
  95. 95
  96. 96 3
  97. 97 .
  98. 98
  99. 99 V
  100. 100 i
  101. 101 e
  102. 102 w
  103. 103
  104. 104 t
  105. 105 h
  106. 106 e
  107. 107
  108. 108 n
  109. 109 u
  110. 110 m
  111. 111 b
  112. 112 e
  113. 113 r
  114. 114
  115. 115 i
  116. 116 n
  117. 117
  118. 118 a
  119. 119 l
  120. 120 l
  121. 121
  122. 122 c
  123. 123 o
  124. 124 m
  125. 125 m
  126. 126 o
  127. 127 n
  128. 128
  129. 129 b
  130. 130 a
  131. 131 s
  132. 132 e
  133. 133 s
  134. 134
  135. 135 s
  136. 136 i
  137. 137 m
  138. 138 u
  139. 139 l
  140. 140 t
  141. 141 a
  142. 142 n
  143. 143 e
  144. 144 o
  145. 145 u
  146. 146 s
  147. 147 l
  148. 148 y
  149. 149
  150. 150 4
  151. 151 .
  152. 152
  153. 153 C
  154. 154 o
  155. 155 p
  156. 156 y
  157. 157
  158. 158 a
  159. 159 n
  160. 160 y
  161. 161
  162. 162 r
  163. 163 e
  164. 164 p
  165. 165 r
  166. 166 e
  167. 167 s
  168. 168 e
  169. 169 n
  170. 170 t
  171. 171 a
  172. 172 t
  173. 173 i
  174. 174 o
  175. 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.