Bitwise Calculator
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
How to use
- 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.
Why use this tool
- 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.
Frequently asked questions
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 is a free developer utility by 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. Runs entirely in the browser — no signup, no upload.
- Category
- Developer
- Pricing
- Free
- Privacy
- Browser-based
- Signup
- Not required
Privacy
Your data never leaves your browser unless explicitly stated. Bitwise Calculator runs entirely client-side — no server upload, no logging, no tracking of your input.
Related tools
JSON Formatter
Format, validate, and minify JSON online. Free, no signup — your data never leaves your browser.
Open toolSQL Formatter
Format SQL queries online — beautify MySQL, PostgreSQL, SQLite, SQL Server, Oracle, and BigQuery.
Open toolUUID Generator
Generate UUIDs online — v1, v4, v7, and Nil. Bulk generation up to 10,000. Free, no signup.
Open toolPassword Generator
Generate strong, cryptographically random passwords. Configurable length and character sets — runs in your browser.
Open toolBuild, share, and grow on Zerethon Social
Free signup. Earn points, collect achievements, and connect with creators worldwide.