Unicode Converter
Convert text to Unicode code points and vice versa.
Common Unicode Ranges
U+0000-007FBasic Latin (ASCII)
U+0080-00FFLatin Supplement
U+0400-04FFCyrillic
U+4E00-9FFFCJK Unified
U+1F600-1F64FEmoticons
U+1F300-1F5FFMisc Symbols
Code Examples
// Character to code point
'😀'.codePointAt(0).toString(16); // "1f600"
// Code point to character
String.fromCodePoint(0x1f600); // "😀"Frequently Asked Questions
What is a Unicode code point?
A code point is the unique number assigned to each character in Unicode, written as U+XXXX in hexadecimal. For example, 'A' is U+0041, '😀' is U+1F600.
What is the difference between a code point and a byte?
A code point is an abstract character number (U+1F600); bytes are how it is stored. In UTF-8, U+1F600 becomes the 4 bytes F0 9F 98 80. One character can therefore be 1-4 bytes.
Why do some emoji count as two characters in JavaScript?
JavaScript strings use UTF-16, where code points above U+FFFF are stored as a surrogate pair of two 16-bit units. '😀'.length is 2 even though it is one code point - use [...str].length to count code points.
Related Tools
This tool runs entirely in your browser - nothing you enter is uploaded or stored.