Skip to main content
Nastrotek

Online developer tool

Binary / Bitwise Calculator

Enter a value in any base, inspect its bits, and run AND, OR, XOR, NOT, shift, and rotate operations at 8, 16, or 32-bit width.

Value converter

Decimal

42

Hex

0x2A

Binary

00101010

Octal

052

Bits

C code

#define MASK_VALUE 0x2A
uint8_t mask_value = MASK_VALUE;

Calculator

Operations

Result

Decimal

0

Hex

0x00

Binary

00000000

Octal

000

Client-side only · nothing is uploaded

Nastrotek uses cookies for analytics and ad personalization to help us understand how the site is used. You can accept or decline non-essential cookies.