These thick, fudgy homemade cosmic brownies are 10x better than storebought and went TikTok viral with over 13 million views! Topped with a creamy homemade chocolate ganache (made without heavy cream!) and rainbow chip sprinkles, these brownies are truly out-of-this-world delicious.
Be sure to read the post for important tips, step-by-step photos, a discount code for the rainbow sprinkles, and general FAQ's!
Save this Recipe!
Enter your email below and I'll send this recipe to you.
Why These Homemade Cosmic Brownies are 10x Better Than Storebought
- Super Thick: Instead of the thin, store-bought Little Debbie brownies, I developed this recipe to be THICK when made in a 9x13 pan! No paper thin brownies here.
- Ultra Fudgy: The combination of melted butter, oil, cornstarch, an extra egg yolk, and Hershey's cocoa gives it that iconic fudgy Cosmic Brownie texture.
- Simple ganache without heavy cream: While most cosmic brownie recipes require you to use heavy cream for the frosting, I very rarely have it stocked in my fridge. So I really wanted to develop this recipe using a milk & butter ganache so that you can skip that extra step to the store (it's a bit softer in texture than ganache using cream) but tastes just as good...if not better! I also have a rich brownie frosting, if you're wanting to avoid the ganache all together!
- Tastes WAY Better: I hate to say it but the cosmic brownies I loved as a kid just don't taste the same anymore (they taste like plastic and not like chocolate!). This homemade version has a rich, fudgy chocolate flavor that you'll love.
Watch my viral Tiktok video below!
Tips for Success:
- Mix by hand: The secret to fudgy brownies is to mix the brownies by hand so that you don't whip too much air into the batter. If you do use an electric mixer, beat it on a very slow speed and only mix until just combined.
- Use a light-colored metal pan, lined with parchment: Glass pans bake too slow and can cause the edges to overbake and get hard before the center fully bakes. While dark-colored pans will bake brownies too fast, causing dry and overbaked brownies (that can taste bitter). A light-metal 9x13 pan is what I recommend for this recipe.
- Refrigerate the bars after frosting: Since we're doing a simple ganache using butter & milk, the ganache won't be as "hard' at room temperature than a traditional ganache would be (scroll for more notes on the ganache!). So I recommend storing the frosted brownies in the fridge if you don't want the frosting to soften.
- Use a high quality cocoa powder: I tested this recipe using Hershey's 100% Cacao Natural Unsweetened Cocoa powder, as it's my favorite cocoa for brownies. I highly recommend using this exact brand or another high-quality cocoa, as "off brands" or cheaper cocoa often tastes like "fake chocolate" and will not taste good (you've been warned!). If you use a different brand or type of cocoa, just take note that the taste, texture, and appearance may significantly change.
Homemade Cosmic Brownie Ingredient Overview:
This is just an overview, click here to jump down to full recipe card for the recipe amounts and condensed recipe instructions.
- Unsalted Butter (you will be melting this so no need for it to be softened to room temperature!)
- Granulated Sugar & Brown Sugar
- Eggs: You'll need 3 eggs + 1 extra yolk (to make the brownies nice & chewy!)
- Vanilla Extract
- Vegetable Oil: The oil also keeps the brownies moist & fudgy (if you leave it out, your brownies will be more cake-like and dry).
- Cornstarch: This is the other secret ingredient to moist & fudgy brownies! If you have a corn allergy, you can leave it out.
- Salt
- Baking Soda
- Hershey's Cocoa Powder: I tested this recipe using Hershey's 100% Cacao Natural Unsweetened. I highly recommend using this exact brand or a high quality cocoa, as "off brands" or cheaper cocoa does not often taste good (you've been warned!).
- All-Purpose Flour
- Rainbow Chip Sprinkles: you can get these on Amazon (some craft stores & grocery stores also carry them!).
- For Chocolate Ganache: Semi-sweet chocolate chips (see next section for notes on brands!), butter, milk (ideally whole milk or 2% but more notes on milk in the recipe card "notes" section below).
Love this copycat recipe for Cosmic Brownies & craving more? I'm working on a new series of Little Debbie recipes, but in the meantime check out my Homemade Oatmeal Creme Pies and quick Homemade Star Crunch recipe that you can make in the microwave!
Where to buy the sprinkles?
I get my rainbow chip sprinkles on Amazon! It's a big, bulk-sized bag that will last you for a while! It also comes with a resealable bag for easy storing.
And! You can use them on my other cosmic recipes: Fudgy Cosmic Brownie Cookies, Christmas Tree Brownies, or even just use as an ice cream topping on my No Churn Chocolate Ice Cream!
Easy Chocolate Ganache Using Milk (i.e. without heavy cream!)
Read this important section for lots of notes & tricks!
Heavy Cream vs. Milk: I debated between using heavy cream or milk for this ganache but since I rarely have heavy cream in my fridge...I figured most of you don't either! So I opted for ease & simplicity and developed this recipe using milk and butter instead (the butter replaces the fat from the heavy cream!). The result is a smooth, creamy frosting that is so delicious and soft.
Chill To Firm Ganache: Because we're not making a traditional ganache with heavy cream, the frosting won't totally harden at room temperature so it's important to chill the finished brownies. After spreading the frosting on the brownies, refrigerate for 1-2 hours for the frosting to set (do this before cutting, if you're trying to get clean edges!). The ganache will start to soften at room temperature, so I recommend storing them in the refrigerator to keep it firm.
Differences In Chocolate Chip Brands: We also found that the brand of semi-sweet chocolate chip you use will impact how firm the ganache sets up in the fridge. We tested this ganache using 4 different common semi-sweet chocolate chip brands. Nestle Toll House was #1 in producing the firmest ganache, Ghiradelli #2, Hershey's #3, Costco brand #4. All are comparable taste-wise (I like the flavor of Ghiradelli the best!) but they all do firm up a bit differently.
Want a more firm ganache that hardens? If you want the frosting to stay "hard" at room temperature, you will need to use heavy cream. To make a firm ganache, follow the instructions in the recipe card below but use ½ cup heavy cream and 1.5 cups chocolate chips (no butter).
How To Make Cosmic Brownies (step by step photos!)
This is just an overview showing step-by-step photos, click here to jump down to full recipe card with exact instructions.
Step 1: Melt Butter & Sugars, then Mix Brownie Batter
Preheat the oven to 350° degrees. Follow the instructions in the recipe card below to make the brownie batter, carefully reading each step (take note that you will be melting the butter and sugars together at first!).
Step 2: Spread Into Pan
Spray a light-colored metal 9x13 pan with nonstick cooking spray, then press on a piece of parchment paper to cover the bottom and long sides to create a "parchment sling". This will help you lift the brownies out of the pan so that you can cut them nicely. Spread brownie batter into the prepared pan until smooth.
Note: baking these in glass or dark metal pans may cause them to overbake and become bitter. If that's the only pan you have, lining with parchment on all sides becomes more crucial. You will also likely need to bake them for less time to prevent overbaking.
Step 3: Bake
Bake for 24-26 minutes and let them cool completely before adding any glaze or frosting. After the pan is no longer hot to the touch, you can also speed up the cooling process by placing the pan in the fridge. In the meantime, move to step 4 to make the chocolate ganache!
Tip: Be careful not to overbake the chocolate brownies! Check to make sure they are done by inserting a toothpick into the middle or gently shaking the pan to ensure the center is not jiggly. If the toothpick comes out clean, then they are finished baking. If you bake them too long, they won't have the irresistible fudgy texture you want.
Step 4: Make Easy Ganache
While the brownies are cooling, prepare the easy chocolate ganache! In a medium-sized bowl, place chocolate chips and chopped butter. In a separate medium-sized bowl or large liquid measuring cup, heat milk in the microwave for 2 minutes (it's important that your measuring cup or bowl is at least 3x taller than the milk line, as it will expand when it's heating and can easily overflow). You can also heat this on the stove; remove once it begins to steam.
Use a hot pad to carefully remove milk from the microwave and pour over the chocolate chips and butter (do not stir yet!). Allow to sit on the counter for about 3 minutes, then stir until smooth and creamy. It may take a few minutes for it to come together; it often looks separated at first. Allow to cool for about 30 minutes before pouring over cooled brownies.
Step 5: Decorate Brownies
Once brownies are cooled, give the ganache a quick stir then spread over the brownies. Immediately top with rainbow chip sprinkles (or any other sprinkles you have!). Place in refrigerator for 1-2 hours to help the frosting harden (you can speed this up by putting in the freezer!).
Tip: As I said earlier in this post, this frosting is made without heavy cream so it's not going to totally harden at room temperature. This is why I recommend storing the brownies in the fridge after frosting.
Step 6: Cut & Enjoy!
If you want really clean edges & slices, you will need to refrigerate the frosted brownies for at least 2 hours for the frosting to set. Or freeze for an hour. It's best to cut these straight from the fridge or freezer, as that is when you'll get the cleanest slice.
After they sit out at room temperature, the frosting will start to get softer so I recommend storing in the fridge if you want them to stay looking fresh & fine ;)
Tip: To get a clean edge, use a large chef's knife, cut straight down, then wipe off in between each cut (do not "saw" through the brownies back in forth). This will help you get that crisp cut like the real Little Debbie cosmic brownies!
Storage & Freezing
How long do these fudgy brownies last?
In order for the brownies to last the longest (and keep their amazing taste & texture), I suggest you store them in an airtight container for 3-4 days. If you want the frosting to stay hardened, store them in the refrigerator. If stored properly, they'll stay good for 4-5 days.
Can cosmic brownies be frozen?
They sure can! The fudgy texture & soft frosting actually makes these so good out of the freezer (they're not rock hard!). If you want to keep the frosting looking nice, freeze the brownies (unwrapped and uncovered) for 1-2 hours then transfer them to an airtight container. This will allow the frosting to freeze so that it doesn't smudge when you store them.
These fudgy brownies will keep in the freezer for 1-2 months (any longer, and they tend to dry out).
Dietary Variations
- Gluten Free: I have tested this recipe using Bob's Red Mill 1-to-1 Gluten Free All-Purpose Flour and I thought the results were great (they're a bit less fudgy but a couple friends couldn't tell they were gluten free!). Since I used a gluten-free flour that is a 1:1 replacement, you can use the same amount of regular flour in place of it. If you make this gluten free, be sure to let me know how it worked and how you liked it! ***Be sure to check that your rainbow chips are gluten-free, as some brands are not (Sweetapolita's are GF - use promo code “DESIGNEATSPRINKS15“ for 15% site-wide!)
- Dairy Free: I will put a disclaimer on this that I have not tried this recipe dairy free, so if you try it be sure to report back! But if you read the comments, some have reported using almond milk or nutpods with success! To make it dairy free, you'll need to swap out the butter and chocolate. Some people that are dairy-free prefer to use clarified butter, or ghee since it is free of lactose and qualifies as dairy-free. Otherwise, you can also try replacing the butter with equal parts coconut oil or vegan butter. To swap out the chocolate, Enjoy Life chocolate chips are dairy-free! They have a variety of chocolate chips, including dark chocolate.
- Egg Free: I am not familiar with vegan or egg substitutes but until I have a chance to test these, you might try out Crazy Vegan Kitchen's version! I'd love to know how ya'll turn this recipe into egg free or vegan cosmic brownies!
Frequently Asked Questions:
I tested this recipe using Hershey's 100% Cacao Natural Unsweetened. I highly recommend using this exact brand or another high-quality cocoa, as "off brands" or cheaper cocoa often tastes like "fake chocolate" and will not taste good (you've been warned!). If you use a different brand or type of cocoa, just take note that the taste, texture, and appearance may change.
The real Little Debbie cosmic brownie sprinkles are called "rainbow chip sprinkles" but you can also just use mini M&M's! I've included a few places below where you can find rainbow sprinkle sprinkles.
Amazon: You can get Wilton rainbow chip sprinkles on Amazon
Sweetapolita: use promo code “DESIGNEATSPRINKS15“ for 15% site-wide! Search "bit chips" on her site for the cute options...she even has pastel ones!
Craft stores like Michaels or Joanns also often have them! A reader also mentioned they've seen them at Walmart!
Grocery Stores: If all else fails, grab a box of Pillsbury Funfetti brownies and use the packet inside (then save the brownie mix for another time).
To ensure your brownies are dense & chewy, I recommend mixing this by hand! Using an electric or stand mixer will make it quicker, but be sure not to beat the batter very much!
Be sure to read the post above for more specifics about this easy ganache or see my chocolate chip comparison post! The short answer is no, because we're using milk & butter instead of heavy cream, these will not completely harden at room temperature so you'll want to store them in the fridge if you want the frosting to stay looking nice.
If you want the frosting to stay "hard" at room temperature, you will need to use heavy cream. To make a firm ganache, follow the instructions below but use ½ cup heavy cream and 1.5 cups chocolate chips (no butter).
I personally like the taste of the milk & butter ganache (it's creamier & tastier) but if you need to transport these or stack (between parchment paper), it's best to use a traditional chocolate ganache that uses heavy cream.
Cosmic brownies are a popular packaged treat in the United States consisting of a thin, fudgy brownie with a chocolate coating and rainbow sprinkles. Made by the company "Little Debbie", cosmic brownies & their whole array of snack treats are nostalgic childhood lunchbox treats that can be found at most grocery stores or gas stations in the US. I've gotten this question from people outside of the US so I figured I'd throw in a little info for my overseas friends!
Yes! You can see my smaller batch version here.
New! Cosmic Christmas Tree Brownies
Turn these cosmic brownies into adorable cosmic brownie trees for the holidays!
Homemade Cosmic Brownies (TikTok Viral)
Ingredients
- ¾ cup unsalted butter (i.e 1.5 sticks; you will be melting this)
- 1 ½ cups granulated sugar
- ½ cup light brown sugar
- 3 large eggs + 1 egg yolk
- 1 tablespoon vanilla extract
- 1 teaspoon salt
- ¼ teaspoon baking soda
- 2 tablespoons cornstarch
- 1 ½ cups Hershey's cocoa powder (100% cacao natural unsweetened) I highly recommend using this specific cocoa or another quality cocoa. Off-brand cocoa often tastes bad so use at your own risk...you've been warned!
- 1 cup all-purpose flour
- ¼ cup vegetable oil
Easy Chocolate Ganache (see notes section below for a firmer, traditional ganache using heavy cream)
- 1 ½ cups semi-sweet chocolate chips (i.e. 12 ounce bag) *see notes section below for notes on certain brands; we found Nestle Toll House or Ghiradelli brands firm up the best
- 6 tablespoons unsalted butter chopped into small cubes
- ½ cup whole milk (you can also use 2% or 1% but the ganache will be less firm so you will need to refrigerate and/or freeze brownies so frosting sets; see notes below)
Topping
- Rainbow chip sprinkles you can get the Wilton brand at most craft stores or on Sweetapolita (use code DESIGNEATSPRINKS15“ for 15% site-wide!)
Before you begin! If you make this, will you do me a huge favor and leave a review and rating letting me know how you liked this recipe? This helps my small business thrive so I can continue providing free recipes and high-quality content for you.
Instructions
To Make Brownies:
- Before you start, be sure to read through the tips & tricks in the post above for ingredient notes, step-by-step photos, and FAQ's!
- In a large microwave-safe bowl, add unsalted butter (¾ cup, i.e. 1 ½ sticks), granulated sugar (1 ½ cups), and light brown sugar (½ cup). Microwave for 2 minutes, stir, then microwave for 30 more seconds. Carefully remove bowl from microwave and stir until smooth. Let cool for 2-3 minutes.
- To the butter and sugar mixture, stir in the eggs (3 large), egg yolk (1 large), vanilla extract (1 tablespoon), salt (1 teaspoon), baking soda (¼ teaspoon), and cornstarch (2 tablespoons). Once combined, mix in cocoa powder (1 ½ cups) and all-purpose flour (1 cup) until just combined (I recommend mixing by hand to prevent from overmixing). Stir in vegetable oil (¼ cup).
- Spray a light metal 9x13 pan with nonstick cooking spray, then press on a piece of parchment paper to cover the bottom and long sides to create a parchment sling (photo in post above!). This will help you lift the brownies out of the pan so that you can cut them nicely. Spread brownie batter into the prepared pan until smooth.Note: baking these in glass or dark metal pans may cause them to overbake and become bitter. If that's the only pan you have, lining with parchment on all sides becomes more crucial. You will also likely need to bake them for less time to prevent overbaking.
To Make Easy Chocolate Ganache
- Before you begin: Note that the ganache will not completley "harden" as a traditional ganache with heavy cream would. See notes section below for tips & tricks, as well as an alternate recipe using heavy cream.
- In a medium-sized bowl, place semi-sweet chocolate chips (1 ½ cups) and chopped unsalted butter (6 tablespoons).
- In a separate medium-sized bowl or large liquid measuring cup, heat milk (½ cup) in the microwave for 1 ½ - 2 minutes, or until it begins to bubble (it’s important that your measuring cup or bowl is at least 3x taller than the milk line, as it will expand when it’s heating and can easily overflow). You can also heat this on the stove; remove it once it begins to steam.
- Use a hot pad to carefully remove milk from the microwave and pour over the chocolate chips and butter (do not stir yet!). Allow to sit for about 3 minutes, then use a whisk to stir until smooth and creamy. It may take a minute or two for it to come together; it often looks separated at first. Allow to cool for about 30 minutes before pouring over cooled brownies.
To Decorate:
- Once brownies are cooled, re-stir the ganache and spread over brownies. Immediately top with rainbow chip sprinkles (or any other sprinkles you have!). Place in refrigerator for 1-2 hours to help the frosting harden (you can speed this up by putting in the freezer!).Use a large knife to slice bars ( I highly recommend that your bars are chilled or frozen before slicing to ensure a clean cut).
- Storage: Refrigerate the frosted bars. You can also keep at room temperature for up to 1 day (just note the frosting will soften). They get even better & fudgier on Day 2!
Last Step! Please leave a review and rating letting me know how you liked this recipe! This helps my small business thrive so I can continue providing free recipes and high-quality content for you.
Cindi says
Pretty tasty for Gf brownies. However, my brownies are just way too dark chocolatey for me. And my brownie was more of a cake type brownie than the denser moist cosmic brownies. So for that reason I gave it a 4 stars.
Sue says
Best brownie recipe ever made them for a party and got rave reviews. Amazing texture and flavor so yummy!
Brosia says
I love to bake & make things from scratch. This is a family favorite snack. It was fun to be able to recreate it myself!! Very chewy & delicious. Personally I think I like the thinner ones but that is entirely me.
Melodi says
I'm part of the baking challenge for April. I LOVED these brownies. I'm slightly late but iade them the same hour I saw your post. They were so good. Thank you for sharing this recipe
Katie Freeman says
Soo good! I saw this recipe on TikTok and did it as part of the baking challenge. I didn’t have the sprinkles and didn’t have the patience to wait to get some so I used some mini chocolate chips, but I’m definitely getting sprinkles for next time because I’m definitely making these again. Takes me back to childhood! The only other change I made was using almond milk and dairy free chocolate chips for the ganache because I’m lactose intolerant and the recipe seemed to hold up well.
Natalie says
OMG. My husbands childhood revolves around cosmic brownies so these are his new love language.
Kearessa says
I had first seen this recipe pop up on my TikTok and I am sooooo glad it did. At first the thought of being a part of the baking challenge sounded interesting until I decided to whip up the smaller batch recipe and now I’m pretty sure I would pick the homemade version over the original 😅 11/10 would make again!
Nicole says
I LOVED this recipe. I usually opt for chewier brownies, but these were so dense and rich. Didn’t have the cool sprinkles so had to go with some halloween sprinkles, but delicious overall!
Lila says
I made these brownies this morning and OH. MY. GOD! They were absolutely DELICIOUS! I’ve only recently started baking regularly and have been searching for a brownie recipe and I FOUND IT! I’m going to be making these every sunday from now on for my entire family 🤤😋
I’m also part of the April Baking Challenge!
Ahna says
I've made this a few times for my family now and they are amazing!!! Best brownies I've ever had and pretty easy to make!
Shawnee says
Very good!!
Victoria says
My husband sent me a video of this recipe so I *had* to try it out. I was diagnosed with celiac disease 11 years ago so this is the first time I've had a cosmic brownie since some time before then. I saw the monthly baking challenge and signed up ;) These brownies are absolutely delicious.
Chloe Johnsen says
I just left a review but forgot to mention that I made them as part of the baking challenge. I made the bigger batch and they were so delicious. I was worried they wouldn’t come out right since I am not a seasoned baker but they were perfectly chewy and scrumptious. My friend even asked me to make her a batch for her birthday!
Chloe says
the brownies were delicious and just the right amount of chewiness! i made myself a bath and one for my friend for her birthday
Hailey says
Absolutely loved this recipe! I think there was too much ganache but that’d a minor fix. Was a blast and now my family demands them for lunch everyday lol
Morgan Richardson says
I got the recipe as part of April’s baking challenge. (I also love cosmic brownies!) they turned out great! The ganache was a little rich for me, but the brownie was devine! It was so simple and easy to follow. The only thing I did different was use a glass loaf pan!