Unicode Inspector
Verify that the source string contains the character or sequence you intend to represent. Open the Unicode Inspector.
Code Point Converter is a browser utility that turns characters into code points, escapes, and bytes. Translate the same Unicode text into code-point notation, numeric HTML references, JavaScript escapes, CSS escapes, and raw UTF-8 bytes without mixing the rules of those formats.
Enter text or choose a sample to generate a detailed report.
A code point, an encoded byte sequence, and a language escape are related descriptions—not interchangeable strings. The converter labels each layer so it lands in the correct context.
Use literal text when the whole pipeline is reliably UTF-8. Reach for an escape only when its surrounding grammar or diagnostic task calls for one.
| Output | Example for ★ | Where it belongs | Common mistake |
|---|---|---|---|
| Literal | ★ | UTF-8 HTML, source, or content | Saving the file under a legacy encoding |
| Code point | U+2605 | Specifications, tickets, and documentation | Pasting U+2605 and expecting a glyph |
| HTML hex | ★ | HTML character data or attribute values | Using it inside CSS as though syntax were shared |
| JavaScript | \u{2605} | Modern JavaScript string literals | Dropping the braces for a non-BMP value |
| CSS | \2605 | CSS strings, identifiers, or generated content | Forgetting that a trailing space can terminate the escape |
| UTF-8 | E2 98 85 | Hex dumps and encoding diagnostics | Treating displayed hex bytes as literal page text |
UTF-8 is variable-width. ASCII occupies one byte, while other Unicode scalar values require two, three, or four bytes.
| Character | Code point | UTF-8 bytes | HTML hexadecimal |
|---|---|---|---|
| A | U+0041 | 41 | A |
| © | U+00A9 | C2 A9 | © |
| ★ | U+2605 | E2 98 85 | ★ |
| 🚀 | U+1F680 | F0 9F 9A 80 | 🚀 |
Follow the sequence from evidence to policy. Each stage guards against a different class of Unicode mistake.
Decide whether the value is going into content, documentation, JavaScript source, a stylesheet, or a byte-level investigation.
Preserve every code point in emoji and combining sequences. Converting only the visible base changes the result.
Use the representation whose grammar matches the destination; do not transplant escaping rules between languages.
Parse or render the destination, then inspect the recovered text to confirm that the original code points survived.
Usually no. Literal Unicode is readable and dependable in a correctly declared UTF-8 document. Numeric references are useful for specific markup constraints, invisible values, or ASCII-only tooling.
Many emoji sit above the Basic Multilingual Plane. JavaScript's brace form expresses the full scalar value directly; older UTF-16 escape notation requires a surrogate pair.
No. A code point is an abstract number such as U+2605. UTF-8 encodes that number into one to four bytes; the black star becomes E2 98 85.
Do not assume so. CSS and JavaScript define different tokenization and escape termination rules. Select the output expressly labeled for the destination language.
A hands-on explanation of U+ notation, scalar values, code units, byte sequences, and the encoding mistakes that produce broken text.
Read the guide →EngineeringUse literal UTF-8 characters and escapes correctly in HTML, CSS, JavaScript, attributes, and structured data without creating encoding problems.
Read the guide →Emoji & renderingDiagnose boxes, tofu, and missing glyphs by separating Unicode character support, font coverage, shaping, fallback, and encoding failures.
Read the guide →Verify that the source string contains the character or sequence you intend to represent. Open the Unicode Inspector.
Compare normalization forms before encoding when equivalence rules belong at an upstream text boundary. Open the Normalization Checker.
The browser output is designed as a practical diagnostic, while normative definitions belong to the standards publishers below.
Results appear as you type. Press Escape to close.