Manipulador de bits

Obtiene, establece, limpia y alterna bits específicos en un número.

Manipulador de bits

Manipular bits individuales

Bit Manipulator

Position 0 is the rightmost (least significant) bit

Binary Representation

00000000000000000000000000101010

Set bits: 3
Not a power of 2
Decimal: 42
Hex: 0x2A

Interactive Bit View

Click on a bit to toggle it. Highlighted bit is the selected position.

28
24
20
16
12
8
4
0

Bit Operations at Position 0

Get Bit

0

Value at position 0

Set Bit (click to apply)

43

Set bit 0 to 1

Clear Bit (click to apply)

42

Set bit 0 to 0

Toggle Bit (click to apply)

43

Flip bit 0

Operation Reference

Get Bit

(n >> position) & 1

Set Bit

n | (1 << position)

Clear Bit

n & ~(1 << position)

Toggle Bit

n ^ (1 << position)

Cómo Usar

  1. Ingresa tu entrada en el área de texto de arriba
  2. Selecciona las opciones deseadas
  3. Haz clic en el botón de procesar para ver los resultados
  4. Copia el resultado a tu portapapeles

Preguntas Frecuentes

¿Qué es Manipulador de bits?

Obtiene, establece, limpia y alterna bits específicos en un número.

¿Es esta herramienta gratuita?

¡Sí! Todas las herramientas en ToolsKeeper son completamente gratuitas sin limitaciones ni registro requerido.

¿Están seguros mis datos?

Absolutamente. Todo el procesamiento ocurre directamente en tu navegador. Tus datos nunca salen de tu dispositivo ni se envían a ningún servidor.

Herramientas Relacionadas