"string" to 0xHEX

 

Click to insert:

Explanation

• Differentiate two seemingly identical characters

е
U+0435
is not
e
U+0065

• Emoji (read this)

Single

U+2764
looks like ❤, but

U+2764
+

U+FE0F
is ❤️

• See the "invisible" characters

The combination
x
U+0078
+

U+200D
+
y
U+0079
looks like just x‍y

• Single Unicode character can be build from a Surrogate pair


U+D83D
+

U+DD14
=
🔔
U+01F514

• To calculate Unicode symbol from Surrogate Pair use


function surrogatePairToUnicode(code1, code2)
{
    return 0x10000
            + ((code1 - 0xd800) << 0xa)
            + (code2 - 0xdc00)
};
        

• Vice versa


function unicodeToSurrogatePair(code)
{
    const adj = code - 0x10000;
    const high = 0xd800 + (adj >> 0xa);
    const low = 0xdc00 + (adj & 0x3ff);
    return [high, low];
};
        

This list may interest you

• Use Ctrl + Shift + u followed by hex value to insert Unicode symbol. Works on Linux.