Skip to main content
Z

Bitwise Calculator — AND, OR, XOR, NOT & Bit Shift Online

AND, OR, XOR, NAND, NOR, XNOR, NOT and shift operations on two BigInt operands. Results shown in decimal, binary, octal and hex at once.

Miễn phí Không cần đăng ký Chạy trên trình duyệt Tôn trọng riêng tư Updated
Dec
Bin
Oct
Hex
Dec
Bin
Oct
Hex
Result —
Dec
Bin
Oct
Hex

Cách dùng

  1. 1 Enter operands A and B in any base — prefix with 0b, 0o, 0x or paste decimal.
  2. 2 Pick an operation (AND / OR / XOR / NAND / NOR / XNOR / NOT / shifts).
  3. 3 Choose a bit width (8/16/32/64) for masked arithmetic, or Unbounded for raw BigInt.
  4. 4 Result is shown in all four bases at once. Copy the decimal form with one click.

Vì sao dùng công cụ này

  • Nine operations including unsigned right shift (>>>) synthesised for BigInt.
  • Bit-width masking matches what a C / Rust / Java compiler would do.
  • Dec / Bin / Oct / Hex shown side-by-side for A, B and result.
  • Pure browser logic, zero dependencies.

Câu hỏi thường gặp

What is the difference between >> and >>>?

>> preserves the sign bit (arithmetic shift). >>> shifts in zeros from the left (logical shift). On a fixed bit-width the difference matters; on unbounded BigInt the two collapse to the same operation for non-negative values.

Why does NOT 12 give -13 in unbounded mode?

BigInt uses two's-complement of an infinite-width integer. ~12 = -13. Switch to 32-bit width to see the masked result fffffff3.

How are NAND / NOR / XNOR computed?

They are AND / OR / XOR followed by a bitwise NOT, then masked to the selected width.

Need to convert between bases without an operation?

Use our Number Base Converter — Decimal, Binary, Octal and Hexadecimal in a live 4-row grid.

Bitwise Calculator là gì?

A Bitwise Calculator is a tool that performs bit-level operations on two operands directly in the browser. It supports AND, OR, XOR, NAND, NOR, XNOR, NOT, and shift operations, computing on BigInt values to handle large numbers, and displays each result simultaneously in decimal, binary, octal, and hexadecimal for easy inspection of the bit patterns.

Tóm tắt

Bitwise Calculator là công cụ lập trình miễn phí của Zerethon Tools. AND, OR, XOR, NAND, NOR, XNOR, NOT and shift operations on two BigInt operands. Results shown in decimal, binary, octal and hex at once. Chạy hoàn toàn trong trình duyệt — không đăng ký, không tải lên.

Danh mục
Lập trình
Giá
Miễn phí
Quyền riêng tư
Chạy trên trình duyệt
Đăng ký
Không cần

Quyền riêng tư

Dữ liệu của bạn không bao giờ rời khỏi trình duyệt trừ khi được nêu rõ. Bitwise Calculator chạy hoàn toàn phía client — không tải lên máy chủ, không ghi log, không theo dõi dữ liệu bạn nhập.

Công cụ liên quan

Build, share, and grow on Zerethon Social

Free signup. Earn points, collect achievements, and connect with creators worldwide.

Sign up free