Converters

Number Base Converter

Convert numbers between binary, octal, decimal and hexadecimal.

Results are provided for general informational use. Verify important financial, health or legal figures before relying on them.

About this Number Base Converter

The Number Base Converter changes a number written in one base into its equivalent in another base. It supports the four bases most commonly used in computing and mathematics: binary, octal, decimal and hexadecimal.

How the calculation works

The input is parsed as an integer in the source base, then rendered as a string in the target base using standard positional notation.

How to use it

  1. Enter a value and choose its current base.
  2. Choose the base you want to convert to.
  3. Select Convert to see the equivalent value.

Practical example

The decimal number 255 equals FF in hexadecimal, 377 in octal and 11111111 in binary.

Frequently asked questions

Does it support negative numbers?

Whole non-negative integers are supported.

Are hexadecimal letters case-sensitive?

No, both uppercase and lowercase letters are accepted for hexadecimal input.

Can I convert very large numbers?

Numbers are limited by standard JavaScript integer precision, which safely covers everyday use.

Keep exploring

More Converters

View category →