Ctrl+K
Decimal to Hex Converter
๐ Runs in your browser โ nothing is sent to a serverConvert a decimal integer to hexadecimal. The number is divided by 16 repeatedly and the remainders form the hex digits, so 255 becomes ff and 4096 becomes 1000. Choose lowercase (ff) or uppercase (FF) output โ both forms are equivalent but stylistic conventions differ between languages and tools. Indispensable for picking RGB colors, packing byte values, generating memory offsets and writing hex literals in C, Java or assembly.
Decimal (10)
Allowed: 0โ9
Hexadecimal (16)
Allowed: 0โ9, aโf
Decimal (10) โ Hexadecimal (16)
Quick reference table
| Decimal (10) | Hexadecimal (16) |
|---|---|
| 10 | a |
| 16 | 10 |
| 32 | 20 |
| 100 | 64 |
| 255 | ff |
| 256 | 100 |
| 4096 | 1000 |
| 65535 | ffff |
| 65536 | 10000 |
| 1048576 | 100000 |
Glossary
Related tools
Hex to Decimal
Convert hexadecimal numbers to decimal โ with BigInt support for 64-bit values
Decimal to Binary
Convert decimal integers to binary (base 2) โ with BigInt support
Decimal to Octal
Convert decimal integers to octal (base 8) โ chmod-friendly output
Number Base Converter
Convert integers between binary, octal, decimal and hexadecimal โ with full BigInt support
