Blog
Text tools

Digit counter online

Counts individual digit characters (0-9), not whole numbers: in "2024" that's four digits, not one number. If you need to count numbers as quantities, use the number counter instead.

Your data never leaves this device

Result

Digits
Share of text length
Other characters

This page has no server side at all. The table you paste is parsed by JavaScript inside your own browser, the chart is drawn on a canvas element on your machine, and the export file is assembled locally. Nothing is uploaded, stored or written to any log. You can disconnect from the network after the page has loaded and everything will still work — which is the simplest way to verify the claim yourself.

Facts and limits of this method

Digit Any one of the ten characters 0-9
Not counted Minus sign, decimal separator, thousands separator
Share digits ÷ total text length × 100%
Difference from the number counter "2024" is 4 digits here, 1 number there

When it misleads you

How it is calculated

The tool goes through every character in the text and checks whether it falls in the 0-9 range.

The share of text length is obtained by dividing the digit count by the total text length (in characters) and multiplying by 100.

"Other characters" is the difference between the total text length and the number of digits found: letters, spaces, punctuation and everything else.

Counting is done by code point, so multi-byte characters (emoji, some accented letters) are treated as non-digits and fall into "other."

Questions and answers

How is this different from the number counter?

This counter counts individual 0-9 characters. The number counter looks for whole numbers as sequences — "2024" is one number to it, not four digits.

Is a minus sign before a number counted?

No, a minus sign isn't a digit, it's not included in the count.

Does a thousands-separator space ("12 500") affect the count?

No, only the digits themselves are counted — 5 digits in "12 500" regardless of the space between them.

Is my text sent anywhere?

No, the whole count runs in your browser.

Related tools

All tools