Decimal to Hex Converter
Convert decimal numbers to hexadecimal (base 16) in upper or lower case, with an optional 0x prefix.
Runs in your browserDecimal → Hexadecimal
Loading tool…
Example
255 4096
FF 1000
How to use the Decimal to Hex Converter
- Enter one number per line to convert several at once. Negative numbers and numbers of any size are supported.
Privacy and limitations
- Your data is processed on your device and is not uploaded to any server.
- Whole numbers only; fractional parts (e.g. 10.5) are not converted.
Related converters
Decimal to Binary ConverterConvert decimal numbers to binary (base 2), with optional 4- or 8-bit digit grouping. Handles huge and negative numbers.Number Base ConverterConvert whole numbers between any bases from 2 to 36, including binary, octal, decimal, hex and base 36.Hex to Decimal ConverterConvert hexadecimal numbers (with or without 0x) to decimal, with exact results for 64-bit values and beyond.Binary to Decimal ConverterConvert binary numbers to decimal. Accepts 0b prefixes, spaces and underscores between digits, and any length.Decimal to Octal ConverterConvert decimal numbers to octal (base 8), useful for Unix file permissions and legacy systems.Octal to Decimal ConverterConvert octal (base 8) numbers such as 755 or 0o644 to decimal values.Binary to Hex ConverterConvert binary numbers to hexadecimal; every four bits become one hex digit.Hex to Binary ConverterConvert hexadecimal numbers to binary, optionally grouped into nibbles or bytes for readability.