Binary Hex Decimal Converter Logo
Developer Tools Embed Tool

Binary Hex Decimal Converter

Convert a number between decimal, binary, hexadecimal and octal as you type, with a clickable 16-bit visualizer and a second tab that turns plain text into binary, hex and decimal codes.

Convert Now
0
Uses
—
Verified
Open
Access
Nov 2026
Added
Back to Directory

Binary Hex Decimal Converter

Convert a number between decimal, binary, hexadecimal and octal as you type, with a clickable 16-bit visualizer and a second tab that turns plain text into binary, hex and decimal codes.

Auto-saved on this device

16-bit visualizer (tap a bit to flip it)

Numbers are exact at any size because the maths uses big integers. Negative values can be shown with a minus sign or as two's complement at a fixed width. Text codes are the UTF-8 bytes of your text, so accented letters and emoji give more than one code each. Everything runs in your browser.

Found a Bug or Missing a Feature?

Report any problems or suggest new features you want. You can write in English, Urdu, Hindi, or any language! Our AI will analyze your feedback and upgrade the tool.

About This Tool

Convert a number between decimal, binary, hexadecimal and octal as you type, with a clickable 16-bit visualizer and a second tab that turns plain text into binary, hex and decimal codes.


You meet the same number in different clothes all the time. A server admin types chmod 755, a designer copies #FF8800, a network engineer reads 255.255.255.0. Behind each of them is a plain number written in base 8, 16 or 2. This page converts between decimal, binary, hexadecimal and octal as you type, and shows the bits so the conversion stops being a black box.

Three everyday numbers decoded

755 in octal is 111 101 101 in binary: three bits per digit, one group each for owner, group and everyone else. A 7 means read, write and execute, and a 5 means read and execute. Type 0o755 into the Value box and the binary row shows exactly that pattern.

FF8800 is a colour. Split into bytes it is FF, 88 and 00, which are 255, 136 and 0 in decimal: full red, a good amount of green and no blue, an orange. To go straight from the hex code to red, green and blue values, the Hex to RGB Converter is the quicker route.

192.168.1.1 is four bytes. In hex they are C0, A8, 01 and 01, so the whole address fits in the 32-bit value C0A80101. Turn on digit grouping and the hex output splits into bytes to match.

The 16-bit visualizer

Below the results sit sixteen bit buttons, each labelled with its position from 15 down to 0. Tap one and it flips, and the Value box rewrites itself. Try it with 65535, which is all sixteen bits on, then tap bit 15: the value drops to 32767. The buttons Invert, Shift left, Shift right, Clear and Set all act on those sixteen bits, which makes masks and shifts easy to check by eye. The line under the grid shows the pattern both as an unsigned number and as a signed one, so you can see why 0xFFFF is 65535 in one reading and minus 1 in the other.

Negative numbers and two's complement

A computer has no minus sign, so negative numbers are stored as a pattern. Pick 8-bit two's complement and enter -1: the binary row becomes 11111111 and the hex row FF. Enter -128 and you get 10000000. Enter -129 and the page warns that it does not fit in 8 bits, because the pattern would wrap around. Choose 16, 32 or 64 bits to match the type in your code.

Turning text into codes

The Text codes tab shows the bytes behind your words. The letter A is 65, 41 in hex and 01000001 in binary. Accented letters and emoji take more than one byte, because the page uses UTF-8: é becomes C3 A9. The tab also works backwards: choose Codes to text, say which base the codes are in, and paste them. If you are hunting for the character behind a code such as é, the HTML Entity Encoder Decoder covers that side.

Limits and good habits

The converter handles whole numbers of any size up to 4,000 digits and does not handle fractions such as 0.1 in binary. Spaces, commas and underscores inside a value are ignored, so 1111_0000 works. A digit that does not belong to the chosen base is named in the error message. If a result needs to be written out in words for a document, send it to the Number to Words Converter.

Questions people ask

What is 255 in binary, hex and octal?

11111111 in binary, FF in hexadecimal and 377 in octal.

How do I convert a negative number to binary?

Choose a two's complement width such as 8 or 16 bits, then enter the negative number. For example -1 becomes 11111111 in 8 bits and FFFF in 16 bits.

Can I type a value that already has a prefix?

Yes. In Auto mode, 0x starts hexadecimal, 0b binary and 0o octal. Anything else is read as decimal.

Why does one letter sometimes give two codes?

Text is encoded as UTF-8, so letters outside basic English, such as é, use two bytes, and most emoji use four.

Is there a size limit?

Whole numbers up to 4,000 digits are converted exactly. Text is limited to 20,000 characters.