Skip to content

Hex Converter

Convert hex to decimal, binary and octal, or any of them back to hex. Type a value below: a 0x prefix or any A-F digit switches the input to hex, and every result stays exact at any length.

Input base:
Decimal255
Hex0xFF
Binary0b11111111
Octal0o377

How Hex Conversion Works

Hexadecimal is base 16: the digits 0-9 then A-F for ten to fifteen. Each hex digit is exactly four binary bits, so a hex number converts to binary digit by digit, and to decimal by multiplying each digit by its power of 16 (FF = 15 × 16 + 15 = 255).

0
0
0000
1
1
0001
2
2
0010
3
3
0011
4
4
0100
5
5
0101
6
6
0110
7
7
0111
8
8
1000
9
9
1001
A
10
1010
B
11
1011
C
12
1100
D
13
1101
E
14
1110
F
15
1111

Need every byte at once? Print the 0-255 hexadecimal chart.

Bit-Level Developer Tools, Exact at Any Width

Registers, masks, floats, and checksums - plus base conversion with arbitrary precision. Every integer path runs on BigInt, never a float, so 64 and 128-bit values stay exact to the last digit.

Instant, in-browserBigInt exact beyond 2^53Nothing uploadedNo ads

Built for Developers

Exact Beyond 2^53

BigInt end to end. 64, 128, 256-bit values convert without losing a single digit - and we label when plain numbers stop being safe.

100% Client-Side

All processing in your browser. Your data never leaves your device.

Code-Ready Output

Signed views, endian bytes, and copy-ready snippets in JS, Python, Go, Rust, C, and shell.