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.
Runs on your device, nothing uploaded
0 chars · 0 lines
Output
Quickly calculate bitwise OR of a bunch of hex numbers.
Type or paste above to see the result here.
What you paste never leaves this tab
OR Hex Numbers is JavaScript that your browser has already downloaded, and it does the whole job on your own machine. On a normal site, whatever you type in is sent to a server that can log it, cache it or keep it. Here it is read and transformed inside this tab and nowhere else.
- No upload
- No length limit
- Works offline once loaded
- Nothing stored or logged
How to use OR Hex Numbers
- 1. Enter the flags. Type the hex values to combine, such as 01 04 10, separated by spaces, new lines or |.
- 2. Pick a width. Width Auto keeps the widest operand; pick 8, 16, 32 or 64 bits for a register. The working lines up every operand in binary, so you can see which value set which bit: 01 04 10 gives 15.
- 3. Copy the result. Copy the combined mask, or its decimal and binary from the list under it.
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.
You can shape the output with 2 settings, including Width and Keep leading zeros (widest operand's width), and the result refreshes the moment you change one. 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 soon as your input does, 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,943 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; your device's memory is the ceiling. Up to 10 MB the result updates as you type, after a short pause that grows with the size. Above 10 MB a Run button appears so typing stays smooth, and files open up to 50 MB. A very long result shows its first 2,000 lines on screen, while Copy and Download always include all of it.
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).