Decimal to Hex Converter
Turn everyday decimal integers into hexadecimal. Optionally show the calculation steps—useful for homework and learning.
Select target format:
From Decimal:
Switch FormatsEnter data to convert...
Decimal Input Data
Hexadecimal Conversion Result
Conversion Options
Examples
| Input | Output | Note |
|---|---|---|
| 255 | FF | Common byte max |
| 16 | 10 | Carry boundary |
| 4095 | FFF | Larger decimal |
FAQ
- How do I convert decimal to hex?
- Enter an integer and convert. Enable the process view to see successive division by 16 and remainders.
- Can I use uppercase or a 0x prefix?
- Yes. Options let you switch case and add a 0x prefix, then convert again.
Related converters
Instructions
- Paste or type your Decimal data in the input box.
- Choose options if needed (grouping, prefix, endianness, encoding).
- Click Convert and review the Hexadecimal result.
- Copy the output. Everything runs locally in your browser.
Format Description
Decimal
Decimal is our everyday number system, using digits 0-9.
- Uses digits 0-9
- Most commonly used numbering system by humans
- Each position has a weight of powers of 10
- Example: 123 = 1×10² + 2×10¹ + 3×10⁰
Hexadecimal
Hexadecimal uses 16 symbols: 0-9 and A-F (or a-f), widely used in programming and computer science.
- Uses digits 0-9 and letters A-F (or a-f)
- Commonly used for memory addresses and color values
- Each hex digit represents 4 binary bits
- Often uses '0x' prefix, such as '0x1A3F'