Skip to main content

String Inspector

New

Deep-inspect any string: byte length, entropy, character types, encoding, line endings.

stringinspectunicodebytesanalysis
Read the guide
Shortcuts:⌘ KSearch

Character breakdown

Language: Unknown

Encoding checks

First 10 unique characters

0 unique

Insights

Frequently Asked Questions

Why are Length, Code points, and UTF-8 bytes all different?

Length is the JavaScript string length in UTF-16 code units, Code points is based on Array.from(), and UTF-8 bytes comes from TextEncoder. Emoji and some non-Latin characters are where those counts diverge most.

How does the Language badge work?

It is really a dominant-script detector, not a natural-language classifier. The tool scores characters against Unicode script regexes like Latin, Cyrillic, CJK, Arabic, and Hangul and labels mixed cases accordingly.

What does the entropy number actually mean here?

It is Shannon entropy per character based on the frequency of characters in the current string. It is useful for comparing repetition versus variety, but it is not a proof that a password or token is secure.

Can it spot hidden text issues like BOMs, null bytes, or mixed line endings?

Yes. It explicitly checks for a leading BOM, embedded null bytes, emoji presence, and whether line endings are LF, CRLF, CR, mixed, or single-line.

What does "Valid UTF-8" mean in this tool?

It means the browser can round-trip the current JavaScript string through TextEncoder and a fatal UTF-8 TextDecoder without the content changing. It is not a validator for arbitrary raw byte streams pasted outside the browser string model.

Related Tools