WebToolsPlanet
Developer Tools

OR Calculator

Compute the bitwise OR of two numbers and see the result in decimal, binary, hex, and octal instantly.

Last updated: May 29, 2026

Client-Side Processing
Input Data Stays on Device
Instant Local Execution

Find this tool useful? Support the project to keep it free!

Buy me a coffee

What is OR Calculator?

OR Calculator computes the bitwise OR operation — the result bit is 1 whenever at least one of the corresponding input bits is 1. OR is commonly used to set specific bits in a value (by ORing with a bitmask), combine flag values, and merge feature flags.

How to Use OR Calculator

1

Select input base.

2

Enter two numbers.

3

The OR result appears in all bases.

Common Use Cases

  • Setting specific bits in a register using a bitmask.
  • Combining permission flags or feature flags.
  • Merging two packed bitfield values.

Example Input and Output

12 OR 10 (decimal).

A=12, B=10
A: 12 (1100₂)
B: 10 (1010₂)
OR result
OR: 14 (1110₂)

Privacy

All calculations run locally in the browser.

Frequently Asked Questions

What does bitwise OR do?
Bitwise OR compares each bit position. The result bit is 1 when at least one input bit is 1. It is used to set specific bits while leaving others unchanged.
Is my data uploaded?
No. All calculation runs in your browser.