Decimal to Hex Converter
Convert decimal numbers to hexadecimal and hex to decimal instantly. Also shows binary and octal. Free browser-based tool.
How to Use
- 1 Select Decimal → Hex to convert a decimal number to hexadecimal, or Hex → Decimal for the reverse
- 2 Enter your decimal number (e.g. 255) or hex number (e.g. FF)
- 3 Click Convert to see the hex result along with binary and octal
Use Cases
Convert decimal color channel values (0–255) to hexadecimal for CSS color codes like
Work with memory addresses, byte values, and color codes that are commonly expressed in hexadecimal notation.
Understand the relationship between decimal and hex to read memory dumps, debug sessions, and hardware registers.
FAQ
Divide the decimal number by 16 repeatedly and record remainders (using A–F for 10–15) from bottom to top. For example, 255 ÷ 16 = 15 R15 (F), 15 ÷ 16 = 0 R15 (F) → hex FF.
Each hex digit represents exactly 4 binary bits, so two hex digits represent one byte (8 bits). This makes hex a compact and readable way to write binary values like memory addresses and color codes.
No. Hex digits A–F are case-insensitive. This tool outputs uppercase letters (e.g. FF) but also accepts lowercase input (e.g. ff).
Related Tools
A/B Test Calculator
Check if your A/B test results are statistically significant. Calculates p-value, Z-score, uplift, and statistical power. Free.
Open →A/B Test Sample Size Calculator
Calculate the sample size needed per variation for a statistically valid A/B test. Set confidence level, power, baseline rate and MDE. Free.
Open →ACOS Calculator
Calculate your Amazon ACOS, ROAS, and break-even ACOS instantly. Free tool for Amazon sellers to measure ad efficiency and profitability.
Open →