About the Decimal to Hex
To convert a decimal number to hexadecimal, divide it by 16 repeatedly and keep each remainder. Remainders 10–15 become the letters A–F. Read the remainders from the last one to the first. For 3054: 3054 ÷ 16 = 190 remainder 14 (E), 190 ÷ 16 = 11 remainder 14 (E), 11 ÷ 16 = 0 remainder 11 (B), so 3054 = 0xBEE. The working table under the result shows the same steps for your number.
Hex output is padded to whole bytes in the “Bytes” line (0B EE) so you can compare it with a hex dump or a network capture. Remember that the byte order in memory depends on endianness: 3054 stored as a little-endian 16-bit integer appears as EE 0B in a dump, while the number itself is still 0x0BEE.
Typical uses: writing a colour channel (200 → C8), setting a flag or bit mask in code, building a Unicode escape (\u00E9 for 233), or reading error codes such as Windows HRESULTs, which are documented in hex. Large values like 64-bit IDs convert exactly because the tool uses BigInt. Negative numbers are shown with a minus sign; their two's complement hex form is in the number base converter.
How to use it
- Type a whole decimal number.
- Read the hexadecimal result (upper case) and its byte grouping.
- Follow the divide-by-16 table to see how each hex digit is produced.
- Copy the result; add a 0x prefix if your language needs one.