Base-N · Pillar Guide

Binary, Octal & Hex Calculator with Bitwise Operations

Convert between number bases and run bitwise logic — AND, OR, XOR, NOT — in one mode, with examples aimed at programmers and CS students.

fx-991ES Web TeamUpdated 23 June 20268 min read

A binary, octal and hex calculator is the programmer's everyday tool: it converts a value between bases and performs bit-level logic. Ours lives in BASE-N mode and handles all four bases plus the core bitwise operators.

On this page

  1. The four bases
  2. Converting between bases
  3. Bitwise operations
  4. Negatives & two's complement
  5. FAQ

The four bases

BaseNameDigits
2Binary (BIN)0–1
8Octal (OCT)0–7
10Decimal (DEC)0–9
16Hexadecimal (HEX)0–9, A–F

Converting between bases

Switch to BASE-N mode, choose the base you're entering, and type the number. Pick a different base to re-display the same value there.

Decimal 255 = 11111111 (binary) = 377 (octal) = FF (hex).

Decimal 13 = 1101 (binary) = D (hex).

The manual method behind this is in the decimal to binary conversion guide.

Bitwise operations

From the logical-operations menu you get AND, OR, XOR, XNOR and NOT. They act bit by bit.

12 and 10 (binary 1100 and 1010)

12 AND 10 = 1000 = 8

12 OR 10 = 1110 = 14

12 XOR 10 = 0110 = 6

What each operator does, with truth tables, is in bitwise AND/OR/XOR explained.

Negatives & two's complement

Computers store negative integers using two's complement, and BASE-N arithmetic follows the same rule. For instance, in 8-bit, −5 is 11111011.

The full method — invert and add one — is in the two's complement walkthrough.

Frequently asked questions

How do I convert between bases?

In BASE-N mode, enter the number in one base and switch the displayed base to read its equivalent.

Which bitwise operations are supported?

AND, OR, XOR, XNOR and NOT, bit by bit, from the logical-operations menu.

Does it handle hex A–F?

Yes — in HEX base, A–F represent 10–15, so FF and 1A work directly.

Convert & compute in any base

Open BASE-N mode and switch between binary, octal, decimal and hex instantly.

Open the binary & hex calculator →