Fibonacci Generator 🔒 Your data never leaves your browser.

Generate the Fibonacci sequence up to any number of terms.

About this tool

The Fibonacci sequence starts 0, 1 and from there every number is simply the sum of the two before it — 0, 1, 1, 2, 3, 5, 8, 13, 21, and on forever. It shows up again and again in nature, from the branching of trees to the spiral packing of seeds in a sunflower head and the chambers of a nautilus shell, which is part of why it's a favorite first example in math education.

This generator uses arbitrary-precision (BigInt) arithmetic, so even the 1000th term — a number hundreds of digits long — comes out exact, not rounded or approximated the way ordinary floating-point numbers would be. Enter how many terms you want (up to 1000), and the full sequence is computed instantly, entirely in your browser.

Frequently asked questions

Why use BigInt instead of regular numbers for large terms?

JavaScript's regular numbers can only represent integers exactly up to 2^53 (about 9 quadrillion) — and the Fibonacci sequence blows past that after around the 78th term. Beyond that point, regular numbers start silently losing precision, giving subtly wrong results that look plausible. BigInt has no such limit, so this generator stays exact even at the 1000th term, which is a genuinely enormous number (hundreds of digits long).