EN
PortuguêsEnglishEspañol
All tools
Online games 100% free

Guess the number

Guess the secret number game: the computer picks a number and tells you if your guess is higher or lower, until you get it right.

Thank you so much for helping!

Every donation helps pay for the servers and keeps the tools free for everyone. Pick or type an amount:

Secure payment by Stripe. Opens in a new tab.

Back to Games

Guess the secret number

–

    Available in: PortuguêsEspañolEnglish

    Advertisement

    Guess the number: what it is for

    Choose the range (1 to 10, 1 to 100 or 1 to 1,000) and guess until you hit the secret number, with a higher or lower hint after each guess. In reverse mode, the computer uses binary search to guess the number you picked in just a few tries.

    How to use

    1. Choose the mode and range.
    2. Make guesses or answer higher and lower.
    3. Get it in as few tries as possible.

    When to use it

    • Teach binary search in a fun way.
    • Play with kids and practice numbers.
    • A quick pastime.

    Frequently asked questions

    What is the best strategy?

    Always guess the middle of the range that is left. That cuts the possibilities in half with every guess, so you find a number from 1 to 100 in at most 7 tries. It is the idea behind binary search, used in programming.

    Can we switch roles?

    Yes. In The computer guesses mode, you think of a number and answer whether its guess is higher, lower or right.

    Is it really free?

    Yes, 100% free. No sign-up, no subscription and no usage limits. All Tools123 tools are free and run right in your browser.

    Similar tools

    The tools are provided as is, without warranty. We are not responsible for the results or for how they are used.