Character Counter

Character Counter

Use cases

  • Input limit testing

    Make text of an exact length to check what happens at the limit and one character over it.

  • Posts and ad copy

    Paste your text to check its character and line counts right away.

  • Database size checks

    Use the UTF-8 byte count to check that text fits the space you can store.

How to count characters

  1. Type or paste your text.
  2. Check the characters, characters without whitespace, lines, and UTF-8 bytes. They update as you type.
  3. To get text of an exact length, set the target characters, choose the characters to add, and select Adjust text.
  4. Select Copy result to put the adjusted text on your clipboard.

Features

  • Shows characters, characters without whitespace, lines, and UTF-8 bytes at once
  • Counts each visible group of emoji or combining characters as one character
  • Pads or trims text to an exact length from 1 to 100,000 characters
  • Pads with lowercase, uppercase, digits, symbols, or hiragana, and can generate new text from a blank field
  • Your text is processed only in your browser

Frequently asked questions

Is my text sent to a server?
No. Counting and adjusting happen entirely in your browser.
Are spaces and line breaks counted?
Characters includes spaces and line breaks. The count without them is shown under Without whitespace.
How are emoji counted?
Emoji made of several symbols that look like one, such as family emoji and flags, count as one character. Older browsers may count them as several characters.
What are UTF-8 bytes?
The size of the text when stored as UTF-8. ASCII letters and digits take 1 byte each, most Japanese characters take 3 bytes, and emoji take 4 bytes or more. Use it to check database and API size limits.
Do I need to sign up or install anything?
No. Open the page and start using it in your browser.

Type or paste text to count characters, lines, and UTF-8 bytes in your browser.

Count results

Characters
0
Without whitespace
0
Lines
0
UTF-8 bytes
0

The character count includes whitespace and line breaks. Each visible group of emoji or combining characters counts as one character.

The line count uses entered line breaks and includes trailing empty lines. The byte count uses the text in the field encoded as UTF-8.

Adjust to an exact length

Short text is padded at the end, and long text is trimmed from the end. Leave the text blank to generate a new string.

Characters to add