The Binary Calculator covers two distinct search intents:
42 becomes binary 101010, octal 52, and hexadecimal 2A.+, −, ×, ÷, AND, OR, or XOR, and read the result in binary and decimal.It is useful for learning number bases, checking bitmasks, and doing quick integer verification. It is not a signed-format, floating-point, arbitrary-precision, or full programmer-calculator replacement.
42, 101010, 52, and 2A represent the same integer.Choose the input base and enter one non-negative integer. Binary accepts 0–1, octal accepts 0–7, decimal accepts 0–9, and hexadecimal accepts 0–9 plus A–F. Hexadecimal letters are case-insensitive and are displayed in uppercase.
The input field does not parse 0b, 0o, or 0x prefixes, signs, decimal points, spaces, commas, or scientific notation. It expects a digit string for one integer, not a complete JavaScript or Python numeric literal.
It supports single-value conversion among binary, octal, decimal, and hexadecimal, plus addition, subtraction, multiplication, division, AND, OR, and XOR for two binary integers.
No. Convert mode accepts the non-negative integer characters for the selected base, and calculate mode accepts binary strings made only of 0 and 1.
The current implementation uses a floored integer quotient for non-negative integers; it does not display a fractional part or a remainder card.
Not safely. They follow JavaScript's 32-bit signed bitwise semantics, so inputs longer than 32 bits may be truncated; keep bitwise operands within 32 bits.
The page parses integers through JavaScript Number, so very long values beyond the safe-integer range can lose precision and are not suitable for arbitrary-precision work.
Convert non-negative integers between binary, octal, decimal, and hexadecimal, or apply arithmetic, AND, OR, and XOR to two binary integers.