Hex ↔ Decimal Converter
Convert between hexadecimal, decimal, binary, and octal. All four update simultaneously as you type.
Hexadecimal (Base 16)
Decimal (Base 10)
Binary (Base 2)
Octal (Base 8)
Batch Converter
Paste multiple numbers (one per line), select the input base, and convert all at once.
Common Hex Reference
| HEX | DEC | BIN | OCT | Notes |
|---|---|---|---|---|
| 00 | 0 | 00000000 | 0 | Zero / null |
| 0F | 15 | 00001111 | 17 | Lower nibble |
| 10 | 16 | 00010000 | 20 | |
| 1F | 31 | 00011111 | 37 | |
| 20 | 32 | 00100000 | 40 | Space (ASCII) |
| 40 | 64 | 01000000 | 100 | @ (ASCII) |
| 7F | 127 | 01111111 | 177 | DEL (ASCII) |
| 80 | 128 | 10000000 | 200 | Sign bit (8-bit signed) |
| A0 | 160 | 10100000 | 240 | |
| C0 | 192 | 11000000 | 300 | Common subnet mask byte |
| FF | 255 | 11111111 | 377 | Max byte / 8-bit unsigned |
| 100 | 256 | 100000000 | 400 | |
| FFFF | 65535 | 1111111111111111 | 177777 | Max 16-bit unsigned |
How to use
- Type in any of the four fields (HEX, Decimal, Binary, Octal) — all others update instantly
- If the hex value looks like a CSS color (#RRGGBB or RRGGBB), a color swatch preview appears
- Use the Batch Converter to convert many numbers at once — paste one per line, select the base, and click Convert All
- The reference table shows common hex values and their equivalents in all bases
- Hex input is case-insensitive (A = a)