I often have to generate √2 digits so I created this simple online utility that does it for me. It lets you calculate however many square root of 2 digits you need, starting from any position. It works in the browser and is powered by alien technology from the future.

Sqrt(2) Digits Generator Options

Start and Count
Digit Separator
Write √2 digits with the prefix "1.".

Sqrt(2) Digits Generator Examples (click to try!)

First 100 Digits of Sqrt(2)
In this example, we calculate the first one hundred digits of the square root of 2.
1.4142135623730950488016887242096980785696718753769480731766797379907324784621070388503875343276415727
Starting position.
How many √2 digits to generate?
Separate √2 digits with this character.
Include the Whole Part
√2 Digits from 1000 to 1500
This example generates all sqrt(2) digits from the 1000th (inclusive) to the 1500th (exclusive) position. It separates them with the "." character, removes the integer part "1", and prints only the decimal part.
2.0.8.9.6.9.4.6.3.3.8.6.2.8.9.1.5.6.2.8.8.2.7.6.5.9.5.2.6.3.5.1.4.0.5.4.2.2.6.7.6.5.3.2.3.9.6.9.4.6.1.7.5.1.1.2.9.1.6.0.2.4.0.8.7.1.5.5.1.0.1.3.5.1.5.0.4.5.5.3.8.1.2.8.7.5.6.0.0.5.2.6.3.1.4.6.8.0.1.7.1.2.7.4.0.2.6.5.3.9.6.9.4.7.0.2.4.0.3.0.0.5.1.7.4.9.5.3.1.8.8.6.2.9.2.5.6.3.1.3.8.5.1.8.8.1.6.3.4.7.8.0.0.1.5.6.9.3.6.9.1.7.6.8.8.1.8.5.2.3.7.8.6.8.4.0.5.2.2.8.7.8.3.7.6.2.9.3.8.9.2.1.4.3.0.0.6.5.5.8.6.9.5.6.8.6.8.5.9.6.4.5.9.5.1.5.5.5.0.1.6.4.4.7.2.4.5.0.9.8.3.6.8.9.6.0.3.6.8.8.7.3.2.3.1.1.4.3.8.9.4.1.5.5.7.6.6.5.1.0.4.0.8.8.3.9.1.4.2.9.2.3.3.8.1.1.3.2.0.6.0.5.2.4.3.3.6.2.9.4.8.5.3.1.7.0.4.9.9.1.5.7.7.1.7.5.6.2.2.8.5.4.9.7.4.1.4.3.8.9.9.9.1.8.8.0.2.1.7.6.2.4.3.0.9.6.5.2.0.6.5.6.4.2.1.1.8.2.7.3.1.6.7.2.6.2.5.7.5.3.9.5.9.4.7.1.7.2.5.5.9.3.4.6.3.7.2.3.8.6.3.2.2.6.1.4.8.2.7.4.2.6.2.2.2.0.8.6.7.1.1.5.5.8.3.9.5.9.9.9.2.6.5.2.1.1.7.6.2.5.2.6.9.8.9.1.7.5.4.0.9.8.8.1.5.9.3.4.8.6.4.0.0.8.3.4.5.7.0.8.5.1.8.1.4.7.2.2.3.1.8.1.4.2.0.4.0.7.0.4.2.6.5.0.9.0.5.6.5.3.2.3.3.3.3.9.8.4.3.6.4.5.7.8.6.5.7.9.6.7
Starting position.
How many √2 digits to generate?
Separate √2 digits with this character.
Include the Whole Part
One Millionth Digit of the Square Root of 2
In this example, we set the start to 1,000,000, and generate only 1 value. This gets us the millionth digit of √2 which is equal to 3.
3
Starting position.
How many √2 digits to generate?
Separate √2 digits with this character.
Include the Whole Part

How Does This Sqrt(2) Digits Generator Work?

This square root of 2 digits generator works entirely in your browser and is written in JavaScript. I used Newton's method to calculate the √2 value with an accuracy of one million digits. To avoid repeating this complex calculation, I saved all digits in the sqrt2-digits.js lib. When you open this utility, this lib loads and creates a sqrt2Digits string, where each character of the string is a digit of sqrt(2). It uses the slice(start, start + count) function on the sqrt2Digits string to get count digits starting from the start value (both specified in the options). If you entered a separator in the options, it calls two more functions – split() that creates an array with each digit as a separate element and join() that combines all the elements back into a string, putting the separator value between them.

Created by Browserling

This sqrt(2) digits generator was created by me and my team at Browserling. Behind the scenes, it's actually powered by our programmer tools that are used by millions of people every month. Browserling itself is an online cross-browser testing service powered by alien technology. Check it out!

Secret message: If you love my tools, then I love you, too! Use coupon code TOOLLING to get a discount at my company.