Free Text to Unicode Converter
The Text to Unicode Converter turns characters into Unicode escape sequences for use in JavaScript, JSON, CSS, or HTML. It handles astral characters correctly with surrogate pairs or code-point notation.
Unicode to Text Converter reverses this, and Text to Octal Converter covers the legacy notation. If the goal is to see which marks are attached rather than list values, the Zalgo / Glitch Text Generator page is the visual counterpart.
How to use the Text to Unicode
- 1 Paste your text into the input area.
- 2 Choose the output format — U+ code points, decimal values, HTML entities, or escaped sequences.
- 3 Set the separator between values, or switch it off for a continuous string.
- 4 Copy the result for use in documentation, code, or a bug report.
Why code points matter in practice
When text gets corrupted, the code points tell you how. A string that renders as mojibake has been decoded with the wrong character set at some point, and the specific code points that came out reveal which wrong decoding was applied. Without them you are guessing; with them the fault is usually obvious within a minute.
They also settle the invisible-character problem. A value that will not match, a form that will not submit, a comparison that returns false on strings that look the same — inspecting the code points exposes the zero-width space, the non-breaking space, or the differing normalisation form that caused it.
Reading the output
- Anything in the range U+0000 to U+007F is plain ASCII and looks the same in every encoding.
- Identical-looking strings with different code points are almost always a normalisation mismatch, not a bug in your code.
- A string that contains any value above U+007F is not safely ASCII; treat the encoding explicitly.
- When reporting a bug, paste the code points rather than the corrupted text — the text may not survive the trip.
Frequently asked questions
What is the difference between a code point and a character?
A code point is a number; a character is what you see. Most of what people call characters map to one code point, but accented letters can be written either as one precomposed point or as a base letter plus a combining accent, and emoji are frequently built from several points joined together. Two strings that look identical can therefore have different code point listings, and that is usually the answer to "why does this comparison fail".
Which format should I choose?
U+ notation for anything you will read or paste into a conversation, because it is the universal standard and every reference uses it. Decimal for environments that expect it. HTML entities when the output is going into markup and you need the character to survive a transform. Escaped sequences when you are writing a string literal in a programming language and want it to stay readable in source.
Why do some characters show as a pair of values?
Because they are stored as a surrogate pair, which is how UTF-16 represents anything above the basic plane. A single emoji is one concept, one code point in Unicode's numbering, and two 16-bit values in memory. If you see a high value around D800 followed by a low value around DC00, you are looking at halves of the same character.
Related Text Tools
You might also need
Tools from other categories that people pair with the Text to Unicode: