Programmer Calculator

See a value in every base at once, flip bits, run bitwise operations, and inspect IEEE 754 floats — all client-side.

Word size:

Value

Unsigned: 255Signed: 255

Bits (click to toggle)

All bases

HEXFF
DEC255
OCT377
BIN0000 0000 0000 0000 0000 0000 1111 1111

Bitwise operation

Prefix with 0b for binary, 0x for hex, or type a plain decimal number.

HEXF
DEC15
OCT17
BIN0000 0000 0000 0000 0000 0000 0000 1111

IEEE 754 float inspector

HEX0x3FB999999999999A
0 01111111011 1001100110011001100110011001100110011001100110011010
sign (1) exponent (11) mantissa (52)

About this tool

Low-level programming means constantly switching number bases — a value is decimal in your head, hex in the datasheet and binary when you're masking flag bits. This calculator shows a value in binary, octal, decimal and hexadecimal simultaneously and updates every representation as you type in any one of them, with a clickable bit grid so you can flip individual bits and watch the result change.

A full set of bitwise operators (AND, OR, XOR, NOT, left and right shift) computes masks and combines flags, and a selectable word size (8/16/32/64-bit) models how values wrap and how two's-complement negatives are represented on real hardware. A separate IEEE 754 inspector breaks a floating-point number into its sign, exponent and mantissa for single and double precision. Everything is computed with BigInt for exact 64-bit results, entirely in your browser.

How to use

  1. Enter a value in any base

    Type in the hex, decimal, octal or binary field — the others update instantly.

  2. Flip bits directly

    Click cells in the bit grid to toggle individual bits and see every base recalculate.

  3. Run a bitwise operation

    Enter two operands and pick AND, OR, XOR, NOT or a shift to compute a mask; results show in all bases.

  4. Inspect a float

    Use the IEEE 754 panel to see the sign, exponent and mantissa bits of a 32- or 64-bit float.

Capabilities

FeatureDetail
Multi-base viewBinary, octal, decimal, hex — all in sync
Word size8, 16, 32 or 64-bit with two's-complement wrapping
Bitwise opsAND, OR, XOR, NOT, left shift, right shift
IEEE 754Sign / exponent / mantissa for 32- and 64-bit floats
ExactnessBigInt math — no precision loss at 64 bits

All computation is client-side.

Frequently asked questions