AND Binary Values
AND any number of binary values at once and read the result in decimal and binary.
What this page computes
Paste one binary value per line and the page ANDs them position by position: a bit survives only where every input has a 1 there. The result is printed in decimal and in binary, with the input count and the widest bit length beside it.
Where it stops
The operands are read as BigInt rather than 32-bit words, so a value above bit 31 is not silently truncated. A line containing anything other than 0 and 1 is refused by its line number instead of being read as zero, and an empty box is refused.
Why the answer repeats
The whole calculation is JavaScript in this tab: nothing is uploaded, nothing is stored, and reloading the page then pasting the same lines prints the same digits.
Bitwise AND of any number of binary values, computed position by position and printed in decimal and binary. Values are read as BigInt so no bit above 31 is lost; a line holding anything but 0 and 1 is refused by line number.
How to use it
Paste one value per line and press Run. A 0b prefix is allowed and blank lines are skipped. The first line is the decimal AND with its binary spelling, the second names the input count and the widest width.
The arithmetic
Position i of the answer is 1 only when position i of every input is 1. BigInt is used because the familiar 32-bit & operator would drop the high bits of a long mask without any warning.
What to Expect
Best for
- checking a network mask
- ANDing several bit strings at once
What this tool keeps
- the decimal AND, its binary spelling and the input widths
Sample input
1101 / 1011 / 1001 (one per line)
Sample output
AND = 9 (binary 1001) Inputs = 3 value(s), widest 4 bit(s)
Frequently asked questions
How do I use the and binary values page?
Type one binary value per line, then press Run. The answer is the AND in decimal and binary, with the number of values read.
Is anything uploaded?
No. The whole calculation runs in this tab with JavaScript: no request is made, no account is needed, nothing is stored, and the page keeps working offline once it has loaded.
What are its limits or bounds?
Every line must contain only 0 and 1, optionally behind a 0b prefix, and the box must hold at least one line. A line with any other character is refused by its line number.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.