UTILS.
Private by default
φ

Fibonacci Sequence

Generate the first N Fibonacci numbers exactly using big integers.

Your files stay on this device

Files are processed in your browser, never uploaded. The site downloads code and assets to run the tools. No accounts or trackers.

Use Download to save this tool as one HTML file for offline use.

Privacy →

About this tool

Fibonacci Generator lists the first N numbers of the Fibonacci sequence, where each term is the sum of the two before it. Enter a whole number from 1 to 1000 and the sequence appears as a comma-separated list that you can copy.

The sequence starts at 0, so N = 10 gives 0, 1, 1, 2, 3, 5, 8, 13, 21, 34. Calculation uses JavaScript BigInt, so there is no rounding at all: the 100th number and every term beyond it is exact, whereas ordinary floating-point numbers lose accuracy above about 9 quadrillion (2^53). The 1000th term has more than 200 digits, and the output is shown in full without scientific notation.

The field accepts digits only. Decimals, negative values, zero and empty input show no result, and anything above 1000 shows a too-large message to keep the page responsive. This lists terms in order; it does not look up a single term by position or test whether a number is a Fibonacci number. The ratio of consecutive terms approaches the golden ratio, about 1.618. Everything runs locally in your browser.

Frequently asked questions

Where does the sequence start?
With 0 and 1, so the first terms are 0, 1, 1, 2, 3, 5, 8. N counts the terms listed, starting from the 0.
How many numbers can I generate?
Up to 1000 terms. Larger values show an error to keep the page responsive.
Are large terms exact?
Yes. It uses BigInt integer arithmetic, so every digit is exact. Normal JavaScript numbers lose precision above 2^53, which happens around the 79th term.
Why do I get no output?
N must be a whole number of at least 1, made of digits only. Empty, zero, negative, decimal or non-numeric input shows no result.

More tools