Skip to content

Browser tool

Inspect a string one code point at a time

Read a label in storage order. A thread-spool symbol on an embroidery strip shows why a UTF-16 offset can differ from a code-point position.

Inspect Unicode text

Paste a short excerpt to inspect its code points and compare its length under NFC and NFKC. The check runs in this tab.

Up to 5,000 UTF-16 code units. The empty string is valid. The check reads the text in the box. The browser can convert pasted CR or CRLF line endings to LF.

Positions count code points from 1. Offsets count UTF-16 code units from 0. A supplementary code point occupies two units. One displayed symbol can contain several code points.

0 / 5,000

Enable JavaScript to use this tool in this tab.

Paste the label as text

Open input.txt from the Unicode text report reference. Copy the entire short label, preserving its accent and its final spool symbol. The example file ends at the spool.

The checker reads text already decoded by the browser. Typing the six visible characters in a JSON escape such as \u0301 supplies a backslash, a letter and four digits. For the combining accent in this example, use the literal input file.

Locate a code point

The three positions are U+0065, U+0301 and U+1F9F5. Position 2 is a combining mark. The last position occupies two UTF-16 units, giving four units for the whole label.

Code-point positions start at 1. UTF-16 offsets start at 0. The spool begins at offset 2. Neither number tells you how many characters a reader perceives on screen.

Check what normalization changes

NFC and NFKC both change this particular excerpt. Each result takes three UTF-16 units and two code points. These are two separate comparisons with the original.

Flags describe selected properties of the input. A combining mark can supply the accent the maker intended. If a flag needs interpretation, record its position and look at the source label.

Keep the extent of the check clear

The checker accepts up to 5,000 UTF-16 units. An unpaired surrogate stops the check and gives its one-based UTF-16 position. File bytes, encodings and grapheme clusters are outside this check.

The page previews up to 200 code points. Its JSON download includes every accepted point in order, enough to reconstruct the text. Treat the download as a copy of the examined label.

Reference sources

Continue with a check