#!/usr/bin/env python3 """Static site generator for bestdadjokes.lol. Python 3.6 stdlib only.""" import json, os, re, shutil, html, datetime ROOT = os.path.dirname(os.path.abspath(__file__)) CONTENT = os.path.join(ROOT, 'content', 'jokes.json') SITE_DIR = os.path.join(ROOT, 'site') STATIC = os.path.join(ROOT, 'static') SITE_URL = 'https://bestdadjokes.lol' SITE_NAME = 'Best Dad Jokes' TAGLINE = 'The best dad jokes on the internet โ short, clean, and groan-worthy.' YEAR = datetime.date.today().year with open(CONTENT) as f: DATA = json.load(f) CATS = DATA['categories'] JOKES = DATA['jokes'] CAT_BY_SLUG = {c['slug']: c for c in CATS} for i, j in enumerate(JOKES): j['id'] = i # Long-tail topic pages: jokes matched by keyword across all categories. TOPICS = [ {"slug": "coffee", "name": "Dad Jokes About Coffee", "emoji": "โ", "intro": "Fuel for dads and their worst puns alike. These coffee dad jokes are best served strong, black, and with a healthy amount of eye-rolling.", "keywords": r"\b(coffee|espresso|latte|caffeine|beans?|mugs?)\b"}, {"slug": "cats", "name": "Dad Jokes About Cats", "emoji": "๐ฑ", "intro": "For the cat dads out there. These cat dad jokes will make your feline walk out of the room in disgust โ which, for a cat, is a standing ovation.", "keywords": r"\b(cats?|kittens?|purr|feline|meow)\b"}, {"slug": "dogs", "name": "Dad Jokes About Dogs", "emoji": "๐", "intro": "A dog is the only audience that wags at dad jokes. Fetch! These dog dad jokes are good boys, every one of them.", "keywords": r"\b(dogs?|puppy|puppies|pup|hound)\b"}, {"slug": "cows", "name": "Dad Jokes About Cows", "emoji": "๐", "intro": "Outstanding in their field and in our pun archive. These cow dad jokes are udderly relentless.", "keywords": r"\b(cows?|cattle|moo|udder|beef|herd)\b"}, {"slug": "dad-jokes-about-fishing", "name": "Dad Jokes About Fishing", "emoji": "๐ฃ", "intro": "Reel in the groans with these clean fishing dad jokes. Hook, line, and sinker comedy for anglers and lake trips.", "keywords": r"\b(fish|fishing|angler|anglers|trout|salmon|bass|goldfish|sofishticated|stream|bait|tackle|reel|reeling|fisherman|fishermen|carp|catch|lake|rod)\b"}, {"slug": "pizza", "name": "Dad Jokes About Pizza", "emoji": "๐", "intro": "A slice of comedy gold. These pizza dad jokes are cheesy by design โ that's not a bug, it's the whole point.", "keywords": r"\b(pizza|pizzas|cheese|cheesy|crust|pepperoni|slice|slices|mozzarella)\b"}, {"slug": "money", "name": "Dad Jokes About Money", "emoji": "๐ฐ", "intro": "Money can't buy happiness, but it can buy these money dad jokes, which are basically the same thing but cheaper.", "keywords": r"\b(money|cash|coins?|dollars?|penn(y|ies)|bank|rich|spen[dt]|salary)\b"}, {"slug": "sleep", "name": "Dad Jokes About Sleep", "emoji": "๐ด", "intro": "Read these sleep dad jokes in bed. Groaning yourself to sleep counts as a lullaby.", "keywords": r"\b(sleep|nap|bed|pillow|blanket|tired|asleep|dream)\b"}, {"slug": "love", "name": "Dad Jokes About Love", "emoji": "โค๏ธ", "intro": "Romance, dad-style. These love dad jokes have walked someone down the aisle against their will and lived to pun about it.", "keywords": r"\b(love|romantic|valentine|marri(ed|age)|attract|wife|husband|buoy)\b"}, {"slug": "birthday", "name": "Birthday Dad Jokes", "emoji": "๐", "intro": "Because every birthday needs at least one groan with the cake. These birthday dad jokes are tradition now, sorry.", "keywords": r"\b(birthday|cake|candles?|party|presents?)\b"}, {"slug": "winter", "name": "Winter Dad Jokes", "emoji": "โ", "intro": "These winter dad jokes are snow joke. Perfect for breaking the ice at any cold-weather gathering.", "keywords": r"\b(winter|snow|snowman|ic(y|icle)|frost|chill)\b"}, {"slug": "school", "name": "Dad Jokes About School", "emoji": "\U0001F392", "intro": "Class clown certified jokes for teachers, students, and anyone who survived homework. These school dad jokes will get you a passing grade in groans.", "keywords": r"\b(school|teacher|class|student|homework|math|book|read|study)\b"}, {"slug": "cars", "name": "Dad Jokes About Cars", "emoji": "๐", "intro": "Drive everyone up the wall during your next road trip. These car dad jokes are strictly automatic when it comes to terrible punchlines.", "keywords": r"\b(car|drive|road|truck|tire|wheel|traffic)\b"}, {"slug": "teacher", "name": "Dad Jokes About Teachers", "emoji": "๐", "intro": "Grade A puns that will get you sent to the principal's office. These teacher dad jokes are strictly for extra credit.", "keywords": r"\b(teacher|teachers|teach|principal)\b"}, {"slug": "computer", "name": "Dad Jokes About Computers", "emoji": "๐ป", "intro": "Hard drive full of jokes? Boot up these tech puns. These computer dad jokes are guaranteed to crash your family dinner.", "keywords": r"\b(computer|computers|laptop|pc|keyboard|mouse)\b"}, {"slug": "snowman", "name": "Dad Jokes About Snowmen", "emoji": "โ๏ธ", "intro": "Frosty reception guaranteed. These snowman dad jokes are stone cold classics that will melt your heart (and your patience).", "keywords": r"\b(snowman|snowmen|frosty)\b"}, {"slug": "ocean", "name": "Dad Jokes About the Ocean", "emoji": "๐", "intro": "Water you waiting for? Dive into these shore-fire maritime puns. These ocean dad jokes will make waves at any beach party.", "keywords": r"\b(ocean|sea|beach|water|tides?|waves?|boat|ship|sail|sand|sharks?|fish)\b"}, {"slug": "moon", "name": "Dad Jokes About the Moon", "emoji": "๐", "intro": "These jokes are out of this world! Get ready for some stellar dad jokes about the moon.", "keywords": r"\b(moon|space|stars?|planet)\b"}, {"slug": "vacation", "name": "Dad Jokes About Vacation", "emoji": "๐๏ธ", "intro": "Time to pack your bags and your best puns! These dad jokes about vacation will have you laughing all the way to your destination.", "keywords": r"\b(vacation|trip|travel|holiday|packing)\b"}, {"slug": "food", "name": "Dad Jokes About Food", "emoji": "๐", "intro": "Hungry for a laugh? These dad jokes about food will hit the spot.", "keywords": r"\b(food|eat|dinner|lunch|breakfast|hungry|pizza|coffee|cheese|lettuce)\b"}, {"slug": "animals", "name": "Dad Jokes About Animals", "emoji": "๐", "intro": "Lions, tigers, and puns - oh my! Enjoy these wild dad jokes about animals.", "keywords": r"\b(animal|animals|dog|cat|fish|bird|bear|horse|cows?|deer)\b"}, {"slug": "music", "name": "Dad Jokes About Music", "emoji": "๐ต", "intro": "Strike a chord with these dad jokes about music. They are sure to be a hit.", "keywords": r"\b(music|song|sing|band|guitar|piano|drum|notes?)\b"}, {"slug": "clothing", "name": "Dad Jokes About Clothing", "emoji": "๐", "intro": "You will look stylish telling these dad jokes about clothing.", "keywords": r"\b(clothes|shirt|pants|shoes|hat|wear|socks?|tie|suit)\b"}, {"slug": "space", "name": "Dad Jokes About Space", "emoji": "๐", "intro": "These space dad jokes are out of this world.", "keywords": r"\b(space|astronauts?|planets?|moon|sun|stars|aliens?)\b"}, {"slug": "halloween-dad-jokes", "name": "Halloween Dad Jokes", "emoji": "๐", "intro": "The best clean Halloween dad jokes, spooky puns, and skeleton one-liners. Groan-worthy laughs for trick-or-treaters, kids, and family parties.", "keywords": r"\b(halloween|ghost|skeleton|pumpkin|spooky|vampire|zombie|witch|monster|bat|dracula|frankenstein|ghoul)\b"}, {"slug": "thanksgiving-dad-jokes", "name": "Thanksgiving Dad Jokes", "emoji": "๐ฆ", "intro": "Feast on the funniest Thanksgiving dad jokes! Clean turkey puns, dinner table groaners, and autumn laughs guaranteed to make the family roll their eyes.", "keywords": r"\b(thanksgiving|turkey|turkeys|pilgrim|pilgrims|cranberr\w*|stuffing|gravy|feast|yam|yams)\b"}, {"slug": "christmas-dad-jokes", "name": "Christmas Dad Jokes", "emoji": "๐", "intro": "Spread holiday cheer with the best Christmas dad jokes, Santa puns, and clean holiday one-liners. Perfect for Christmas cards and family gatherings.", "keywords": r"\b(christmas|santa|elf|reindeer|snow|winter|tree|present|holiday|sleigh|snowman)\b"}, {"slug": "dad-jokes-for-kids", "name": "Dad Jokes for Kids", "emoji": "๐ง", "intro": "Over 50 hilarious, 100% clean dad jokes for kids, students, and teachers. School-safe puns and corny one-liners that the whole family will love.", "keywords": r"\b(kid|child|children|school|teacher|student|boy|girl|math|science|homework|play|game)\b"}, {"slug": "work-dad-jokes", "name": "Work Dad Jokes", "emoji": "๐ข", "intro": "Break the ice at your next meeting with clean office dad jokes. Workplace-safe humor, corporate puns, and harmless water cooler groaners.", "keywords": r"\b(work|office|job|boss|meeting|employee|coworker|business|company|career)\b"}, {"slug": "software-engineers", "name": "Dad Jokes About Software Engineers", "emoji": "๐ป", "intro": "Did you hear about the programmer who got locked out of their house? They lost their keys! These software engineer dad jokes are fully debugged and ready to compile into instant groans.", "keywords": r"\b(software|engineer|engineers|code|coding|programmer|programmers|dev|developer|developers|debug|debugging|python|java|javascript|html|cache|server|servers|database|sql|hardware|udp|hobbyte|git)\b"}, {"slug": "clean-dad-jokes-for-5-year-olds", "name": "Clean Dad Jokes for 5 Year Olds", "emoji": "๐ง", "intro": "Why did the toddler cross the playground? To get to the other slide! These clean dad jokes for 5-year-olds are kindergarten-approved and perfectly tailored for the juice-box crowd.", "keywords": r"\b(clean|kid|kids|child|kindergarten|toddler|preschool|toy|toys|five|5|playground|sandbox|nursery)\b"}, {"slug": "dad-jokes-for-fathers-day", "name": "Dad Jokes for Father's Day", "emoji": "๐", "intro": "Honor the undisputed king of groans with hilarious Father's Day dad jokes and parenting puns that celebrate all things dad.", "keywords": r"\b(father|fathers|dad|dads|parent|parents|daddy|pop|papa|father's day)\b"}, {"slug": "dad-jokes-about-books", "name": "Dad Jokes About Books", "emoji": "๐", "intro": "Check out these novel dad jokes about books, libraries, and reading. Bound to get a solid chuckle from bookworms and librarians.", "keywords": r"\b(book|books|novel|novels|author|authors|library|libraries|librarian|librarians|reading|read|chapter|chapters|thesaurus|dictionary|overbooked|anti-gravity)\b"}, {"slug": "dad-jokes-about-gardening", "name": "Dad Jokes About Gardening", "emoji": "๐ฑ", "intro": "Plant a smile with garden dad jokes, tree puns, and flora humor that will grow on you in no time.", "keywords": r"\b(garden|gardens|gardening|gardener|plant|plants|tree|trees|flower|flowers|lawn|weed|soil|bud|seeds?|bark|branch|leaf|leaves)\b"}, {"slug": "dad-jokes-about-baseball", "name": "Dad Jokes About Baseball", "emoji": "โพ", "intro": "Step up to the plate with these hilarious baseball dad jokes. They will knock your socks off or strike you out laughing.", "keywords": r"\b(baseball|batter|batters|pitcher|pitchers|home run|stole second|dugout|catcher|baseball player|baseball players)\b"}, {"slug": "dad-jokes-about-golf", "name": "Dad Jokes About Golf", "emoji": "โณ", "intro": "Tee off with clean golf dad jokes that are guaranteed to stay out of the rough and score a hole-in-one groan.", "keywords": r"\b(golf|golfer|golfers|golfing|hole in one|birdie|fairway|par|putt|putting|green)\b"}, {"slug": "dad-jokes-for-road-trips", "name": "Dad Jokes for Road Trips", "emoji": "๐", "intro": "Are we there yet? Fuel up family travel with hilarious road trip dad jokes, car puns, and highway humor.", "keywords": r"\b(road|trip|car|cars|drive|driving|traffic|miles|highway|travel|vacation|wheels?|tires?|gps|map|van|truck)\b"}, {"slug": "math-dad-jokes", "name": "Dad Jokes About Math", "emoji": "๐", "intro": "Why was the geometry book so adorable? It had acute angles! These clean math dad jokes and number puns are 100% calculated to multiply groans and divide boredom.", "keywords": r"\b(math|triangle|geometry|angle|acute|algebra|fraction|calculator|times square)\b"}, {"slug": "doctor-dad-jokes", "name": "Dad Jokes About Doctors", "emoji": "๐ฉบ", "intro": "Why did the banana go to the doctor? It wasn't peeling well! These hilarious doctor, dentist, and medical dad jokes are just what the physician ordered for instant laughs.", "keywords": r"\b(doctor|physicians?|dentists?|hospitals?|nurses?|stethoscope|surgeons?|filling|checkup|clinic|medicine|prescription|broken arm|patients?)\b"}, {"slug": "cross-the-road-jokes", "name": "Why Did the Chicken Cross the Road Jokes", "emoji": "๐", "intro": "Why did the turtle cross the road? To get to the shell station! Explore the best groan-worthy twists on the classic 'Why did the chicken cross the road?' punchline.", "keywords": r"\b(cross(?:ed|ing)?\s+(?:the\s+)?road|other\s+side|other\s+slide|shell\s+station|barking\s+lot|udder\s+side)\b"}, {"slug": "eyes", "name": "Dad Jokes About Eyes", "emoji": "๐", "intro": "Eye see what you did there! These dad jokes about eyes are a sight for sore... well, you know.", "keywords": r"\b(eyes?|see|sight|glasses|vision)\b"}, {"slug": "dad-jokes-about-history", "name": "Dad Jokes About History", "emoji": "๐๏ธ", "intro": "Why did Rudolph get a bad report card? Because he went down in history! Travel back in time with ancient Roman puns, medieval laughs, and historic dad jokes that will never go out of style.", "keywords": r"\b(history|historical|ancient|rome|roman|romans|caesar|pharaoh|pyramid|pyramids|medieval|knight|knights|castle|king|queen|revolution|napoleon|gladiator)\b"}, {"slug": "dad-jokes-about-airplanes", "name": "Dad Jokes About Airplanes", "emoji": "โ๏ธ", "intro": "Why did the airplane get sent to its room? For bad altitude! Fasten your seatbelts for first-class aviation dad jokes, pilot puns, and high-flying humor that never crash.", "keywords": r"\b(plane|planes|airplane|airplanes|pilot|pilots|airport|cabin|propeller|jet|runway|altitude|boarding)\b"}, {"slug": "dad-jokes-about-cooking", "name": "Dad Jokes About Cooking & Baking", "emoji": "๐ณ", "intro": "Looking for appetizing humor? Whip up some laughter with these clean cooking dad jokes, kitchen puns, and bakery groaners.", "keywords": r"\b(cook|cooking|chef|chefs|bake|baker|bakers|bakery|kitchen|recipe|dough|yeast|sauce|pan|pasta|spaghetti|skillet)\b"}, {"slug": "dad-jokes-about-trees", "name": "Dad Jokes About Trees & Nature", "emoji": "๐ฒ", "intro": "Branch out into arbor humor! These clean tree dad jokes, forest puns, and leafy one-liners will root you to the spot.", "keywords": r"\b(trees?|branch|branches|leaf|leaves|bark|trunk|root|roots|acorn|forest|oak|pine|wood)\b"}, {"slug": "dad-jokes-about-birds", "name": "Dad Jokes About Birds", "emoji": "๐ฆ", "intro": "Flock together for bird dad jokes and feathered puns that will take flight at your next family gathering.", "keywords": r"\b(birds?|seagulls?|duck|ducks|owl|owls|penguin|penguins|crow|crows|feathers?|wings?|flying|quack|nest|pigeon)\b"}, {"slug": "dad-jokes-about-construction", "name": "Dad Jokes About Construction & Tools", "emoji": "๐จ", "intro": "Nailed it! Build up the laughs with hilarious construction dad jokes, carpenter puns, and heavy-duty tool humor.", "keywords": r"\b(construction|hammer|nail|nails|tool|tools|saw|screw|screwdriver|drill|wrench|brick|bricks|builder|plumber|plumbing|ladder)\b"}, {"slug": "dad-jokes-for-breakfast", "name": "Dad Jokes About Breakfast", "emoji": "๐ฅ", "intro": "Start your morning with an egg-cellent laugh. Sunny-side-up breakfast dad jokes, coffee puns, and pancake groaners.", "keywords": r"\b(breakfast|coffee|cereal|egg|eggs|toast|pancake|pancakes|waffle|waffles|bacon|morning|tea)\b"}, {"slug": "dad-jokes-about-clocks", "name": "Dad Jokes About Clocks & Time", "emoji": "โฐ", "intro": "It's about time! Watch out for these clean clock dad jokes, watchmaker puns, and timeless family-friendly groaners.", "keywords": r"\b(clocks?|watch|watches|watchmaker|hourglass|alarm|time|tock|ticking|seconds?|minutes?|hours?|calendar|pendulum)\b"}, {"slug": "dad-jokes-about-science", "name": "Dad Jokes About Science & Chemistry", "emoji": "๐ฌ", "intro": "Tested and approved by the funniest minds in the lab. Clean science dad jokes, physics puns, and periodic groaners.", "keywords": r"\b(science|scientist|scientists|atom|atoms|physics|chemistry|chemist|biology|microscope|beaker|laboratory|gravity)\b"}, {"slug": "dad-jokes-about-water-and-swimming", "name": "Dad Jokes About Water and Swimming", "emoji": "๐", "intro": "Dive right into deep groans and shallow laughs. These clean dad jokes about water, swimming pools, and lakes make a huge splash.", "keywords": r"\b(water|swim|swimming|pool|pools|swimmer|swimmers|diver|divers|diving|splash|splashing|deep end|shallow end|lake|lakes|river|rivers)\b"}, {"slug": "dad-jokes-about-farm-animals", "name": "Dad Jokes About Farm Animals", "emoji": "๐", "intro": "Straight from the barnyard to your dinner table. These farm animal dad jokes about pigs, chickens, horses, and tractors are udderly ridiculous.", "keywords": r"\b(farm|farmer|barn|barnyard|cow|cows|cattle|bovine|pasture|pig|pigs|piglet|chicken|chickens|rooster|roosters|hen|hens|horse|horses|sheep|goat|goats|tractor|hay|stable)\b"}, {"slug": "dad-jokes-about-shoes-and-feet", "name": "Dad Jokes About Shoes and Feet", "emoji": "๐", "intro": "Sole-crushing puns and toe-tapping groans. These dad jokes about shoes, socks, and feet are tied together for maximum comfort.", "keywords": r"\b(shoe|shoes|sneaker|sneakers|boot|boots|sock|socks|foot|feet|toe|toes|shoelace|shoelaces|heel|heels|sandals?)\b"}, {"slug": "dad-jokes-about-fruit", "name": "Dad Jokes About Fruit", "emoji": "๐", "intro": "Ripe for the picking and sweet to the punchline. These fruity dad jokes about apples, bananas, melons, and berries are simply pear-fect.", "keywords": r"\b(fruit|fruits|apple|apples|banana|bananas|orange|oranges|lemon|lemons|melon|melons|berry|berries|grape|grapes|pear|pears|peach|peaches|watermelon)\b"}, {"slug": "dad-jokes-about-monsters-and-ghosts", "name": "Dad Jokes About Monsters and Ghosts", "emoji": "๐ป", "intro": "Spooky chuckles and supernatural eye-rolls. These monster and ghost dad jokes about vampires, skeletons, and ghouls will raise your spirits.", "keywords": r"\b(monster|monsters|ghost|ghosts|ghoul|ghouls|vampire|vampires|skeleton|skeletons|zombie|zombies|frankenstein|mummy|mummies|haunt|haunted|dracula|witch|witches)\b"}, {"slug": "dad-jokes-about-restaurants-and-dining", "name": "Dad Jokes About Restaurants and Dining", "emoji": "๐ฝ๏ธ", "intro": "Reserved for lovers of fine humor and cheap puns. These restaurant and dining dad jokes serve up generous portions of groan-worthy laughs.", "keywords": r"\b(restaurant|restaurants|waiter|waiters|waitress|waitresses|order|ordering|menu|menus|dine|dining|diner|diners|table|tip|tipping|bill|chef|chefs)\b"}, {"slug": "dad-jokes-about-money-and-banks", "name": "Dad Jokes About Money and Banks", "emoji": "๐ต", "intro": "Invest in quality laughs with high-interest returns. These dad jokes about money, cash, banks, and currency are rich with humor.", "keywords": r"\b(money|bank|banks|banker|bankers|cash|dollar|dollars|cent|cents|penny|pennies|quarter|quarters|atm|wealth|rich|broke|loan|interest|wallet)\b"}, {"slug": "clean-dad-jokes-for-school", "name": "Clean Dad Jokes for School", "emoji": "๐", "intro": "Class is in session and the groans are mandatory. These clean dad jokes for school, homework, tests, and recess get straight A's in humor.", "keywords": r"\b(school|schools|class|classes|classroom|teacher|teachers|homework|student|students|grade|grades|test|tests|exam|exams|recess|pencil|pencils|backpack)\b"}, {"slug": "dad-jokes-about-desserts-and-sweets", "name": "Dad Jokes About Desserts and Sweets", "emoji": "๐ฆ", "intro": "Sweet treats with an extra scoop of silliness. These dessert dad jokes about cookies, cake, ice cream, and candy are a recipe for smiles.", "keywords": r"\b(dessert|desserts|cookie|cookies|cake|cakes|pie|pies|ice cream|candy|candies|chocolate|chocolates|sugar|sweet|sweets|bakery|brownie|brownies|donut|donuts|doughnut|doughnuts)\b"}, {"slug": "dad-jokes-about-bugs-and-insects", "name": "Dad Jokes About Bugs and Insects", "emoji": "๐", "intro": "Hilarious crawlers and winged wordplay. These bug and insect dad jokes about bees, ants, spiders, and beetles won't bug anyone.", "keywords": r"\b(bug|bugs|insect|insects|ant|ants|bee|bees|spider|spiders|beetle|beetles|butterfly|butterflies|caterpillar|caterpillars|mosquito|mosquitoes|housefly|firefly|fireflies|centipede|cricket|crickets)\b"} ] MIN_TOPIC_JOKES = 5 def _compute_topic_data(): pat_map = {t['slug']: re.compile(t['keywords']) for t in TOPICS} t_jokes = {} joke_topics = {j['id']: [] for j in JOKES} for t in TOPICS: pat = pat_map[t['slug']] matching = [j for j in JOKES if pat.search((j['setup'] + ' ' + j['punch']).lower())] t_jokes[t['slug']] = matching live = [t for t in TOPICS if len(t_jokes[t['slug']]) >= MIN_TOPIC_JOKES] for t in live: for j in t_jokes[t['slug']]: joke_topics[j['id']].append(t) return t_jokes, live, joke_topics TOPIC_JOKES_MAP, LIVE_TOPICS, JOKE_TOPICS_MAP = _compute_topic_data() def esc(s): return html.escape(s, quote=True) def joke_count(slug): return sum(1 for j in JOKES if j['cat'] == slug) def json_ld_script(obj): """Serialize structured data cleanly without HTML escaping quotes.""" return '' % json.dumps(obj, ensure_ascii=False).replace('', r'<\/') def joke_card(j, reveal=False): """A single joke card. Punchline is in the DOM (SEO-safe); JS blurs until clicked.""" cls = 'joke-card' if j.get('type') == 'knock': body = '
%s
' % esc(j['setup']).replace('\n', '%s
' % esc(j['setup']) punch = 'Hand-picked collections, seasonal lists, and groan-worthy countdowns for every occasion.
{esc(j['setup'])}
๐ {esc(j['punch'])}
{esc(a['intro'])}
Explore our complete {esc(a['topic_name'])} or roll the dice on our Random Dad Joke Generator!
Short. Clean. Painfully punny. {len(JOKES)}+ jokes your kids don't want to hear but absolutely need to.
{esc(rnd['setup'])}
A dad joke is a short, clean, pun-based joke delivered with maximum confidence and zero shame. It's the kind of joke that makes your kids groan, your wife roll her eyes, and your dog leave the room. Science has yet to explain why hearing one makes you feel briefly smarter and visibly worse at the same time.
This site is a growing collection of the best dad jokes on the internet: one-liners, knock-knock jokes, and puns about animals, food, work, school, sports, tech, space and more. Every joke is family-friendly โ the only thing at risk of injury is everyone's patience. Start with the dad joke generator, browse the categories, or come back every day for a new dad joke of the day.
{esc(c['blurb'])} That's {len(js)} jokes of pure dad energy.
{esc(t['intro'])} That's {len(js)} of them, carefully curated for maximum groan.
Keep rolling through more knee-slappers, groans, and instant family classics:
One click. One random dad joke. Zero apologies. Works at parties, in the car line, and mid-argument.
Click the button to summon a dad joke.
Looking for something specific? Search all dad jokes or browse by category.
Explore Related Topics:
A brand-new dad joke every single day. Doctors recommend exactly one per day. We won't tell if you don't.
Every recent dad joke of the day, one per day, no repeats (for a few months, anyway):
Looking for a dad joke about coffee, cats, or cardio? Type it in. We probably have a pun for that.
Welcome to BestDadJokes.lol โ a growing collection of the internet's best dad jokes: short, clean, pun-heavy, and delivered with the quiet confidence only a dad can muster.
The mission is simple: build the most useful dad joke resource on the internet. That means:
Because a dad joke is never just a joke. It's a love language. It's saying "I would rather embarrass myself than miss a chance to make you laugh." Also, they're free, and this is a budget operation.
Got a joke that deserves to be here? Found a bug? Want to license 300 dad jokes for your family group chat? Head to the contact page.
Want to send us the greatest dad joke of all time? Report a joke that's more "dad" than "joke"? Tell us the site made you laugh so hard you spilled your coffee? We read everything.
Email us at hello@bestdadjokes.lol โ responses may be delayed by naps.
Include the setup and the punchline in your email. If we use it, you get full bragging rights and absolutely no money, which is exactly how dad economics works.
Last updated: %s
BestDadJokes.lol respects your privacy, which is ironic because dads famously respect nothing more than a good interruption. Here's the deal in plain English:
We keep standard web server logs (IP address, browser type, pages visited) for security and aggregate traffic statistics. We do not ask for your name, email, or your kids' report cards. There are no accounts on this site.
We may display advertising on this site to keep it free. Advertising partners, which may include Google, use cookies and similar technologies to serve ads based on your prior visits to this and other websites.
Google's use of advertising cookies enables it and its partners to serve ads based on your visits to this site and/or other sites on the Internet. You may opt out of personalized advertising by visiting Google Ads Settings, or opt out of third-party vendor cookies at aboutads.info.
If we run a consent banner for visitors from the EEA/UK, your choices will be honored and stored locally.
We use aggregate, privacy-respecting analytics to count page views and understand which categories people enjoy. This data cannot reasonably be used to identify you.
We do not sell personal data. We have no personal data to sell. We barely have data.
Content on this site is family-friendly by design. The site is not directed at children under 13, and we do not knowingly collect personal information from children.
Questions about this policy? Email hello@bestdadjokes.lol.
Last updated: %s
By using BestDadJokes.lol you agree to the following terms. Reading them aloud in a dad voice is optional but encouraged.
The jokes on this site are provided for personal, non-commercial enjoyment. Share them freely at dinner tables, offices, and group chats. If you want to republish jokes in bulk or use this site commercially, contact us first โ we're reasonable people.
This site is provided "as is." We make no guarantees that jokes will be funny, that groans will be produced, or that your teenagers will acknowledge your existence. All comedic risk is yours.
To the fullest extent permitted by law, BestDadJokes.lol is not liable for any damages arising from use of the site, including but not limited to eye-rolling, sighing, involuntary chuckling, and children hiding your phone.
We are not responsible for the content of external websites, including their jokes, which are almost certainly worse than ours.
We may update these terms occasionally. Continued use of the site means you accept the updated terms, and possibly a fresh dad joke.
Hand-picked gear, books, and novelty gifts for dads who never miss an opportunity to deliver a punchline.
Spiffing illustrated book of painfully terrible dad jokes, puns, and one-liners.
View on Amazon โCeramic science-pun coffee mug guaranteed to elicit eye-rolls before breakfast.
View on Amazon โ100% cotton tee featuring the undisputed king of all dad retorts.
View on Amazon โDisclosure: When you purchase through links on our site, we may earn an affiliate commission at no extra cost to you.
This page is like a dad joke that got cut from the site โ it just didn't land.
Why did the web page go to therapy?