Number Converters · Browser · Free
Binary/Decimal/Hex/Octal Converter
In Number format choose a format, set From base, enter a value into Value, and press Convert to see the results in cards below the button.
About this converter
Number format can be Number, Signed 8-bit, Signed 16-bit, Signed 32-bit or Signed 64-bit. From base can be Binary (2), Decimal (10), Hex (16) or Octal (8).
The same amount looks different in every base: 10₁₀ = 1010₂ = A₁₆ = 12₈, and 255₁₀ = 11111111₂ = FF₁₆ = 377₈.
The form computes only when the button is pressed. Results appear in cards below the button. Copy writes a result and its unit to the clipboard. Clear resets the form. Everything runs in the browser and nothing is uploaded.
Fractional values
A decimal fraction can need many digits in the other bases. Entering 0.1 with Number format set to Number and From base set to Decimal (10) returns Binary: 0.0001100110011001101, Decimal: 0.1, Hex: 0.1999999999999999999A and Octal: 0.06314631463146314632.
Those fractional results are rounded: 0.1₁₀ ≈ 0.0001100110011001101₂ ≈ 0.1999999999999999999A₁₆ ≈ 0.06314631463146314632₈.
Signed number formula
A signed format holds its value in a fixed number of bits. For example, with Number format set to Signed 8-bit and Value: -1, the expression is -1 = 2^8 - 1 = 255 = 11111111₂ = FF₁₆.
The cards report Binary: 11111111, Decimal: -1, Hex: FF and Octal: 377.
| Input | Result |
|---|---|
| Number format: Number, From base: Decimal (10), Value: 10 | Binary: 1010; Decimal: 10; Hex: A; Octal: 12 |
| Number format: Number, From base: Binary (2), Value: 1010 | Binary: 1010; Decimal: 10; Hex: A; Octal: 12 |
| Number format: Number, From base: Hex (16), Value: FF | Binary: 11111111; Decimal: 255; Hex: FF; Octal: 377 |
| Number format: Number, From base: Octal (8), Value: 400 | Binary: 100000000; Decimal: 256; Hex: 100; Octal: 400 |
| Number format: Number, From base: Decimal (10), Value: 0.1 | Binary: 0.0001100110011001101; Decimal: 0.1; Hex: 0.1999999999999999999A; Octal: 0.06314631463146314632 |
| Number format: Signed 8-bit, From base: Decimal (10), Value: -1 | Binary: 11111111; Decimal: -1; Hex: FF; Octal: 377 |