Manipulador de bits

Visualiza e manipula bits individuais de um número.

Manipulador de bits

Manipular bits individuais

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)

Como Usar

  1. Insira sua entrada na área de texto acima
  2. Selecione as opções desejadas
  3. Clique no botão processar para ver os resultados
  4. Copie o resultado para sua área de transferência

Perguntas Frequentes

O que é Manipulador de bits?

Visualiza e manipula bits individuais de um número.

Esta ferramenta é gratuita?

Sim! Todas as ferramentas no ToolsKeeper são completamente gratuitas, sem limitações ou necessidade de cadastro.

Meus dados estão seguros?

Com certeza. Todo o processamento acontece diretamente no seu navegador. Seus dados nunca saem do seu dispositivo nem são enviados para nenhum servidor.

Ferramentas Relacionadas