# Hex and calculator

## World's simplest hex tool

Free online hexadecimal bitwise AND calculator. Just load your hexadecimals and they will automatically get ANDed together. There are no ads, popups or nonsense, just an awesome hex AND calculator. Load hex, AND hex. Created for developers by developers from team Browserling.

love binary more than hex?
01010101

We also have Online Binary Tools — utilities for working with binary zeros and ones. Check it out!

A link to this tool, including input, options and all chained tools.

Can't convert.

Hex and calculator tool
What is a hex and calculator?

This tool performs the bitwise AND operation on all input hex numbers. The bitwise AND operation works on individual bits and before it's computed, the base of input hex numbers is internally converted to binary and zero-padded so that they all had the same length. Then, bits in every position are compared. If they are all 1, then the output bit is 1, otherwise, the output bit is 0. Hexabulous!

Hex and calculator examples
Click to use

Compute Bitwise AND of Two Hex Values

This example calculates bitwise AND of two hex numbers. The second hex value is a mask that isolates 2nd, 4th, 6th, and 8th hex digits in the first hex value.

0x87654321
0xf0f0f0f0

80604020

Calculate AND of Multiple Hex Numbers

This example performs bitwise AND operation on several hexadecimal values. As they are all the same length, AND can be computed digit by digit. Going from right to left (<- this way), the first digit is AND(e,a,6,6)=2, the second digit is AND(e,f,6,5)=4, the third digit is AND(f,a,f,4)=0, the fourth digit is AND(f,f,e,3)=2, and the last two digits are both zero because AND(0,a,e,2)=0, and AND(c,f,b,1)=0. The last two digits aren't printed as they are the leading digits and the result value 0x002042 is the same as 0x2024.

0xc0ffee
0xfafafa
0xbeef66
0x123456

2042

Hex Formats

In this example, we demonstrate four different hex formats that you can use for entering hex values in the input. You can use capital hex letters and capital hex prefixes, small hex prefixes, or no hex prefixes.

0xAABBCC
0Xa1234
0XF0EEF7
654bca

200

Pro tips
Master online hex tools

You can pass input to this tool via

__?input__query argument and it will automatically compute output. Here's how to type it in your browser's address bar. Click to try!
https://onlinehextools.com/and-hex-numbers

__?input__=0x87654321%0A0xf0f0f0f0
All hex tools

Quickly convert ASCII characters to hexadecimal numbers.

Quickly convert hexadecimal values to ASCII characters.

Quickly convert UTF8 characters to hexadecimal values.

Quickly convert hexadecimal values to UTF8 characters.

Quickly generate random hexadecimal values.

Quickly randomize the order of digits in a hex number.

Quickly rotate digits in a hex number to the left or to the right.

Quickly reverse the order of digits in a hex number.

Quickly create an image from a hexadecimal number.

Quickly convert hexadecimal numbers to Roman numerals.

Quickly convert Roman numerals to hexadecimal numbers.

Quickly convert hexadecimal numbers to decimal numbers.

Quickly convert decimal numbers to hexadecimal numbers.

Quickly convert hexadecimal numbers to octal numbers.

Quickly convert octal numbers to hexadecimal numbers.

Quickly convert hexadecimal values to binary values.

Quickly convert binary values to hexadecimal values.

Quickly convert a string to hexadecimal values.

Quickly convert hexadecimal values to a string.

Quickly convert an IP address to a hex IP address.

Quickly convert a hex IP address to a human-readable IP address.

Quickly convert hexadecimal colors to RGB colors.

Quickly convert decimal RGB colors to hexadecimal colors.

Quickly convert hexadecimal values to Gray code.

Quickly convert Gray code to hexadecimal values.

Quickly convert hexadecimals to binary coded decimals.

Quickly convert binary coded decimals to hexadecimals.

Quickly calculate the sum of a bunch of hex numbers.

Quickly calculate the product of a bunch of hex numbers.

Quickly convert plain text to hexadecimal values.

Quickly convert hexadecimal values to plain text.

Quickly calculate bitwise AND of a bunch of hex numbers.

Quickly calculate bitwise NAND of a bunch of hex numbers.

Quickly calculate bitwise OR of a bunch of hex numbers.

Quickly calculate bitwise XOR of a bunch of hex numbers.

Coming soon
These hex tools are on the way

Convert Hex to Unary

Quickly convert hex numbers to unary numbers.

Convert Unary to Hex

Quickly convert unary numbers to hex numbers.

Convert Hex to Arbitrary Base

Convert a hexadecimal to arbitrary base from 2 to 64.

Hex Editor

View and edit files in a browser-based hex editor.

Hexdump

Create a hex dump of files in your browser.

Create a File from Hex Values

Convert hexadecimal numbers to a file.

Convert a Hex Color to RGBA

Convert a color in hex #rrggbbaa format to RGBA format.

Convert an RGBA Color to Hex

Convert a color in rgba(r,g,b,a) format to #rrggbbaa hex format.

Convert a Hex Color to CMYK

Convert a color in hex #rrggbb format to CMYK format.

Convert a CMYK Color to Hex

Convert a color in CMYK format to #rrggbb format.

Convert Characters to Hex HTML Entities

Convert characters to hexadecimal #&x HTML entities.

Convert Hex HTML Entities to Characters

Convert HTML entities in #&x hex format back to characters.

NOR Hex Numbers

Calculate bitwise NOR of hexadecimal numbers.

XNOR Hex Numbers

Calculate bitwise XNOR of hexadecimal numbers.

Invert a Hex Number

Find bitwise inverse of a hexadecimal value.

Invert a Hex Color

Find the inverse hexadecimal color.

Swap Hex Endianness

Change endianness of a hex number.

Extract a Digit from a Hex Number

Extract n-th nybble from a hexadecimal number.

Convert IPv6 to Hex

Convert an IPv6 address to hexadecimal form.

Convert Hex to IPv6

Convert an IPv6 address in hexadecimal form back to human readable form.

Convert Little Endian Hex to Big Endian Hex

Convert a hex number in little endian byte order to big endian.

Convert Big Endian Hex to Little Endian Hex

Convert a hex number in big endian byte order to little endian.

Convert Hexfloat to Float

Create a floating point number from a hexfloat number.

Convert Float to Hexfloat

Create a hexfloat number from a floating point number.

Convert a Floating Point Number to Hex

Find the hex representation of a floating point number.

Convert Hex to a Floating Point Number

Find the floating point number from its hex representation.

Pad Hex Values

Add padding to hex numbers.

Truncate Hex Values

Truncate hex numbers to a shorter length.

Round Hex Numbers

Round hex numbers up or down.

Convert Hex to DoubleHex

Convert base-16 numbers to base-32 numbers.

Convert DoubleHex to Hex

Convert base-32 numbers to base-16 numbers.

Print a Hex Sequence

Generate increasing or decreasing hex numbers.

Convert Text to Hexspeak

Rewrite text to hex leetspeak.

Convert Hexspeak to Text

Decipher leetspeak back to regular text.

Subscribe!
Never miss an update

Cool!

Notifications
We'll let you know when we add this tool

Cool!