Binary / Hex / Decimal

Type a value and a base. 255 in 10 gives 255. FF in 16 gives 255. 11111111 in 2 gives 255. A whole-number read, not a fraction.

A whole-number read, not a machine float. Character code points live on ASCII / Unicode.

Input data

Results

Enter data and click Calculate.

How it works

Binary / Hex / Decimal in this calculator reads the input with a whole-number read and shows decimal. 255 in base 10 gives 255. FF in base 16 gives 255. 11111111 in base 2 gives 255. An integer, not a machine float.

Field the value field is text. The base field is 10, 16, 2, or 8. The examples take 10, 16, and 2. 255 stays 255. FF becomes 255. 11111111 becomes 255. Bin, hex, and oct sit beside that; extras keep decimal 255.

255 is not 255.0 from machine float. FF is not a colour from hex-rgb until you leave for the neighbour. 11111111 is not a CIDR mask. You type the value. The calculator does not parse a fraction.

ASCII / Unicode next door reads A as 65. HEX and RGB convert a colour. Here 255, FF, and 11111111 stay 255, a whole-number read from the chosen base.

Type 255, leave base 10, then Calculate. FF needs base 16. 11111111 needs base 2. A blank field is a number error. Not a fraction calculator.

255 in 10 gives 255. FF in 16 gives 255. 11111111 in 2 gives 255. Another base on FF breaks the read if you leave 10.

Formula

Decimal from the chosen base, then a write in 10, 2, 16, and 8. Integers only.

How to use

  1. Type 255 and leave base 10.
  2. Click Calculate. The decimal result is 255.
  3. FF at base 16 gives 255. 11111111 at 2 gives 255.
  4. A whole-number read, not a fraction.
  5. Read a character code point on ASCII / Unicode.

255 in base 10 = 255

A whole-number read. 255, FF, and 11111111 give 255. Not a machine float.

Decimal
The calculator result. 255 in base 10 stays 255. FF in 16 is also 255.
Hex
FF at the base field 16. a whole-number read gives 255, not a colour.
Binary
11111111 at base 2. The same 255, not a network mask.

Examples

Example 1

  • value 255
  • base 10

255

What is 255 in base 10? 255. A whole-number read, not a fraction.

Example 2

  • value FF
  • base 16

255

What is FF in base 16? 255.

Example 3

  • value 11111111
  • base 2

255

What is 11111111 in base 2? 255.

Related calculators

Common questions

What is 255 in base 10?

255. a read of 255 in base 10. The calculator decimal.

What is FF in base 16?

255. a read of FF in base 16.

What is 11111111 in base 2?

255. a whole-number read from base 2.

Is this a machine float?

No. A whole-number read only. A fraction does not land here.

What if FF stays in base 10?

The read fails or truncates. FF needs the base field 16.

Is 0x required on FF?

No. The calculator already strips a leading 0X. The example is plain FF.

Where is the code point for A?

On ASCII / Unicode, result 65. Here 255 from a number stays.

Is octal in the extras?

No. The select can be 8, but the three cards take 10, 16, and 2.

Does a blank field count?

No. Blank is a number error, not zero from a whole-number read.

Knowledge sources

The calculator counts bits, bytes or throughput from your numbers. Below are SI and bit definitions (NIST).

Page updated in 2026.