All Tools › Number Base Converter

Number Base Converter

Convert between binary, octal, decimal and hexadecimal.

Convert between number bases

Programmers work across number bases constantly: decimal for everyday numbers, binary for bits, hexadecimal for colours and memory, octal for permissions. Converting between them by hand is fiddly and error-prone. This converter takes a value in any of these bases and shows it in the others at once.

How to use it

  1. Enter a value and tell it which base the value is in.
  2. Read the equivalents in binary, octal, decimal, and hexadecimal.
  3. Copy the base you need.

Where each base appears

Questions people ask

Why is hex so common in code? Each hex digit maps neatly to four bits, so it's a compact, readable way to write binary values.

Is my input stored? No — conversion runs locally in your browser.