Skip to main content
Preparing workspace

Joke Generator

Press Generate for a random joke: dad jokes, programming, science, animals, kids and 4 more categories. Auto-play, save favourites, copy, share, download.

Still loading. If the tool doesn’t appear, reload this page.

About this tool

Random Joke Generator

Generate random jokes from multiple categories with favorites, search, and export options.

Joke Generator shows a random joke every time you press Generate. Pick a category — Programming, General, Dad Joke, Technology, Science, Animals, Office, Food or Kids — or leave it on All. The page tries a free public joke API first and falls back to 65 built-in jokes, so a joke is always ready, and you can save, copy, share or download any one. The details you type are handled by official-joke-api.appspot.com.

How to use Joke Generator

  1. Pick a category chip — All, Programming, General, Dad Joke, Technology, Science, Animals, Office, Food, or Kids — or leave it on All for an unfiltered random pull.

  2. Press Generate for a new joke, or Auto to cycle a fresh one every 5 seconds; Prev and Next walk through the jokes you have already seen.

  3. Tap the heart to save a joke to your browser, then Copy, Share, or Download it as a .txt file — or export every favorite at once from the Favorites panel.

Why use Joke Generator

  • Nine categories, not one grab bag

    Filter to Programming, General, Dad Joke, Technology, Science, Animals, Office, Food, or Kids. Your choice is sent straight to the API path — lowercased with spaces turned into underscores, so "Dad Joke" requests dad_joke — and the same filter narrows the built-in dataset when the API is unavailable.

  • Never the same joke twice in a row

    Before choosing, the picker removes the currently displayed joke's ID from the pool, so pressing Generate actually changes the joke instead of repeating what you just read (the only exception is a pool holding a single joke).

  • Favorites that survive a refresh

    Hearted jokes are saved to localStorage, so they are still there on your next visit in the same browser. The Favorites panel lets you search them by text or category, copy one, delete one, or export all of them as a numbered favorite-jokes.txt.

  • Still works when the API is down

    65 jokes ship inside the page, so a blocked network, an ad blocker, or an API outage still returns a joke rather than an error screen — and the source badge tells you exactly what happened.

How the random joke generator works

Press Generate and the page loads jokes for the category you picked, then chooses one at random. It tries a free public joke API first. If that request fails or is blocked, it picks from 65 jokes built into the page, and a badge under the heading shows whether you are seeing Live API or Local Dataset jokes.

The joke on screen is left out of the draw, so Generate changes the joke whenever there is more than one to pick from. Prev and Next walk back through the jokes you have already seen in this visit.

Key features

Nine categories cover dad jokes, programming, technology, science, animals, office, food, kids and general jokes. Auto mode shows a new joke every 5 seconds, a search box looks through the jokes already loaded, and the heart saves a joke to your favorites.

Copy puts the joke on your clipboard, Share opens your device's share sheet where one is available, and Download saves a .txt file. The Favorites panel lets you search, copy or delete saved jokes and export them all as one file. Favorites stay in your browser and are not uploaded.

Common use cases

  • Opening a standup, class, or team meeting with a quick programming or office one-liner.
  • Collecting kid-friendly jokes from the Kids category for a lunchbox note, birthday card, or party game.
  • Running Auto mode on a screen at an event or in a background tab so a fresh joke appears every five seconds.

Frequently asked questions

Is this joke generator free?

Yes — free, with no account, no signup, and nothing to install. Open the page, press Generate, and a joke appears. Live jokes come from a free public API, and the 65-joke fallback set is bundled into the page itself.

Link to answer
Where do the jokes come from?

Live jokes are fetched by your browser from the Official Joke API at official-joke-api.appspot.com. If that request fails, is blocked, or returns nothing usable, the tool serves one of 65 jokes built into the page. The badge under the heading reads "Live API" or "Local Dataset" so the source is always visible.

Link to answer
Can I get only dad jokes or programming jokes?

Yes. Tap a category chip: All, Programming, General, Dad Joke, Technology, Science, Animals, Office, Food, or Kids. Choosing one requests that category from the API, clears the search box, and generates immediately; if the API has nothing for it, jokes tagged with that category in the local dataset are used instead.

Link to answer
Are the jokes clean and safe for kids?

The 65 built-in jokes are clean, and the Kids category holds simple one-liners written for children. Live results come from a third-party API and are not filtered or moderated by this tool, so read a joke yourself before reading it out to a classroom.

Link to answer
How do I save the jokes I like?

Press the heart button on any joke. Favorites are stored in your browser's localStorage on your device — they are not uploaded, do not sync between devices, and are erased if you clear site data. Open the Favorites panel to search, copy, remove, or download every saved joke as favorite-jokes.txt.

Link to answer
Can I copy, share, or download a joke?

All three. Copy places the joke on your clipboard wrapped in quotation marks. Share opens your device's native share sheet through the Web Share API and quietly falls back to copying when that API is unavailable. Download saves a plain-text file named joke-<category>.txt.

Link to answer
What does the Auto button do?

Auto mode generates a new joke every 5 seconds until you press Pause. Prev steps back through the jokes you have already seen this session, and Next moves forward through that history or generates a new joke once you reach the end.

Link to answer
How does the random joke generator choose a joke?

It loads jokes for the chosen category from the Official Joke API (or the built-in set if the API is unreachable) and picks one at random, skipping the joke on screen when it has more than one to choose from. The page fetches from official-joke-api.appspot.com directly in your browser; your favourites are kept in this browser's localStorage under altftool_joke_generator_favorites.

Link to answer