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!
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 9×13 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!
Copycat Cosmic Brownie: 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 9×13 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 Sweetapolita (use promo code “DESIGNEATSPRINKS15“ for 15% site-wide) or Amazon (although they don’t keep the smaller bottoles stocked well).
- For Chocolate Gananche: 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!
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 1/2 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 9×13 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 5: 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!
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 1/2 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!
New! Cosmic Christmas Tree Brownies
Turn these cosmic brownies into adorable cosmic brownie trees for the holidays!
Homemade Cosmic Brownies (TikTok Viral)
These thick, fudgy homemade cosmic brownies are 10x better than storebought! Topped with a creamy homemade chocolate ganache (made without heavy cream!) and rainbow chip sprinkles, these brownies are truly out-of-this-world delicious.
Ingredients
- 3/4 cup unsalted butter (i.e 1.5 sticks; you will be melting this)
- 1 1/2 cups granulated sugar
- 1/2 cup light brown sugar
- 3 large eggs + 1 egg yolk
- 1 tablespoon vanilla extract
- 1 teaspoon salt
- 1/4 teaspoon baking soda
- 2 tablespoons cornstarch
- 1 1/2 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
- 1/4 cup vegetable oil
Easy Chocolate Ganache (see notes section below for a firmer, traditional ganache using heavy cream)
- 1 1/2 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
- 1/2 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 butter, granulated sugar, and brown sugar. 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, egg yolk, vanilla extract, salt, baking soda, and cornstarch. Once combined, mix in cocoa powder and flour until just combined (I recommend mixing by hand to prevent from overmixing). Stir in vegetable oil.
-
Spray a light metal 9×13 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 chocolate chips and chopped butter.
-
In a separate medium-sized bowl or large liquid measuring cup, heat milk 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.
Recipe Notes
Wil the ganache harden?: Since we’re doing a simple ganache using butter & milk, the ganache won’t be as “hard’ at room temperature as a traditional ganache would be (see next note for an alternate recipe!). Because of this, I recommend storing the frosted brownies in the fridge if you don’t want the frosting to soften. After spreading on the ganache and adding the sprinkles, refrigerate for 1-2 hours for the frosting to set (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 or freezer to keep it firm.
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 below but use 1/2 cup heavy cream and 1.5 cups chocolate chips (no butter).
Can I use 2% or 1% milk instead of whole milk? We knew you’d ask, so we tested the ganache with both! Both actually work just fine but refrigerating or freezing the frosted bars becomes more crucial, as the ganache doesn’t firm up as well.
A note on chocolate chip brands: The brand you use in the ganache will impact how firm it will set 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 but do firm up a bit differently. You can see my full comparison here!
Cocoa Powder: I tested this recipe using Hershey’s Unsweetened Cocoa powder, as it’s my favorite cocoa for brownies. Take note that different brands may cause the brownie taste and texture to be a bit different.
Nutrition is just an estimate and calculated with an automated system.
Makayla w says
Best brownies ever the whole family loved them.
Melissa says
So glad ya’ll loved them, Makayla! Thanks so much for taking the time to leave a review!
Teressa says
Looks good, but a tablespoon of vanilla? Just checking before I go cosmic on this recipe. Hope it turns out as good as it looks.
Melissa says
Yes, one whole tablespoon! You don’t *have* to use that much but since this is a super thick brownie, it’s basically a double batch of most regular brownie recipes so I added a good heaping of vanilla!
Megan says
SO good!! I’m never buying cosmic brownies again, this recipe puts them to shame!
Melissa says
YAY! That makes my day that you loved them!
Alex says
The recipe was kinda confusing. You never said when to add the sugar and butter mix so I added that in last. But this was pretty good! I have fun making it
Melissa says
Thank you for letting me know it was a bit confusing! I edited the instructions to clarify when to add the butter and sugar mixture. Thanks for taking the time to leave your feedback!
Trudi Neufeld says
So simple to make and smells delicious. Have yet to try them.
Melissa says
I really tried to make them simple with easy ingredients so that feedback makes my day! Let me know how you like them when you taste test them!
Ashley says
SO EASY to follow and they come out delicious! Thank you so much for creating this!
Melissa says
So glad you loved them!! Thank you SO much for taking the time to leave a comment – I love hearing how everyone likes them!
Roberta says
These were delicious! Definitely follow directions and refrigerate so the ganache hardens a bit. Have patience, don’t be like me!
Melissa says
So glad you loved them, Roberta!
Thank you SO much for taking the time to leave a comment – it makes my day to know people are enjoying them as much as I do!
Sydney says
Amazing, so fun and not complicated at all, not too sweet just right. Will be making this recipe again!!
Melissa says
YAY! So glad you loved them, Sydney! Thank you SO much for taking the time to leave a comment – I appreciate it so much!
pharyn says
i loved this recipe
Shadow says
i will leave this at 5 stars because I know they be great I just need figure out what gluten free flour works the same I have a gluten allergy and really want make these almost the same Just got be careful last floor I used didn’t work anything so IV got but more of different brand if anyone knows what substitute works best let me know so I can buy right one
Melissa says
I’ve made these with Bob’s Red Mill Gluten Free 1-to-1 All Purpose Flour and it works really well! People couldn’t even tell they were gluten free!