EditSafely

NAND Hex Numbers

Quickly calculate bitwise NAND of a bunch of hex numbers (inverted within the widest operand's bit-width).

Runs on your device, nothing uploaded

Width
Try:

0 chars · 0 lines

Output

Quickly calculate bitwise NAND of a bunch of hex numbers (inverted within the widest operand's bit-width).

Type or paste above to see the result here.

Example: NAND two bytes

What you paste never leaves this tab

NAND 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 NAND Hex Numbers

  1. 1. Enter the numbers. Type two or more hex values separated by spaces or new lines, such as ff 0f. Operator words like NAND between them are ignored.
  2. 2. Pick a width. Width Auto uses the widest operand (8 bits for ff 0f, giving f0). Pick 16 bits to get fff0. Keep leading zeros writes the result at that width. The working shows the AND row and the inverted row.
  3. 3. Copy the result. Copy the hex result, or its decimal and binary from the list under it.

When to use NAND Hex Numbers

NAND Hex Numbers applies the NOT-AND operation bit by bit across hex operands, masking the inversion to the widest input's width. NAND is the workhorse gate of digital logic, and this tool lets you evaluate it on realistic word-sized values without translating anything into binary first.

  • Generating expected values for gate-level tests. A Verilog testbench for a NAND-based ALU path needs known-correct outputs for chosen hex inputs. Compute each expectation here and paste them into the assertion table.
  • Following NAND-only circuit constructions. A logic design course shows how AND, OR and NOT can all be built from NAND alone. Working the intermediate hex values through this tool lets you follow each construction numerically.
  • Decoding firmware that uses NAND idioms. Reverse-engineered code combines two masks and inverts the result in one step. Reproducing that NAND on the actual constants shows which flag bits the routine really produces.

Examples

NAND two bytes

Input

ff 0f

Output

f0

NAND masks to the wider operand

Input

ff f

Output

f0

About the NAND Hex Numbers tool

NAND Hex Numbers does its work locally, right in the browser. Quickly calculate bitwise NAND of a bunch of hex numbers (inverted within the widest operand's bit-width). 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 NAND 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 →