Toolvist

Number Base Converter

Convert between binary, octal, decimal, and hexadecimal.

Binary (2)
—
Octal (8)
—
Decimal (10)
—
Hexadecimal (16)
—
Custom result
—

Free Number Base Converter

The Number Base Converter switches between binary, octal, decimal, hexadecimal, and any base from 2 to 36. Type a value in one base and the others update instantly.

For text rather than numbers, Text to Binary and ASCII to Hex show the same values written in other bases.

How to use the Number Base

  1. 1 Enter a number and choose its current base — binary, octal, decimal or hexadecimal.
  2. 2 Every other base is converted at once, so you can read them side by side.
  3. 3 Check the bit-group view, which spaces the binary into nibbles or bytes for easier reading.
  4. 4 Copy whichever representation you need.

Positional radix conversion across binary, octal, decimal, and hex

The Number Base Converter converts numeric values across positional numeral systems, specifically binary (base 2), octal (base 8), decimal (base 10), and hexadecimal (base 16). Positional radix mathematics assigns weights to digits based on powers of the corresponding base.

Binary representation reflects the raw high/low physical states of computer circuits. Hexadecimal serves as human-readable shorthand for binary, grouping 4 bits (a nibble) into a single 0-F character. Octal groups 3 bits, commonly used in Unix filesystem permission masks. The converter facilitates smooth translation between low-level hardware representations and decimal numbers.

  • Translates numbers between binary (base-2), octal (base-8), decimal (base-10), and hex (base-16).
  • Facilitates low-level programming, memory address inspection, and bitwise debugging.
  • Validates numeric character inputs against permitted character sets for each base.
  • Provides continuous multi-radix output simultaneously as the user enters digits.

Frequently asked questions

Why do programmers use hexadecimal?

One hex digit maps to exactly four bits, so a byte is always two hex characters. Binary is unreadable at length and decimal does not align to byte boundaries, which makes hex the compact middle ground for memory addresses and colour codes.

How do I read a negative binary number?

Most systems use two’s complement: the most significant bit acts as a sign, and you invert every bit then add one to get the magnitude. So an 8-bit 11111111 is -1, not 255.

What is the largest number I can convert?

Values up to the safe integer limit of JavaScript, about 9 quadrillion, convert exactly. Beyond that, floating-point precision would silently round your number, so very large values need a big-integer approach.

Related Unit & Data Converters

Browse all Unit & Data Converters →

You might also need

Tools from other categories that people pair with the Number Base:

Browse the full tool directory →