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.
Ky says
The brownies were amazing! 10/10 recommend. I only had to use a couple different ingredients as I didn’t have them, but it was still good.
Melissa says
I'm so glad you loved them, Ky! Out of curiosity, what ingredients did you substitute? I love hearing knowing what you tried & what worked!
Thanks SO much for taking the time to leave a review!
Katie Reed🌻 says
super yummy my bff loved these for her bday
Melissa says
I'm so glad you loved them, Katie! What a great friend to make these for your BFF's birthday!
Thanks so much for taking the time to leave a review - I appreciate it so so much!
Patience says
SO GOOD! i love baking brownies and these turned out sick! definitely will make again sometime
Melissa says
I'm so glad you loved them and will be making them again, Patience! Thanks so much for taking the time to leave a review - I appreciate it so much!
Mary Mullen says
Mmmmm I love baking them
Melissa says
Yay! I'm so glad you loved them, Mary!
Thank you so much for taking the time to leave a review - I appreciate it so much!
Valerie says
Love this recipe turned out perfect!
Melissa says
Yay! I'm so glad you loved them and that they turned out so well for you, Valerie!
Thank you so much for taking the time to leave a review - I appreciate it so much!
Natalie says
I love it so much!!
Melissa says
Woo! I'm so glad you loved them, Natalie!
Thank you so much for taking the time to leave a review - I appreciate it so much!
Brenna McCoy says
I just made these and all I can say is WOW!!! They taste JUST like cosmic brownies, but better!! From the texture, to the combination of flavor between the brownie and ganache. Such an easy to follow recipe! I will be making these again as my showstopper at large gatherings to impress everyone!
Melissa says
YAY! This made my night, Brenna! I'm so glad you loved them & will be making them again in the future - they sure are a showstopper!
Thank you so much for taking the time to leave a review - I appreciate it so much!
Kaitlin says
Really good brownies and I’ll make them again but I wouldn’t say they are like cosmic brownies at all besides having a ganache and sprinkles.
Melissa says
Thank you so much for taking the time to leave a review, Kaitlin! If yours didn't turn out super fudgy, try refrigerating them overnight as it helps them become even more dense and fudgy!
Jennifer Vaughn says
I made these today, absolutely delicious! Very simple and easy to follow recipe. I however did use Ghirardelli cocoa, it’s what I had on hand and it worked very well! I also opted to do the traditional ganache for them. Will definitely make again. Looking forward to trying some of your other recipes on your site.
Melissa says
I'm so glad you loved them, Jennifer! It's great to know the Ghiradelli cocoa worked well for you - I can never find that brand at my local stores but I assumed it would work since Ghiradelli is always good :)
Thank you so much for taking the time to leave a review - I appreciate it so much!
Jordan Ezell says
Theses turned out extremely well! I used Star sprinkles instead of the rainbow ones. Thanks for the recipe!
Melissa says
Yay! I'm so glad you loved them, Jordan!
Thank you so much for taking the time to leave a review - I appreciate it so much!
Leslie says
These are amazing!! I used the heavy cream since I had it and they set up so nicely overnight and look cute displayed in a glass dome on my counter. I am regretting I made them, though, I keep sneaking into the kitchen for another one! :) Thanks so much for putting the time and effort into making this recipe - it's a keeper for sure!
Melissa says
Yay! I'm so glad you loved them, Leslie! You've got me thinking that I need a cute glass dome to display these in - how fun!
Thank you so much for taking the time to leave a review - I appreciate it so much!
Bailey says
Tried this recipe and it was great!! Tasted so much better than the originals
Melissa says
I'm so glad you loved them, Bailey! I agree that they're better than the originals ;)
Thank you so much for taking the time to leave a review - I appreciate it so much!
Maria J says
Turned out dry and I only baked for 20 minutes. Won’t make again. Ganache was good.
Melissa says
Oh no, I'm sorry they turned out dry for you! That should definitely not happen. What brand of cocoa powder did you use? I can help you troubleshoot if you'd like!
Emilee Correa says
I made these a couple days ago. I didn't have the mini chips so I used pecans. I also had heavy cream on hand so I made traditional Ganache. These are the absolute BEST brownies I have ever had. I cant stop eating them. I can't wait to try to starcrunch recipe, oatmeal pie, and zebra cakes. These brownies are fudgy and delicious and just the right amount of sweet.
Melissa says
Yay!! I'm so glad you loved them, Emilee! I can't wait for you to try the other recipes - they have been so much fun to create!
Thank you so much for taking the time to leave a review - I appreciate it so much!
Ley says
I'm always looking to make a brownie recipe that's not from a box. I like this one because the base brownie is good on its own. With the addition of the ganache it makes it even more decadent. I will say I used off brand cocoa powder because its all I had and it tasted good. Will have to try with Hersheys next time. I also used oat milk for the ganache with a splash of half & half and it came out good. It was the first time I ever made a ganache but it seems like its right. I didn't get the candies in time so I used regular sprinkles and its just as good.
Melissa says
I'm so glad you loved them, Ley! Out of curiosity, what brand of cocoa did you use? I'm keeping a list of the off brands that people use and like!
Thank you so much for taking the time to leave a review - I appreciate it so much!
Hannah Mansfield says
I made this recipe and it ended up a bit bitter. The texture was perfect and the ganache set up well. I’m not sure what caused the bitterness, or if this is how this recipe is supposed to taste. Definitely will have to give it another shot sometime.
Melissa says
Oh no, they definitely shouldn't be bitter! A few troubleshooting questions:
1) Are you sure you used the correct amount of sugar?
2) What brand of cocoa powder did you use?
3) Did you bake them in a glass or metal pan?
I'd love to help figure out why they may have been bitter for you!