Hex to Decimal
Converter
Convert between hexadecimal, decimal, binary, and octal. Supports color hex codes with RGB breakdown.
How It Works
Enter a Value
Type a hex or decimal number in either input field.
See All Bases
Instantly view the value in hex, decimal, binary, and octal.
Copy & Use
Copy any representation to your clipboard with one click.
Convert hex to decimal online and switch between hexadecimal, decimal, binary, and octal in a single view. ConverterUp's number base converter is a quick reference for embedded developers, low-level programmers, and students working through assembly or networking exercises. Type a value in any base and the other three update instantly, with optional support for color hex codes that also display the matching RGB triplet. Calculations run in your browser, so values never leave your machine and the tool works offline once the page is cached.
Frequently asked questions
Does the converter handle negative numbers?
Yes. Negative decimals are converted using two's complement at 8, 16, 32, or 64 bits, which you can pick in the options. This matches how negative integers appear in C, Go, and most low-level languages.
What is the maximum value supported?
JavaScript safely handles integers up to 2^53 - 1. For larger values switch to BigInt mode, which supports arbitrary precision but rounds floating-point input to the nearest integer.
Can I convert color codes?
Yes. Enter a hex like #2E5C55 and the tool shows the matching RGB(46, 92, 85) and HSL values, plus a color preview swatch. The reverse direction also works from RGB to hex.
Are floating-point numbers supported?
Yes. Floats convert across decimal, binary scientific notation, and IEEE-754 hex representation, useful for debugging serialized numbers in network protocols or shaders.