Hexadecimal in a nutshell
Hexadecimal counts in base 16, with the digits 0 to 9 and then the letters a to f. Two of these signs are enough to write one byte, from 00 to ff. It is the usual way to read the contents of a file, a network address, a colour or a data frame.
From text to bytes
Text becomes bytes through a character set. In UTF-8, the letter A gives 41, é gives c3 a9 and an emoji takes four. The “Text encoding” setting also offers Windows-1252 and UTF-16.
You can choose the layout: spaces, no separator, colons, a 0x prefix for source code, or \x for a string literal. Files up to 5 MB can be converted, and decoded bytes can be downloaded.
Reading hexadecimal back
Paste the values into the second box: spaces, commas, colons, hyphens, line breaks, 0x and \x are accepted, in upper or lower case. A foreign sign or an odd group is reported with its position. If the bytes are not text, they are shown as they are.
It is not encryption
Writing text in hexadecimal does not protect it: the conversion is public and instant in both directions.
Frequently asked questions
Why two digits per character, and sometimes more?
Each byte is written with two digits. ASCII characters fit in one byte; accents, symbols and emoji need more in UTF-8.
How do I convert a decimal number to hexadecimal?
This tool converts text and bytes: the text “10” gives 31 30. It does not convert the value of a number.
What does 0x mean?
It is the prefix many programming languages use to announce a hexadecimal number: 0x41 is 65.
Is my data sent anywhere?
No. Text and files are processed in your browser. Only your settings are kept on your device.