Developer tools · encodings · debugging

UTF-8 Byte Offset Inspector

A parser says “error at byte 24”. Which character is that? See every character laid out as its UTF-8 bytes, click any byte to locate it, and check whether an offset lands in the middle of a character.

  • Byte strip you can click
  • Mid-character warning
  • UTF-16 ⇄ byte lookup
  • Context window
  • CSV · hex dump · GIF · video
  • Runs in your browser
At this byte
–character
Inspecting…––
  • UTF-8 bytes–
  • Code points–
  • UTF-16 units–
  • 1-byte–
  • 2 / 3-byte– / –
  • 4-byte–

Text

0 / 30,000 UTF-16 units

Try the example or enter your own input.

Find a position

Context around the offset

Characters by UTF-8 length

Byte strip · click a byte

1 byte2 bytes3 bytes4 bytes

Result (CSV)

Copy & download

Offsets count code points, not user-perceived grapheme clusters. Unpaired UTF-16 surrogates encode as replacement characters. The GIF and videos show each character splitting into its bytes.

Using UTF-8 Byte Offset Inspector

Map characters to UTF-8 byte offsets and UTF-16 indices to investigate parser errors and multibyte text.

  1. Load the example or paste text.
  2. Choose settings, run locally and review warnings.
  3. Copy or download the result and the optional JSON report.

Example

Aé🙂
Z

Questions & answers

What does this tool do?

Map characters to UTF-8 byte offsets and UTF-16 indices to investigate parser errors and multibyte text.

What should I check before using the result?

Offsets count code points, not user-perceived grapheme clusters. Unpaired UTF-16 surrogates encode as replacement characters.

Is there an upload or installation?

Processing runs in a local browser worker with no processing upload. No account or installation is required. Website ads and analytics follow the site privacy policy.

What input sizes are supported?

Each input supports 250,000 UTF-16 units and UTF-8 files up to 500 KB. Jobs stop after 15 seconds. Report previews show 200 rows; downloaded reports include all computed rows.

Will my work be saved?

No automatic storage is used. Download the result and report before leaving. Changing input invalidates previous output.

What can I download or copy?

From the page: Download report JSON, Hex dump (.txt), Markdown, PNG, PDF, Animated GIF, WebM video, MP4 video, ZIP of everything. Everything is created in your browser.

Help improve this tool

Report a problem or suggest an improvement

Describe the issue without pasting private tool input. Feedback goes to our admin inbox.

Find another tool · Read practical guides