Inspectors

String Inspector

Paste a string and get detailed statistics about it. The tool shows character count, word count, line count, byte count (UTF-8), and Unicode code point count. These counts can differ — an emoji is one character but multiple bytes and multiple code points — so the tool breaks them all out separately. Useful for debugging encoding issues or checking string length limits.

String Inspector — Inspect length, words, lines, bytes and unicode code points

What it does

  • Counts characters (including multi-byte characters like emoji)
  • Counts words, lines, and sentences
  • Counts UTF-8 bytes (how much storage the string actually uses)
  • Counts Unicode code points (some characters are multiple code points)
  • Shows the Unicode category of each character (letter, digit, symbol, etc.)

Use cases

  • Checking if a string fits within a database column or API field limit
  • Debugging encoding issues where character count and byte count differ
  • Counting words in a document or text for content analysis
  • Inspecting how emoji and special characters affect string length

How it works

1

Paste your string into the input pane

2

The tool computes all statistics instantly

3

Character, word, line, byte, and code point counts are displayed

4

Review the breakdown to understand the string's composition

Frequently asked questions

1Why do character count and byte count differ?

Characters are counted by Unicode code units (UTF-16), while bytes are counted in UTF-8 encoding. An emoji like 😀 is 2 characters (surrogate pair in UTF-16) but 4 bytes in UTF-8. The tool shows both so you can understand the actual storage and display implications.

2What are Unicode code points?

Code points are the fundamental units of Unicode — each one is a unique number assigned to a character. Some visible characters (like emoji with skin tones or family emoji) are composed of multiple code points joined by zero-width joiners. The code point count may differ from the character count for these.

3Can I use this to check Twitter/X character limits?

Yes. Social platforms typically count by Unicode code point or grapheme cluster, not by bytes. The character count shown here is a good approximation, though platform-specific counting may vary slightly.

Related tools

Use String Inspector offline in Devinity

All 95 tools run locally on your Mac. No internet required, no data sent to servers.

Download Devinity →