Free online tools to generate, calculate,
convert, format, encode, and play.
 

Number Guessing Game

Guess the secret number. After each guess you'll be told if the answer is higher or lower.

Enter a number and press Guess!
?
Range: 1 – 100
GUESSES
0
BEST
–
WINS
0

How to Play

Objective

The computer picks a secret number within a range. Your goal is to guess it in as few attempts as possible. After each guess, you'll be told whether the secret number is higher or lower.

Difficulty Levels

  • Easy: Number between 1 and 50
  • Medium: Number between 1 and 100
  • Hard: Number between 1 and 500

Controls

  • Type your guess and press Enter or click Guess
  • N — New Game

Tips

  • Use binary search: always guess the middle of the remaining range
  • On Easy (1–50), you can always win in 6 guesses or fewer
  • On Medium (1–100), 7 guesses is optimal worst case
  • On Hard (1–500), 9 guesses is optimal worst case
  • Watch the range bar narrow as you eliminate possibilities

Embed This Util

You can embed this util on your own site as a widget. Adding ?embed=1 to the URL loads a compact version with just the tool itself; no header, menu, or documentation. Paste this snippet into your HTML:


    

Copy snippet Adjust the height to taste.



Feedback

Help us improve this page by providing feedback, and include your name/email if you want us to reach back. Thank you in advance.


Share with