Character code lookup
Type a character or a word to get all of its codes in one place, handy for developers and for spotting hidden characters.
Loading the tool…
Processing and privacy: The result is calculated inside your browser and your data is not sent to any server.
How to use it
- Enter text.
- The result appears straight away and updates as you edit.
- Copy the result, or copy a link that keeps the same values to share it.
How it is calculated
For each character: the U+ code point and its decimal value, UTF-8 bytes per RFC 3629, UTF-16 units with surrogate pairs, and the HTML reference &#N;.
Example
Result: Characters: 4; UTF-8 bytes: 8.
Limits and caveats
- The official Unicode character name is not shown.
- The table lists the first 400 characters only.
Questions about this tool
How do I find a hidden character in text?
Paste the text and look in the table for codes like U+200F (right-to-left mark) or U+00A0 (no-break space).
Why is the byte count different from the character count?
UTF-8 uses 1 to 4 bytes per character depending on its code point.
What do SP and LF mean in the character column?
They name invisible characters: SP is a space, LF a line break and HT a tab.
