Number Base Converter

Convert numbers between binary, octal, decimal, hex and any base from 2 to 36. Type in any box.

FreeNo sign-upPrivate — runs in your browser
0Bits needed
0Bytes
0Decimal digits
—Sign

How to use the Number Base Converter

  1. Type a numberType in any box: decimal, binary, octal, hex or the custom base. Prefixes like 0x and 0b are fine.
  2. See every baseAll the other boxes update instantly, with digits grouped so they are easier to read.
  3. Copy the one you needPress Copy next to any box. Grouping spaces and commas are removed when copying.

Example

255 = 1111 1111 (binary) = 377 (octal) = FF (hex). It needs 8 bits, or 1 byte.

Very large numbers work too: 18446744073709551615 = FFFF FFFF FFFF FFFF, the largest 64-bit unsigned integer.

Frequently asked questions

How do I convert binary to decimal?

Each binary digit is worth twice the one to its right: 1, 2, 4, 8 and so on. Add up the values where there is a 1. For 1011 that is 8 + 0 + 2 + 1 = 11. The tool does this for you instantly.

Why is hexadecimal used in programming?

Each hex digit stands for exactly 4 bits, so one byte is always two hex digits (00 to FF). That makes hex a compact, readable way to show memory addresses, colors and binary data.

What bases are supported?

Every base from 2 to 36. Bases above 10 use the letters a to z as extra digits, so base 36 uses 0–9 and a–z.

Can it handle negative or very large numbers?

Yes. Whole numbers of any size are supported, and negative numbers are shown with a minus sign. Fractions are not supported.

Popular posts from this blog

Character Counter

Speech to Text Online

Keyboard Tester