Skip to content
OddsockLocal
Local
Source text
Words15
Characters66
Sentences2
Reading time5 sec
Words15
Characters66
Sentences2
Reading time5 sec
15 wordsRuns in this browser. Nothing is uploaded.

How to use

  1. Paste the text.
  2. Read characters for a code-point limit.
  3. Read without whitespace if spaces should not count.
  4. Read UTF-8 bytes if the database column or the file format is measured in bytes.

What is Character counter?

A character limit and a byte limit are different ceilings. This page reports three numbers: characters, characters without whitespace, and UTF-8 bytes. “Odd socks in the dryer.” is 23 characters, 19 without the four spaces, and 23 UTF-8 bytes, because every letter in it is ASCII.

Read more

The character count is Unicode code points, not keystrokes and not graphemes. “é 🙂” is 3 characters (e-acute, a space, an emoji), 2 without whitespace, and 7 UTF-8 bytes, because é is two bytes and the emoji is four. A limit written in bytes will fill up while the character count still looks small. A limit written in characters will not care that the emoji is heavy.

Whitespace includes more than the space bar: newlines and tabs drop out of the without-whitespace figure. This page does not count words, lines, or reading time. The word counter and the text analyzer do that. It also does not know about a platform that counts an emoji as two, which is what the post length checker estimates for X.

Use cases

  • A developer checking a 23-byte field against a 23-character sentence.
  • A writer who added an emoji and needs the byte count, not the character count.
  • A translator comparing an accented word’s characters with its UTF-8 size.
  • A form author deciding whether the limit is keystrokes or bytes.
  • Someone who wanted words and should be on the word counter instead.

An ASCII sentence, three counts

Odd socks in the dryer.

23 characters, 19 without whitespace, 23 UTF-8 bytes. The four spaces are the gap between 23 and 19. Bytes match characters only because the letters are ASCII.

Why use Oddsock

Oddsock runs this in your browser. It is free, it does not upload the work, and it does not ask for an account.

Related tools

Using this tool

“Odd socks in the dryer.” is 23 ASCII characters, and ASCII is one byte each. “é 🙂” is 3 characters and 7 bytes.