Text

Count Characters

Count runes.

How to use Count Characters

Count Characters — Count Unicode code points (runes), not bytes and not grapheme clusters. Free to use in D2i DevTools — no account required.

Steps

  1. Fill in Input. This field is required.
  2. Click Run and copy the result under the form.

Frequently asked questions

What is Count Characters used for?

Use it when you need the same character count Go’s len([]rune(s)) would report.

How do I use the free online Count Characters tool?

Fill in Input. This field is required. Click Run and copy the result under the form.

What can I paste or upload into Count Characters?

Paste the text you want measured. The box can hold multiple lines.

What output does Count Characters give me?

A single integer. é is one if it is a single code point, and two if it is e plus a combining accent.

Is Count Characters free, and is my input private?

Yes — Your input is processed in memory for this request only. It is not saved to disk or the database, and it is cleared after the tool finishes.

Why does this disagree with Count Bytes?

Count Bytes is UTF-8 length. Characters outside ASCII use more than one byte, so the byte count is higher.

Inputs are processed in memory only and are not saved to disk or the database. Data exists only for the duration of your request.