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.
- Dec
- Bin
- Oct
- Hex
- Dec
- Bin
- Oct
- Hex
- Dec
- Bin
- Oct
- Hex
Cách dùng
- 1 Enter operands A and B in any base — prefix with 0b, 0o, 0x or paste decimal.
- 2 Pick an operation (AND / OR / XOR / NAND / NOR / XNOR / NOT / shifts).
- 3 Choose a bit width (8/16/32/64) for masked arithmetic, or Unbounded for raw BigInt.
- 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.
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
JSON Formatter
Format, validate, and minify JSON online. Free, no signup — your data never leaves your browser.
Mở công cụSQL Formatter
Format SQL queries online — beautify MySQL, PostgreSQL, SQLite, SQL Server, Oracle, and BigQuery.
Mở công cụUUID Generator
Generate UUIDs online — v1, v4, v7, and Nil. Bulk generation up to 10,000. Free, no signup.
Mở công cụPassword Generator
Generate strong, cryptographically random passwords. Configurable length and character sets — runs in your browser.
Mở công cụBuild, share, and grow on Zerethon Social
Free signup. Earn points, collect achievements, and connect with creators worldwide.