Hex to Decimal
Convert between hexadecimal, decimal, binary and octal values.
Hex to Decimal
Accepts 0x, 0o and 0b prefixes, underscores and a leading minus sign. Integers only.
Hexadecimal
—
Decimal
—
Octal
—
Binary
—
One value, four number bases
The HitBidder Base Converter shows a value in hexadecimal, decimal, octal and binary at the same time. Enter the number in any base and the other representations update as you type. It uses BigInt, so large integers keep their precise value.
How to use it
- Choose the input base.
- Paste the value. Prefixes such as
0x,0oand0bare accepted. - Copy any output format from its card.
Prefixes, signs and underscores
The parser accepts the usual base prefixes, a leading minus sign and underscore separators. Outputs include prefixes for hexadecimal, octal and binary, while decimal is plain. Negative values keep the sign in every representation.
Large integers
JavaScript numbers lose integer precision above 253. This converter uses BigInt instead, so values with dozens of digits remain exact. It intentionally rejects fractions; use a floating-point calculator for those.
Bit length and bytes
The stats show the minimum bit length of the absolute value and the number of bytes needed to store it. Zero counts as one bit. These figures are useful when sizing masks, IDs and binary fields.
Base converter FAQ
Tools get you ready. Real traffic gets you results.
HitBidder is a free 1:1 traffic exchange. Give a click, get a click, and send real visitors to the pages you just finished optimising.