Number systems toolkit

Number Base Converter & Binary Tools

Convert numbers between bases 2 and 36, encode and decode Gray code, inspect IEEE 754 floating-point values, explore packed BCD, and interpret 8-bit two's complement numbers. Calculations run in your browser.

01

Base-N Number Converter

Convert signed integers between binary, octal, decimal, hexadecimal and any supported base from 2 to 36.

Converted value
45
02

Binary to Gray Code

Convert a binary integer to reflected binary Gray code, in which adjacent values differ by only one bit.

Gray code (binary)
1110
03

Gray Code to Binary

Decode a Gray-code bit string into its corresponding binary number and decimal value.

Binary
1011
Decimal
11
04

Decimal to BCD Converter

Encode each decimal digit separately as a four-bit Binary-Coded Decimal (BCD) nibble. This is different from ASCII encoding.

BCD groups
0010 0000 0010 0110
05

IEEE 754 Float Converter (32-bit)

Inspect the IEEE 754 single-precision representation of a number: sign bit, 8-bit exponent, 23-bit fraction and full bit pattern.

32-bit pattern
01000001010010000000000000000000
06

8-bit Two's Complement Decoder

Interpret an 8-bit pattern as a signed two's-complement integer. The most significant bit indicates the sign.

Signed decimal value
-3

How these number tools work

Each tool represents numbers in a different way. Choose the right representation for your programming, mathematics, digital electronics or computer-science task.

Frequently asked questions

Can I convert hexadecimal to binary?

Yes. Select base 16 as the input base and base 2 as the output base in the Base-N converter.

Is Gray code the same as binary?

No. Gray code is a different encoding of integer values. Consecutive values in reflected binary Gray code differ by one bit.

Is BCD the same as ASCII?

No. BCD encodes each decimal digit as a four-bit group. ASCII represents text characters using character codes, conventionally seven bits or stored in eight-bit bytes.

Why can the IEEE 754 result differ from the input?

Many decimal fractions cannot be represented exactly in binary floating point. A 32-bit single-precision value may therefore be rounded to the nearest representable value.

Are my numbers sent to a server?

The conversions on this page run in your browser using JavaScript; the tool code does not submit the entered values to a conversion API.