Live API · 4000+ Questions · No Signup

Random Question Generator
test your knowledge.

Get a random trivia question by category and difficulty. Pick an answer, reveal the correct one. Powered by the Open Trivia Database — free, no signup, works in your browser.

Random Question Generator

Choose a category and difficulty, then click Generate a Question

/ 01 — How It Works

Pick a category. Get a question.

01

Choose Category

Select from 12 categories — Science, History, Geography, Sports, Animals, Film, Music, and more. Or pick Any for a fully random question.

02

Set Difficulty

Filter by Easy, Medium, or Hard. Leave it on Any to get a mixed experience across all difficulty levels.

03

Answer & Reveal

Click an answer option to make your guess, or click Reveal Answer directly. The correct answer is highlighted immediately.

04

Automatic Fallback

If the primary API (opentdb.com) is unavailable, a secondary source (the-trivia-api.com) is tried automatically — zero downtime.

/ 02 — Categories

What topics can you explore?

Knowledge & Science

Science & Nature

Biology, chemistry, physics, astronomy, and natural sciences. From the microscopic to the cosmic.

Category ID: 17
Computers

Hardware, software, programming languages, algorithms, and the history of computing.

Category ID: 18
History

World history, wars, empires, revolutions, and the key events that shaped civilization.

Category ID: 23

Arts & Entertainment

Film & TV

Questions about movies, directors, actors, iconic scenes, and television series.

Category ID: 11
Music

Artists, albums, lyrics, music history, genres, and musical theory questions.

Category ID: 12
Video Games

Games, consoles, characters, game studios, and gaming history from Atari to modern day.

Category ID: 15

World & Sports

Geography

Countries, capitals, continents, flags, rivers, mountains, and world maps.

Category ID: 22
Sports

Athletics, football, basketball, tennis, Olympics, records, and sporting history.

Category ID: 21
Animals

Wildlife, habitats, behaviors, animal records, and the animal kingdom in all its diversity.

Category ID: 27
/ 03 — FAQ

Questions people ask

Where do the questions come from?

Questions are fetched live from the Open Trivia Database (opentdb.com) — a free, community-maintained trivia database with over 4,000 verified questions. A secondary API (the-trivia-api.com) is used as backup.

Is any data sent to a server?

The only requests made are to the public trivia APIs to fetch a question. No personal data is transmitted or stored by us.

Can I filter by category or difficulty?

Yes. Use the category and difficulty dropdowns to narrow results. Select 'Any' for a fully random question across all topics.

What does the answer reveal button do?

Each question comes with the correct answer hidden. Click 'Reveal Answer' to see it. The answer is always fetched alongside the question from the API.

How many questions are available?

The Open Trivia DB has over 4,000 verified questions across 24 categories and 3 difficulty levels. Combined with the secondary API, you have thousands of unique questions.

Ready to test your knowledge?

Generate a Question Now →