These colorful unicorn bars are soft, buttery funfetti sugar cookie bars loaded with sprinkles and topped with swirls of creamy homemade frosting. All you need is one bowl and a spoon.

Colder weather is my excuse to comfort bake: Fun, easy baking recipes that are guaranteed to brighten my day. And if there was ever a dessert designed for happiness and parties, it’s these buttery, sprinkle-filled unicorn bars. The base is my sugar cookie bars crossed with confetti cake. They’re decorated with fluffy blue clouds of creamy frosting and more sprinkles (I recommend a heavy hand).
Why unicorns? The Unicorn and Rainbows cupcake from Baked and Wired in Washington, DC inspired this recipe. It’s their version of confetti cupcakes, and one of my favorites ever. Definitely get one if you find yourself in DC! In the meantime, I’ll show you how to recreate the funfetti flavors in these homemade unicorn cookie bars.
These would be perfect for a unicorn-themed party or birthday dessert. And let’s be honest. There’s no better treat to enjoy with a mug of unicorn hot chocolate!
What Makes These Unicorn Cookie Bars a Must-Bake
- Melted butter in the dough makes it easy to bring together with or without a mixer.
- No baking soda keeps the cookie bars dense and chewy. They bake nice and even.
- Enjoy them frosted or unfrosted. Everyone loves these soft and chewy funfetti cookie bars, and they’re delicious on their own. But, as always, everything is better with frosting!
- They slice like a dream and will be gone in a flash. And if you do have leftovers, these frosted unicorn bars store well for days.

Ingredients You’ll Need
Here are the ingredients needed to make these magical unicorn bars from scratch. See the recipe card for the exact measurements and recipe details.
- Butter – I use salted butter, but you can use unsalted if you’d like. This recipe will also work with shortening to make the bars dairy-free.
- Sugar – Granulated sugar is best, or light brown sugar.
- Vanilla – These funfetti unicorn bars are one of my only exceptions to using pure vanilla extract. While the flavor is always better with real vanilla, these turn out great with artificial vanilla for that old-fashioned “birthday cake” flavor, too.
- Eggs – Bringing these to room temperature makes them easier to combine with the dough.
- Flour – I recommend all-purpose as I haven’t tested this recipe with alternative flours. Spoon and level the flour or measure using a kitchen scale. If you scoop directly from the bag, you’ll end up with too much.
- Sprinkles – The best sprinkles for baking are rainbow jimmies (rods) or quins (small flat shapes). Non-pareils, the tiny round balls, tend to bleed their color into the dough.
- Frosting – You can use your favorite homemade or store-bought frosting here. I use an adaptation of my vanilla frosting made with room-temperature butter, powdered sugar, and milk (or heavy cream). I skip the vanilla in this version and leave the sweet flavor as-is.
- Food Coloring – I opted to color my frosting light blue, but any color goes! Gel food colors offer the best, brightest colors without watering down the frosting like liquid food dyes tend to do. A little goes a long way. Top your unicorn bars with additional sprinkles, too. I include more decorating ideas below.
How to Make Unicorn Bars
Whenever I find myself craving sunshine and rainbows, I pull the giant jar of sprinkles from my pantry and make unicorn bars. (Doesn’t everyone have an emergency sprinkle stash in their cupboard?) It’s a huge bonus that the steps to make these are very easy:


- Mix the dough. Start by creaming the butter and sugar together, then add the vanilla, eggs, and salt. Mix until smooth. Next, fold in the flour, followed by the sprinkles. Try not to overmix.


- Bake. Spread the dough into a greased and lined 9×13 pan. Then, bake the bars at 350ºF for 25-30 minutes, until they’re just set at the edges. The bars will look underdone when they come out of the oven, but don’t worry. They set up as they cool.
Frosting the Bars
- Make the frosting. Meanwhile, beat the butter, then slowly add the powdered sugar and milk to make the frosting. Once the frosting is smooth and creamy, mix in 1-2 drops of your choice of food coloring.
- Decorate the bars. Lastly, pipe or spread the frosting evenly over your cooled funfetti bars. Decorate with extra sprinkles if you’d like, and enjoy!

Tips for Decorating Your Unicorn Bars
- Adjust the frosting consistency. If your frosting is too stiff, add more milk, one spoonful at a time, until you reach your desired consistency. If it’s too loose, you can add a little more powdered sugar.
- Use piping tips. These unicorn bars are irresistible smothered with frosting, but piping the frosting creates a fancier finish. I use a large round 1A tip from Wilton.
- Double the frosting. If you plan on piping frosting swirls as you see in the photos, you may need to increase or double the amount of frosting in the recipe. Piping always uses more frosting than if you were to simply spread it over the bars.
- Funfetti frosting. For even more rainbow sprinkle magic, fold extra sprinkles into your frosting or make party frosting instead.
- Different flavors. Top your bars with pretty pink strawberry frosting, meringue-style marshmallow frosting, or even chocolate frosting.

