UTF-8 byte boundary inspector

Strictly decode hexadecimal UTF-8 into byte offsets and Unicode code points. Malformed byte sequences are rejected instead of hidden by replacement characters.

The example value has been entered. Check it immediately or change the value.

Input is processed in the browser. Refreshing returns a sample value.

Result

Instructions and example

Strictly decode UTF-8, then re-encode each code point to compute cumulative byte positions.

41 is U+0041 at offset 0; e2 82 ac is U+20AC at offset 1; the emoji starts at offset 4.

At most 10,000 bytes. Rows represent code points, not visual grapheme clusters such as combined characters or emoji sequences.

Frequently asked questions

Is a UTF-8 BOM included in the output?

Yes. The BOM is retained as code point U+FEFF.

Does the inspector repair invalid UTF-8?

No. Truncation, overlong sequences and surrogate encodings are rejected.

Calculation criteria and reference materials

Verification of calculation criteria: · Calculation·verification principles · Report errors