Skip to content
Allin

Number of Digits Calculator

Count the digits of any integer in any base from 2 to 36, with the digit sum, product, first and last digit, and palindrome and repdigit flags.

Number of Digits Calculator is free to use as often as you like, directly from this page. Its place is under Numbers & arithmetic; e Digits Calculator (Euler's Number) and Pi Digits Calculator answer the questions closest to this one.

How to use it

  1. Open the tool — no signup or install needed.
  2. Enter your input or adjust the available options.
  3. Get your result instantly, then copy or download it.

Frequently asked questions

What does Number of Digits Calculator do?

Count the digits of any integer in any base from 2 to 36, with the digit sum, product, first and last digit, and palindrome and repdigit flags.

When would I actually use this?

Reading a number written another way: a Roman numeral on a monument, a hexadecimal colour, a binary byte, or a fraction that needs reducing.

What is the most common mistake?

Assuming a decimal fraction survives a change of base. A tenth is exact in decimal and infinitely repeating in binary, which is why 0.1 + 0.2 is not 0.3 in most programming languages.

How is Number of Digits Calculator different from e Digits Calculator (Euler's Number)?

They sit next to each other but answer different questions: e Digits Calculator (Euler's Number) is the one to open when you need it to compute up to 1,000 decimals of Euler's number e from the series Σ 1/k!, with digit frequencies, a digit search and the 1828 1828 trap explained. Pick whichever matches what you're starting from — both are free.

Is there a tool for the next step?

Pi Digits Calculator is the closest one after this: Compute up to 10,000 decimals of π live in your browser, search any digit string, see the digit frequencies and the Feynman point.

What else is worth having open alongside it?

Amicable Number Checker and Number Pattern Finder — they come up in the same task often enough to be worth a second tab.

Where do the figures come from?

Base conversion and number-theory results are exact. Roman numerals follow the standard subtractive form used since the Middle Ages, which is not the only one the Romans themselves used.

Further reading

All guides