Toolonit
  1. Home
  2. Math
  3. Big Number Calculator

Big Number Calculator

Work out long expressions with huge numbers exactly, in decimal, hex, octal or binary.

Show as
Digits
Angles
Operators, functions and constants
+ − × ÷ ^ ! % ( )
2^256 · 100! · 17 % 5 (mod) · (1 + 2) × 3
OR AND XOR SHL SHR << >> | &
0xF0 OR 0x0F · 1 << 64
0x · 0 · 0b · e · r
0xFF · 017 · 0b1010 · 6.02e23 · (200r / 300r)^100
sqrt cbrt root abs exp ln log log2 log10
root(32, 5) · log(8, 2)
sin cos tan asin acos atan atan2 sinh cosh tanh
sin(30) · atan2(1, 1)
floor ceil round trunc gcd lcm nCr nPr min max
round(pi, 5) · gcd(462, 1071) · nCr(52, 5)
pi e tau phi ans · x = …
r = 3 · pi r^2 · ans * 2 · # …

Type long expressions with numbers of any size, one calculation per line, and get exact answers: 2^256, 1000! or 355/113 in full, not cut to 16 digits like an ordinary calculator. Roots, π, logarithms and trigonometry go to as many digits as you choose, whole-number results can be shown in hex, octal or binary, and hex, octal and bitwise operators (AND, OR, XOR, shifts) work as in code. Everything is calculated in your browser, so what you type never leaves your device; it's free and needs no sign-up.

How to use the calculator

  1. Type one expression per line, such as 2^256, 100!, 0xFF XOR 0b1010 or x = 355/113 (a name you can use on the lines below).
  2. Results appear as you type: choose DEC, HEX, OCT or BIN, the number of digits and Add spaces, then copy one result or all of them.

Features

  • Exact integers and fractions up to a million digits; roots, π and logarithms to up to 1,000 digits
  • Hex, octal and binary input and output, with AND, OR, XOR and shifts

Is it private?

Yes. Every calculation runs in your browser with WebAssembly; nothing you type is uploaded or stored.

Frequently asked questions

How big can the numbers be?

Up to about a million digits per result. Integers and fractions stay exact at any size up to that (10000! has 35,660 digits and is shown in full), while results that can't be exact, such as √2 or π, are rounded to the number of digits you choose, up to 1,000.

What do %, 0x and a leading 0 mean?

As in programming: % is the remainder (17 % 5 = 2), 0x starts a hex number (0xFF = 255), 0b a binary one, and a number starting with 0 is octal (017 = 15). An r after a number, as in 200r, is accepted too: every number here is already an exact fraction.

Related tools