Text & data TOOL

Character count

Count characters, words, lines and UTF-8 bytes.

01

Enter your text

On-device processing
Input · Up to 2 MB
02

Output options

Counts visible characters, Unicode code points, words, lines and UTF-8 bytes separately.

No account. No uploads.

Character count · How to use

Count characters, words, lines and UTF-8 bytes.

Example

Hello contains five visible characters and uses five UTF-8 bytes.

Things to know

Characters, code points, words, lines and bytes differ. Emoji and combining characters can produce different counts.

Your files and results are never sent to a server. Everything is processed in this browser.

How to count characters, words and bytes accurately

Check an application essay against its character limit, or measure text before pasting it into a field with a length cap. Visible characters, Unicode code points and UTF-8 bytes are reported separately, so you can match whichever rule the limit uses.

When to use this tool

  • Keep an application essay within a character limit
  • Check the UTF-8 byte length of a string for a database column
  • Measure a social post that contains emoji
  • Count words and lines in a translation draft

Step-by-step instructions

  1. Paste the text you want to measure into the input box.
  2. Choose Convert.
  3. Read the characters, words, lines and utf8Bytes values in the result.
  4. If a site counts length differently, compare the codePoints and utf16Units values as well.

Frequently asked questions

Can I count characters without spaces?

The characters value includes spaces and line breaks, and no separate no-spaces count is shown. Replace a single space with nothing in the find and replace tool, then count again; line breaks will still be included.

Why do emoji change the count?

A single emoji is one visible character, but it often takes two or more UTF-16 units and four or more UTF-8 bytes, and some emoji combine several code points. Sites that limit length by code units or bytes will count it as longer than one character.

How are words counted?

The browser's word segmentation is used, so punctuation and emoji are not counted as words and numbers such as 3.14 count as one. Hyphenated words like e-mail may count as two.

Save only the tools you need.