There is a particular kind of birthday-table panic that starts around four in the afternoon: the cake is ordered, the balloons are up, and someone — usually a small person with very strong opinions — announces that the table needs something chocolate
>. Not a project. Not a three-hour bake. Something that looks like a party the second it lands on the plate. That is exactly the job these Cosmic Brownie Cookies were made for.
They are homemade cookies inspired by the store-bought cosmic brownie — thick, fudgy chocolate cookies with a glossy chocolate topping and a scatter of rainbow sprinkles — and they go from pantry staples to a tray of 24 in about an hour.
No mixer tricks, no chilling overnight, no decorating skill required. You scoop, you bake, you spread warm chocolate over the top, and the sprinkles do the rest.
The first thing you notice is the centre. It is soft and dense, closer to a brownie than a cookie, with melted chocolate chips folded through the crumb so every bite has a gooey pocket.
The edges are the opposite: thin, just set, with the faintest crispness when you bite down.
Then there is the topping — a smooth layer of melted chocolate that firms up into a gentle shell — and the rainbow sprinkles on top, which add a tiny crunch and, honestly, most of the joy.
Kids spot these across a room. Adults pretend they are taking one for the kids and come back for a second.
It is also a forgiving bake, which matters on a busy day. The dough comes together in one bowl with a spoon and a whisk, the cookies bake in 10 to 12 minutes, and the topping is just chocolate chips and butter melted together.
If your scoops are a little uneven, the cookies still taste the same. If the topping goes on a bit thick on one cookie, that cookie becomes somebody’s favourite.
Make them for a birthday, a school treat day, a bake sale, or a Friday evening when the week deserves chocolate.
Key Ingredients and Notes
Nothing here needs a special trip. The recipe is built on ordinary pantry ingredients, and the two things that shape the result most are the cocoa powder and the butter temperature.
Use softened butter, not melted, and measure the flour by spooning it into the cup and levelling it off — a packed cup of flour is the fastest way to turn a fudgy cookie cakey.
For the Cookies
Unsalted butter (1/2 cup / 115 g, softened): Creamed with the sugars, it gives the cookies their soft, tender crumb. It should dent easily when pressed but still hold its shape — about 30 minutes on the counter. Melted butter makes the dough spread thin.
Light brown sugar (3/4 cup / 150 g, packed): The brown sugar keeps the centres soft and fudgy and adds a light caramel note under the chocolate. Pack it firmly into the measuring cup so you get the full 150 g.
Granulated sugar (1/4 cup / 50 g): A smaller amount of white sugar balances the brown sugar and helps the edges set with a slight crispness — soft inside, firm at the rim.
Large egg (1, room temperature): One egg binds the dough and adds richness. A room-temperature egg blends into the creamed butter in seconds; a cold one can make the butter seize into little lumps.
Vanilla extract (2 teaspoons): Two teaspoons sounds generous, and it is on purpose — vanilla rounds out the cocoa and makes the chocolate taste more like chocolate. Use real vanilla extract, not imitation.
All-purpose flour (1 1/4 cups / 160 g): Just enough flour to hold the cookies together while keeping them dense and brownie-like. Spoon it into the cup and level it off; scooping straight from the bag packs in extra flour.
Unsweetened cocoa powder (1/2 cup / 50 g, natural): Natural cocoa powder gives the cookies their deep colour and honest chocolate flavour, and it works with the baking soda to give a gentle lift. Dutch-process cocoa also works — see the variations section.
Baking soda (1 teaspoon): The only leavener in the recipe, and deliberately modest. It gives the cookies a soft puff and a slightly crackled top without turning them into cake.
Fine salt (1/2 teaspoon): Half a teaspoon sharpens the chocolate flavour and keeps the sweetness from going flat. If you only have salted butter, use it and reduce the salt to 1/4 teaspoon.
Semi-sweet chocolate chips (1 cup / 170 g, for the dough): Folded into the dough, these melt into soft pockets as the cookies bake. The recipe uses 2 cups (340 g) of chocolate chips in total — 1 cup here in the dough and 1 cup in the topping.
For the Chocolate Topping
Semi-sweet chocolate chips (1 cup / 170 g, for the topping): Melted with a little butter, this becomes the glossy layer that sets into a soft shell on top of each cookie. Use the same semi-sweet chips as in the dough so the flavour matches.
Unsalted butter (2 tablespoons / 28 g, for the topping): Stirred into the melted chocolate, it keeps the topping smooth and sliceable instead of brittle, and gives it a soft shine. Melt it together with the chips — do not add it after.
Rainbow sprinkles (1/4 cup / about 40 g): The signature finish. Regular rainbow sprinkles (the little rod-shaped kind) hold their colour best on warm chocolate. Add them right after spreading the topping, while it is still wet, or they will not stick.
Butter, brown sugar, granulated sugar, an egg, vanilla, flour, cocoa powder, baking soda, salt, chocolate chips and rainbow sprinkles — everything for 24 cookies.
How to Make Cosmic Brownie Cookies
The whole bake runs in one straight line: cream, mix, scoop, bake, cool, top. Both trays go into the oven at the same time, so the baking itself takes just 10 to 12 minutes.
The only part that asks for patience is the 30-minute rest at the end — 10 minutes for the cookies to cool, then 20 minutes for the chocolate topping to set.
Heat the oven and line the trays. Preheat the oven to 350°F (175°C). Line two baking sheets with parchment paper. The cookies spread a little as they bake, so parchment also keeps them from sticking.
Cream the butter and sugars. In a large bowl, beat the softened butter (115 g) with the light brown sugar (150 g) and granulated sugar (50 g) for 2 to 3 minutes, until the mixture is light, fluffy and a shade paler. A hand mixer makes this quick; a sturdy spoon and some elbow grease work too.
Add the egg and vanilla. Beat in the large egg and the vanilla extract (2 teaspoons) until fully combined, scraping down the sides of the bowl once. The mixture should look smooth and glossy, not curdled.
Whisk the dry ingredients. In a separate bowl, whisk together the all-purpose flour (160 g), cocoa powder (50 g), baking soda (1 teaspoon) and fine salt (1/2 teaspoon) until no streaks of cocoa remain. Whisking here matters — cocoa powder clumps easily, and a clump in the dough bakes into a bitter dark spot.
Combine the dough. Add the dry ingredients to the butter mixture and stir just until the flour disappears. Stop as soon as you cannot see dry flour anymore. Over-mixing develops the gluten and turns fudgy cookies tough and cakey.
Fold in the chocolate chips. Stir in 1 cup (170 g) of the semi-sweet chocolate chips, saving the other 1 cup (170 g) for the topping. The dough will be thick, dark and sticky — that is exactly right for a brownie-style cookie.
Scoop and flatten. Scoop the dough into 24 balls of about 2 tablespoons each and set them on the lined trays, 12 per tray, about 2 inches apart. Press each ball down gently with your fingertips to about 1/2 inch thick — flat discs bake more evenly than tall balls, and they give the topping a level surface to sit on.
Bake. Bake both trays at the same time in the preheated 350°F (175°C) oven for 10 to 12 minutes, swapping the trays between the upper and lower racks halfway through. The cookies are done when the edges look set and the centres still look soft and slightly puffy — they will firm up as they cool. Do not wait for the centres to look dry; that is the moment they cross from fudgy to cakey.
Cool the cookies. Leave the cookies on the baking sheets for 10 minutes, then move them to a wire rack to finish cooling. They are fragile while hot and will bend or break if lifted too soon, so let the tray do the first part of the cooling.
Make the topping and decorate. While the cookies cool, melt the remaining 1 cup (170 g) of chocolate chips with the butter (28 g) in a microwave-safe bowl in 30-second bursts, stirring between each, until smooth — or melt them in a heatproof bowl set over simmering water. Spoon about 2 teaspoons of the warm chocolate over each cooled cookie and spread it to the edges with the back of the spoon. Scatter the rainbow sprinkles (about 40 g) over the topping right away, while it is still wet. Let the cookies rest for 20 minutes at room temperature until the topping sets. The full rest — 10 minutes cooling plus 20 minutes setting — is the 30 minutes in the timing above.
Scooped dough balls pressed flat on the tray, a metal spoon resting beside the bowl — ready for the oven.
Tips for Best Results
Pull them out while the centres still look soft. This is the single most important tip for this recipe. The cookies finish baking on the hot tray during the 10-minute cooling rest, so a centre that looks slightly underdone at 10 to 12 minutes is exactly right. If the centres look dry and firm in the oven, the cookies will be cakey once cool.
Flatten the dough balls before baking. A tall ball of dough bakes into a domed cookie that the topping slides off. A gentle press to about 1/2 inch thick gives you a flat top, an even bake and a neat layer of chocolate.
Keep the butter softened, not melted. Softened butter creams into a fluffy base; melted butter makes a greasy dough that spreads into thin, crisp discs. If your butter got too soft in a warm kitchen, chill the scooped dough on the trays for 15 minutes before baking.
Melt the topping gently. Chocolate chips scorch easily in the microwave. Use 30-second bursts and stir between each one — the chips hold their shape even when melted, so stirring is how you know they are ready. Overheated chocolate turns grainy and dull instead of glossy.
Sprinkle while the topping is wet. The sprinkles need wet chocolate to grip. Work through the tray one cookie at a time: spread the chocolate, sprinkle, move to the next. If you frost all 24 first and sprinkle last, the first cookies will already be too set for the sprinkles to stick.
Let the topping set before stacking. Give the finished cookies the full 20 minutes at room temperature, or 15 minutes in the fridge on a warm day. Stacking them while the chocolate is soft smears the topping and pulls sprinkles off onto the cookie above.
Troubleshooting Common Problems
The cookies spread too much and came out thin
The butter was too soft or melted, or the kitchen was warm. Next time, use butter that holds its shape when pressed and chill the scooped dough on the trays for 15 to 20 minutes before baking.
Thin cookies still taste good — save them for ice cream sandwiches, where the shape does not matter.
The chocolate topping will not set
The topping was spread on warm cookies, or the room is warm.
Make sure the cookies are fully cool — the 10 minutes on the tray plus time on the rack — before topping, and if your kitchen is hot, set the finished cookies in the fridge for 15 minutes.
The topping should be firm to a light touch.
The sprinkles slid off the topping
The chocolate had already started to set before the sprinkles went on. Sprinkle each cookie within a minute of spreading its topping. If a cookie has already set, dab a tiny bit of warm chocolate on top and press a few sprinkles into it.
The topping looks dull or grainy
The chocolate got too hot. Melt it in short 30-second bursts and stir well between each, stopping as soon as it turns smooth.
If it has already seized into a grainy paste, stir in a teaspoon of warm butter — sometimes it comes back, but it is better to start a fresh small batch than to spread seized chocolate.
The cookies stuck to the tray
The trays were not lined, or the cookies were lifted while still hot. Always use parchment paper, and let the cookies rest the full 10 minutes on the tray before moving them — they firm up as they cool and release cleanly.
Variations and Substitutions
Flavour Variations
Mint chocolate Cosmic Brownie Cookies: replace 1 teaspoon of the vanilla extract with 1/2 teaspoon of peppermint extract and use green and white sprinkles for the topping.
Double chocolate chunk: swap the 1 cup (170 g) of chocolate chips in the dough for the same weight of chopped dark chocolate — the irregular chunks melt into bigger gooey pockets.
Peanut butter drizzle: after the chocolate topping sets, drizzle 2 tablespoons of warmed smooth peanut butter over the cookies in thin lines.
Mini Cosmic Brownie Cookies: scoop 1-tablespoon balls for about 36 mini cookies and bake for 8 to 9 minutes at 350°F (175°C), topping each with a smaller spoonful of chocolate.
Ingredient Substitutions
Chocolate chips: milk chocolate chips make a sweeter, softer topping that sets a little more slowly; give it the full 20 minutes, or 15 minutes in the fridge.
Egg: a flax egg (1 tablespoon ground flaxseed mixed with 3 tablespoons water, rested 5 minutes) binds the dough, though the cookies bake up slightly denser.
Flour: a cup-for-cup gluten-free flour blend works in the same 1 1/4 cups (160 g) — the cookies stay soft, with a slightly more delicate crumb.
A stack of Cosmic Brownie Cookies with glossy chocolate topping and rainbow sprinkles — plated with a glass of cold milk.
Storing
Room temperature: store the finished cookies in an airtight container at room temperature for up to 4 days, with a sheet of parchment between layers so the chocolate topping does not stick to the cookie above it. They stay softest for the first 2 days.
Refrigerator: in a warm kitchen, the cookies keep in an airtight container in the fridge for up to 1 week. The topping firms up nicely in the cold — bring the cookies to room temperature for 15 minutes before serving so the centres soften again.
Freezer: freeze the baked, untopped cookies for up to 1 month in a freezer bag with the air pressed out. Thaw at room temperature for about 30 minutes, then add the fresh chocolate topping and sprinkles.
You can also freeze scooped balls of dough for up to 2 months — bake them straight from frozen, adding 2 minutes to the 10 to 12 minutes.
What to Serve
A cold glass of milk is the classic partner — the cookies are rich, and milk cuts through the chocolate in a way water never quite does.
For a dessert spread, stack them on a cake stand next to a bowl of vanilla ice cream; a warm cookie with a scoop of ice cream on top turns a simple bake into a proper pudding.
They also travel well.
Wrap a few in parchment and tuck them into a lunchbox, or pack a dozen into a tin for a bake sale — the chocolate topping protects the soft centres, and the sprinkles make the tin look like you tried much harder than you did.
If you like turning classic desserts into cookies, our Boston Cream Pie Cookies do the same trick with custard and chocolate glaze, and our Hot Chocolate Cookies bring the same cosy chocolate flavour with a gooey marshmallow centre.
Frequently Asked Questions
Are these the same as the store-bought cosmic brownies?
No. These are homemade cookies inspired by the store-bought cosmic brownie — a fudgy chocolate cookie with a chocolate topping and rainbow sprinkles. They are not the branded product, and they taste like a fresh-baked cookie rather than a packaged snack cake: softer in the centre, with real melted chocolate chips inside.
Why did my Cosmic Brownie Cookies turn out cakey instead of fudgy?
The two usual causes are over-baking and too much flour. Bake for 10 to 12 minutes at 350°F (175°C) and pull the tray out while the centres still look soft — they firm up during the 10-minute rest on the tray.
Measure the flour (160 g) by spooning it into the cup and levelling it off, never scooping from the bag.
How do I get the chocolate topping to set properly?
Spread the topping only on fully cooled cookies, using 1 cup (170 g) of chocolate chips melted with 2 tablespoons (28 g) of butter, then let the cookies rest for 20 minutes at room temperature.
If your kitchen is warm, set them in the fridge for 15 minutes. The topping should feel firm to a light touch before you stack the cookies.
Can I make the dough ahead of time?
Yes. The dough keeps covered in the fridge for up to 2 days — scoop it into balls first so it is ready to bake. Scooped dough balls also freeze well for up to 2 months; bake them straight from frozen at 350°F (175°C), adding about 2 minutes to the 10 to 12 minutes.
Can I use Dutch-process cocoa powder instead of natural cocoa?
Yes. Dutch-process cocoa gives the cookies a darker colour and a smoother, less tangy chocolate flavour. Use the same 1/2 cup (50 g) and keep the 1 teaspoon of baking soda — the cookies bake the same way, just a shade darker.
How should I store Cosmic Brownie Cookies?
Keep them in an airtight container at room temperature for up to 4 days, with parchment between layers so the topping does not stick. They also keep in the fridge for up to 1 week — bring them to room temperature for 15 minutes before serving so the centres soften again.
Equipment I Use for This Recipe
KitchenAid 5-Speed Hand Mixer — cream the butter and sugars until light, fluffy and a shade paler; a hand mixer makes this quick.
As an Amazon Associate I earn from qualifying purchases — at no extra cost to you. Full disclosure
RECIPE
Cosmic Brownie Cookies for a Fun Chocolate Treat Today
Fudgy homemade Cosmic Brownie Cookies with a glossy chocolate topping and rainbow sprinkles — soft centres, crisp edges, and a fun bake for parties.
Prep Time 20 minutes
Cook Time 12 minutes
Resting 30 minutes
Total Time 1 hour 2 minutes
Servings 24 cookies
Ingredients
For the Cookies
1/2 cup (115 g) unsalted butter, softened
3/4 cup (150 g) light brown sugar, packed
1/4 cup (50 g) granulated sugar
1 large egg, room temperature
2 teaspoons vanilla extract
1 1/4 cups (160 g) all-purpose flour
1/2 cup (50 g) unsweetened cocoa powder, natural
1 teaspoon baking soda
1/2 teaspoon fine salt
1 cup (170 g) semi-sweet chocolate chips, for the dough
For the Chocolate Topping
1 cup (170 g) semi-sweet chocolate chips, for the topping
2 tablespoons (28 g) unsalted butter
1/4 cup (about 40 g) rainbow sprinkles
Instructions
Heat the oven and line the trays: preheat the oven to 350°F (175°C) and line two baking sheets with parchment paper.
Cream the butter and sugars: beat the softened butter (115 g) with the light brown sugar (150 g) and granulated sugar (50 g) for 2 to 3 minutes, until light, fluffy and a shade paler.
Add the egg and vanilla: beat in the large egg and the vanilla extract (2 teaspoons) until fully combined, scraping down the sides of the bowl once.
Whisk the dry ingredients: in a separate bowl, whisk together the all-purpose flour (160 g), cocoa powder (50 g), baking soda (1 teaspoon) and fine salt (1/2 teaspoon) until no streaks of cocoa remain.
Combine the dough: add the dry ingredients to the butter mixture and stir just until the flour disappears. Stop as soon as you cannot see dry flour anymore.
Fold in the chocolate chips: stir in 1 cup (170 g) of the semi-sweet chocolate chips, saving the other 1 cup (170 g) for the topping.
Scoop and flatten: scoop the dough into 24 balls of about 2 tablespoons each, 12 per tray, about 2 inches apart. Press each ball down gently to about 1/2 inch thick.
Bake: bake both trays at the same time in the preheated 350°F (175°C) oven for 10 to 12 minutes, swapping the trays between the upper and lower racks halfway through. The cookies are done when the edges look set and the centres still look soft and slightly puffy.
Cool the cookies: leave the cookies on the baking sheets for 10 minutes, then move them to a wire rack to finish cooling.
Make the topping and decorate: melt the remaining 1 cup (170 g) of chocolate chips with the butter (28 g) in 30-second bursts in the microwave, stirring between each, until smooth. Spoon about 2 teaspoons of the warm chocolate over each cooled cookie and spread it to the edges. Scatter the rainbow sprinkles (about 40 g) over the topping right away, while it is still wet. Let the cookies rest for 20 minutes at room temperature until the topping sets.
Notes
Pull the cookies out of the oven while the centres still look soft — they finish baking on the hot tray during the 10-minute cooling rest.
Spread the chocolate topping only on fully cooled cookies, and sprinkle each cookie within a minute of topping it so the sprinkles stick.
Let the topping set for the full 20 minutes before stacking the cookies, or 15 minutes in the fridge on a warm day.
No-bake peanut butter ice box cake with graham cracker layers and fluffy peanut butter filling — an easy make-ahead dessert that slices clean and feeds a crowd.
Soft gingerbread cookies that hold their shape — crisp edges, soft middles, and royal icing that sets hard enough to stack and gift. Bake in 9–11 minutes.
Thick cocoa cookies studded with chocolate chips and crowned with toasted mini marshmallows — the cozy taste of hot chocolate, baked into a holiday cookie.