OR Hex Numbers
Quickly calculate bitwise OR of a bunch of hex numbers. Runs entirely in your browser, so your data never leaves your device.
0 chars · 0 lines
Output
The result appears here as you type.
How to use OR Hex Numbers
- 1. Paste the operands to combine. Enter two or more hex values, separated by spaces or newlines, into the input pane. The classic demonstration is f0 with 0f, whose union of set bits fills the whole byte as ff.
- 2. Watch the bits merge. With no options to configure, all values are ORed together bitwise. A bit is set in the output when any operand sets it, which is exactly how flag constants compose in C headers.
- 3. Copy the combined value. The merged result waits in the output pane. Copy it into your register write, ioctl call or configuration file, and append more operands whenever another flag joins the set.
When to use OR Hex Numbers
OR Hex Numbers folds any number of hexadecimal values together with bitwise OR. Since flag systems everywhere, from file permissions to hardware registers, define options as OR-able constants, this tool computes the exact combined word you would get from writing FLAG_A | FLAG_B in code.
- Composing a register configuration word. A microcontroller datasheet lists ENABLE as 0x01, FAST_MODE as 0x40 and IRQ as 0x80. OR the three constants here to know the single byte your init routine must write.
- Combining permission or capability flags. An API expects a flags argument built from hex constants scattered across its docs. Paste the ones you need and get the ready-made value for your configuration file or curl call.
- Understanding a captured flags field. A packet capture shows flags 0xc3 and you suspect it is two documented constants combined. OR your candidate constants and see whether they reproduce the observed value.
- Merging feature bitmaps from several sources. Three services each report a hex capability bitmap and you need the union for a dashboard. ORing all three yields the combined capability set in one step.
Examples
OR two hex numbers
Input
f0 0f
Output
ff
OR a nibble
Input
a 1
Output
b
About the OR Hex Numbers tool
OR Hex Numbers does its work locally, right in the browser. Quickly calculate bitwise OR of a bunch of hex numbers. There is no upload step, no queue and no account, and your data never travels over the network.
It belongs to the Hex Tools collection on EditSafely, a set of 108 small, focused Hex utilities that share the same instant, private workspace.
There is nothing to configure. Provide the input and the result appears on its own. 2 worked examples further down the page show exactly what the tool produces for real inputs.
Running locally also makes the tool fast and dependable: results appear as you type or drop a file, there is no server outage that can take it down mid-task, and confidential data can be processed without a second thought.
Frequently asked questions
Is OR Hex Numbers free to use?
Yes, it is completely free. All 2,658 tools on EditSafely work without an account, a subscription or usage limits.
Is it safe to paste sensitive or confidential data?
Everything happens locally. Your browser downloads the tool's code once, then does all the processing itself; nothing you enter is transmitted, stored or logged. You can even go offline after the page loads and it will still work.
How much text can I process at once?
There is no fixed limit. Because the work happens on your own device rather than on a shared server, the practical ceiling is your machine's memory, which comfortably handles inputs far larger than typical online tools allow.
Do I need to sign up or install anything?
No. The tool works in any modern browser on desktop, tablet or phone. There is no account to create, no extension to add and no software to install.
How do I use the result?
The output panel has a one-click copy button, and you can keep refining the input while you work; the result updates in place as you type.
Related tools
All Hex Tools →AND Hex Numbers
Quickly calculate bitwise AND of a bunch of hex numbers.
XOR Hex Numbers
Quickly calculate bitwise XOR of a bunch of hex numbers.
NOR Hex Numbers
Calculate bitwise NOR of hexadecimal numbers (inverted within the widest operand's bit-width).
NOT Hex Numbers
Calculate bitwise NOT of hexadecimal numbers (each inverted within its own bit-width).