Recipe FAQ
The number one cause of dense, tough sugar cookie bars is overmixing. Take care that you don’t mix too much after adding the flour.
Dry, crumbly cookie bars are likely the result of overbaking. These are meant to be soft-baked, so they should be just set at the edges. If your bars are brown all over, they’re overbaked.
If you double the recipe, you can bake these bars in a 11×17½-inch cookie sheet.

Storage
- Keep them airtight. I store these unicorn bars airtight at room temperature for up to 3 days, but you could store them in the fridge for up to 5 days.
- Freeze. I recommend freezing these bars without the icing whenever possible. Double-wrap the cooled, unfrosted cookie bars in plastic wrap and freeze them for up to 2 months. Thaw them fully to room temperature before you frost them.
More Sprinkle Dessert Recipes
Unicorn Bars
- Prep Time: 20 minutes
- Cook Time: 25 minutes
- Total Time: 45 minutes
- Yield: 36 bars 1x
- Category: Dessert
- Method: Oven
- Cuisine: American
Description
Unicorn bars are such a fun, easy dessert! They’re buttery, soft-baked sugar cookie bars loaded with funfetti sprinkles and frosted with colorful, creamy icing. No mixer needed.
Ingredients
- 1 cup butter, melted
- 1 1/2 cups granulated sugar
- 2 teaspoons vanilla
- 3 eggs
- 1/2 teaspoon kosher salt
- 2 cups all-purpose flour
- 1/2 cup sprinkles
Frosting
- 1 cup butter, room temperature
- 4 cups powdered sugar
- 2–3 tablespoons milk
- blue food coloring
- sprinkles for garnish
Instructions
- Preheat the oven to 350°F. Line a 9×13 pan with foil and coat with nonstick spray. Set aside.
- In a large bowl, whisk together the butter and sugar. Add the vanilla, eggs, and salt and whisk until smooth. Using a rubber spatula, stir in the flour until just combined. Finally, stir in the sprinkles.
- Spread the batter into the prepared pan.
- Bake for 25-30 minutes until the edges are set. The bars might seem underdone, but allow them to cool completely.
Frosting
- In the bowl of the stand mixer, beat the butter for 1-2 minutes until it’s smooth. Turn the mixer to low and slowly add in the powdered sugar. Next, add 2 tablespoons of milk and mix on medium speed until creamy, scraping down the sides as necessary. If the frosting is too stiff, add in 1 more tablespoon of milk until the desired consistency is reached. Finally, add in 1-2 drops of blue food coloring and mix until a pale blue color is reached and evenly mixed.
- Pipe or spread the frosting on top of the bars.
- Garnish with more sprinkles if desired.
Notes
- If you pipe on the frosting as shown in the pictures, you may need to double the amount of frosting. It always uses more frosting when you pipe versus spreading it on.
Nutrition
- Serving Size:
- Calories: 205
- Sugar: 19.4 g
- Sodium: 40.2 mg
- Fat: 10.7 g
- Carbohydrates: 24.9 g
- Protein: 1.4 g
- Cholesterol: 42.6 mg
Want To Save This Recipe?
Find more recipes like this:













These look delicious! And Baked and Wired is my FAVORITE! yummmmmmmm
My daughter and I made these over the weekend. When I was mixing it up after adding the sprinkles, my batter started to turn a yucky color from the sprinkles. Also I did not add any frosting since I thought they were sweet enough and delicious without. These will be made again for sure!
The nonpareil sprinkles tend to run a bit in the batter. Quin sprinkles are best for not bleeding. I used a combo and just mixed quickly, so I did have a little bleeding. Glad that you liked them though!!
Should it be 1/2 cup butter for the frosting? Mine came out tasting like straight up butter-had to use 8 cups or so of powdered sugar to get it to taste sweet enough.
Nope, it’s 1 cup (2 sticks) of butter…but absolutely add more sugar if that suits your taste preference! I will never argue with more sugar 🙂
Thanks! They were yummy.
These are BEAUTIFUL!! I’m going to make them with my daughter after school tomorrow, look amazing!! Thanks for posting them!
Love the name of these! They look so delish! A future Saturday sweet treat for sure! Thanks!
Curious where you buy your sprinkles from? I never find a mix like this! The bars look great.
I buy them in bulk online…I by a few different types: quins (or confetti), jimmies, nonpariels and mix them all together!
These bars look AMAZING! I can’t wait to make them! And thank you for the inspiring idea to create such a beautiful and unique sprinkle blend! I will most definitely be doing this!
I was in the middle of my daily routine and stopped to check for an email, opened yours, saw these bars….. Before I knew it, I dropped everything I was doing and went immediately into the kitchen to preheat the oven and then started whipping these bad boys up. Never done that before, but a bake break in my day was lovely, and I know my bars will be too? (In the oven now). Thanks for the amazing inspiration!
Oh my! How cute are these? I love that they use melted butter – easy and quick, no creaming method needed 🙂
I’m head over heels in love with those sprinkles! You’re right, it’s absolutely freezing here in NJ. And I agree with your diet procrastination… let’s enjoy the heavy food while the weather is still chilly. The salads can come later 🙂
These are adorable!