textname

Character counter

Paste or type your text and every count updates as you type: characters with and without spaces, words, lines, sentences, letters, digits and the byte size of the text.

Runs locally in your browser

How it works

Characters are counted as code points, which means a single emoji or an accented letter counts as one character even though it may be stored as two UTF-16 units. Removing spaces from that count gives the figure forms and bios usually cap. Words are runs separated by whitespace, lines are separated by line breaks and sentences by . ! ? and …. Letters and digits use Unicode properties, so they are counted correctly in scripts other than Latin. Bytes are measured in UTF-8: plain ASCII costs one byte, most Latin and Cyrillic characters cost two, and an emoji costs four, which matters when a service counts bytes rather than characters.

Worked example

Hello, world! is 13 characters and 12 without spaces, because only the comma and the exclamation mark are not letters and there is one space to remove. It holds 2 words, 1 line, 1 sentence, 10 letters, 0 digits and 13 bytes — the count is 13 bytes because every character in it is a single-byte ASCII character.

Questions and answers

Everything runs in your browser: your text, file or value is never uploaded anywhere.