Hongmu Notes

🈹 Convert text to hexadecimal

Convert the code point of each character to lowercase hexadecimal and concatenate.

Instructions for use

  • Automatic conversion after entering or pasting text, you can also click "Convert" to perform it again
  • The output is lowercase hexadecimal without inserting delimiters: ASCII 2 digits, Chinese characters usually 4 digits
  • The status line gives the number of code elements and output digits for easy verification.

Code point query

If you want to know the code point of a certain word or symbol, just paste it in and rotate it once, without looking up the table.

📌 How to read the result into code points

Cut the result into 2 or 4 digits, and the number read out in hexadecimal for each segment is the code point. For example, 60a8 is 24744 in decimal; the corresponding characters can be found by using the Unicode table.

🔒 Dealing with location and privacy

The conversion is completed locally in the browser. The input and results are not uploaded to the server or written to local storage. They are cleared when the page is refreshed. The result is just another representation of the original text, which can be converted back to text at any time, and no external calculations are involved.

📌 Conversion rules

Convert the code points to hexadecimal (lowercase, no zero padding) by calling UTF-16 code elements one by one, and then connect them end to end. Therefore, there is no fixed pattern in the number of digits in the result: control characters with code points less than 16 only occupy 1 digit (a for newlines and 9 for tabs), ordinary ASCII occupies 2 digits (spaces are 20 and a is 61), Chinese characters and full-width punctuation generally occupy 4 digits, and emoji occupies two code units for a total of 8 digits. Precisely because there is no zero padding, the splicing result cannot be simply divided according to a fixed width. It needs to be checked by "converting to decimal by segment and comparing it with the character."

All keywords and tutorials 12

❓ FAQ

Can you reversely check the words corresponding to the code bits?
You can use a hexadecimal to string tool to reverse the conversion.
How to pronounce agent pair
The two segments combined are a Unicode code point, for example, d83dde00 corresponds to 😀.
Code point query usage sequence
Encoding → Group by bit → Convert to decimal → Check table to confirm.