Convert text to hexadecimal and hex back to text instantly, free and online. A simple, accurate hex converter for developers and students.
PDF to Word Converter
Text to Hex Converter
QR Code Generator
All Tools
About the Hex Converter
This hex converter changes values between hexadecimal (base 16), decimal (base 10), binary (base 2) and plain text. Pick the format you are converting from and the format you want, paste your value and press Convert. It is handy for reading memory addresses, checking color codes, decoding hex strings in logs and learning how number systems relate to each other.
How to use the Hex Converter
- Choose Convert from: Hex, Decimal, Binary or Text.
- Choose Convert to: Hex, Decimal, Binary or Text. The swap button reverses the direction.
- Paste or type your value. For several numbers, separate them with spaces.
- Click Convert, then Copy Result.
Hex, decimal and binary reference
| Decimal | Hex | Binary |
|---|---|---|
| 10 | A | 1010 |
| 15 | F | 1111 |
| 16 | 10 | 10000 |
| 100 | 64 | 1100100 |
| 255 | FF | 11111111 |
| 256 | 100 | 100000000 |
Notice that 255 is FF in hex and 11111111 in binary. That is the largest value one byte can hold, which is why you see FF so often in computing.
How to convert by hand
To turn hex into decimal, multiply each digit by a power of 16 and add the results. For 2F you calculate 2 x 16 + 15 = 47. For 1A3 you calculate 1 x 256 + 10 x 16 + 3 = 419. To turn decimal into hex, divide by 16 repeatedly and read the remainders from the bottom up. For 255, 255 divided by 16 is 15 remainder 15, and 15 is F, so the answer is FF.
Reading color codes
Web colors are three hex pairs for red, green and blue. Take the orange #F5821F: F5 is 245 for red, 82 is 130 for green and 1F is 31 for blue, so the color is rgb(245, 130, 31). Use the Color Converter when you want the full set of color formats.
Common conversions
- Hex to decimal: read the value of a memory address or color channel
- Decimal to hex: write everyday numbers in hex notation
- Hex to binary: expand each hex digit into four bits
- Hex to text: decode hex-encoded bytes into readable characters
- Text to hex: encode text as hex byte values
Frequently asked questions
What is a hex converter?
A hex converter changes values between hexadecimal and other formats such as decimal, binary and text.
How do I convert hex to decimal?
Set Convert from to Hex and Convert to to Decimal, paste your hex value and click Convert.
How do I convert decimal to hex?
Set Convert from to Decimal and Convert to to Hex, enter your numbers and click Convert. Separate several numbers with spaces.
Why does hex use letters?
Base 16 needs sixteen symbols. After the digits 0 to 9, the letters A to F represent the values 10 to 15.
Is my data uploaded?
No. Everything is converted in your browser.
Related tools
Text to Hex Converter · Binary to Text Converter · Binary Code Translator · Color Converter · MD5 Generator · All Free Tools