Number Base Converter

Convert numbers between binary, octal, decimal, and hexadecimal instantly in your browser. Free online base converter with signed/unsigned support.

Loading calculator…

Results

Result
DetailValue
Binary
Octal
Decimal
Hexadecimal

What is this calculator for?

Convert any integer between binary, octal, decimal, and hexadecimal.

How to Use This Calculator

Enter the values below, then press Calculate (or press Enter). The calculator updates your results instantly. Try different values to see how your inputs change the outcome.

  1. Number — enter a text value. A typical Number would be e.g. 255.
  2. From base — enter a choice from the options.
  3. To base — enter a choice from the options.
  4. Review your results — the key output is highlighted, with supporting figures below.

What You'll Need

Number
a text value · required
From base
a choice from the options (Binary (2), Octal (8), Decimal (10), Hexadecimal (16)) · optional
To base
a choice from the options (Binary (2), Octal (8), Decimal (10), Hexadecimal (16)) · optional

About This Calculator

Number bases change how a value is written. Binary is base 2, octal base 8, decimal base 10, and hexadecimal base 16.

This converter parses your input in the chosen base and shows the equivalent in all four, so you can read off any representation at once. It accepts optional 0b/0o/0x prefixes for convenience.

Conversion runs entirely in your browser.

Worked Examples

Example

11111111 (Binary)

Frequently Asked Questions

Is the conversion signed?
This tool works with non-negative integers. Negative numbers and two’s-complement representations are not handled here.
What about fraction (decimal point) values?
It accepts whole numbers only. Fractions like 0.5 require special handling that is out of scope for this integer base converter.