This post may contain affiliate links. Please read our disclosure policy.
This recipe for thick and chewy gluten free cookie bars makes everyone's favorite thick and chewy gluten free chocolate chip cookies in a single square baking pan without sacrificing any texture. Plus, you get the crackly top of brownies!

Why this recipe works
These bars have all the chewy texture and classic taste of chocolate chip cookies without the fuss of having to shape and bake them individually.
If you just baked chewy chocolate chip cookie dough in pan, your bars would come out dense and tough. This recipe uses melted butter like gluten free brownies or gluten free blondies for chewiness, but more flour so the bars aren't fudgy.
Using a combination of white and light brown sugars ensures that the flavors are just like you expect.
Recipe ingredients
Here's what you'll need to make these bars. For full ingredient amounts, scroll down to the recipe card below.

- Gluten free flour: A well-balanced blend of gluten free flours with finely ground rice flour as a base, plus xanthan gum and cornstarch for tenderness, provides most of the structure for the bars. I recommend Better Batter's original blend and Nicole's Best multipurpose most; Bob's Red Mill gluten free 1-to-1 should also work well.
- Baking soda: Helps the bars brown in the oven.
- Salt: Brightens the other flavors, keeps them from tasting flat.
- Granulated (white) sugar: Adds sweetness, and locks in moisture for tender cookie bars.
- Light brown sugar: Also adds sweetness and tenderness, plus the molasses flavor adds color and provides that classic chocolate chip cookie taste.
- Butter: The water in the butter, when heated, is released and dissolves the sugars completely.
- Eggs and yolk: The whole eggs provide rise and enough structure to hold the rise as the bars cool; the extra egg yolk helps keep the bars moister for longer, and makes the bars more dense.
- Vanilla: Adds depth of flavor.
- Chocolate chips: Add chocolate flavor, and a contrasting texture when they resolidify after the bars cool.

How to make gluten free cookie bars (step by step photos)
This overview illustrates how to make these bars in your own kitchen, with the reason behind each step.
Melt butter and sugars
Melt the light brown and granulated sugars with chopped butter over medium-low heat just until the butter is melted and the mixture simmers lightly. The sugars will dissolve into the liquid from the butter, which is part of what leads to the shiny, crackly top after baking. Let the mixture cool until it's not hot to the touch so it doesn't cook the eggs in the next step.


Beat the eggs plus butter and sugars
Beat two eggs and one egg yolk in a large mixing bowl until foamy, so the egg proteins can fully combine with the cooled sugar and butter mixture. These ingredients together will rise to the top of the bars during baking, and bake into a crispy, thin crackly layer.


Whisk the dry ingredients
Whisk together the gluten free flour blend with xanthan gum and cornstarch plus baking soda and salt, to avoid any bitter clumps in the bars.
Add dry to wet ingredients
Add the dry ingredients all at once to the wet ingredient mixture. The mixture will go from being very thin to thick and sticky as the flour mixture thickens the batter.


Add the chocolate chips
Add almost all of the chocolate chips, leaving out about 1 ounce, so you can scatter them on top.


Transfer to the pan
Scrape the batter into a pan lined with nonstick aluminum foil, or foil sprayed with cooking oil. Spread the batter into an even layer using a moistened offset spatula or butter knife so it bakes evenly.
Top with rest of chips and bake
Scatter the remaining chocolate chips evenly on top and bang the pan a few times on the counter so the chips stick to it. Bake at 325°F for 40 minutes, or until the top is lightly golden brown all over and the top doesn't jiggle at all when you move the pan. Baking it low and slow ensures that the bars are golden brown all over, never too dark or burned.
Chill before slicing
The bars are too fragile to remove from the pan until they're fully cooled and set. Let them cool in the pan until warm room temperature, then chill until firm before slicing. It will make slicing easy and clean.


Expert tips
Try making the bars thinner
You can bake the same cookie dough in a jelly roll pan. It's slightly larger than a quarter sheet pan, measuring 10-inches x 15-inches x 1-inch. That provides the cookie dough with enough space to bake without overflowing the pan. Instead of 40 minutes at 325°F, thinner bars will bake in about 30 minutes. Similar to gluten free cheesecake, the bars are done when they no longer jiggle much in the center.
Don't overcook the sugar
Brown sugar has a tendency to harden if you overcook it. So when you're melting the butter and sugars, stop as soon as it reaches a very gentle simmer.
Line the pan with nonstick foil
Since the batter is thick and sticky, it can be difficult to spread it around if you line the pan with parchment, which tends to move and shift. Since the bars will stick to regular foil, either line the pan with nonstick foil, or spray cooking oil on regular foil.

Ingredient substitutions
Dairy free
To replace the butter in this recipe, try Melt, Miyoko's, or Trader Joe's block-style vegan butter. Or try half (4 tablespoons) Earth Balance buttery sticks and half (4 tablespoons) Spectrum brand nonhydrogenated vegetable shortening. And make sure your chocolate chips and flour blend are dairy-free.
Egg free
The two whole eggs may be able to be replaced with one “chia egg” each (1 tablespoon ground white chia seeds + 2 tablespoons lukewarm water, mixed and allowed to gel). Without the eggs, you'll miss out on the crinkly brownie-style top, though. For the egg yolk, try 1 tablespoon of extra virgin olive oil.
Corn free
The cornstarch in these cookies adds tenderness. If you can’t have corn, try replacing the cornstarch with an equal amount, by weight, of arrowroot or potato starch, or just use more all purpose gluten free flour and make sure it's corn-free.

Storage instructions
These bars will keep for at least 5 days in a sealed container at room temperature, and up to a week in the refrigerator. For longer storage, place in freezer-safe zip top bags and freeze for up to 3 months. Defrost at room temperature or quickly in the microwave.
Gluten Free Cookie Bars Recipe

Equipment
- Handheld or stand mixer
Ingredients
- 1 ¼ cups (175 g) all purpose gluten free flour blend, See Recipe Notes
- ½ teaspoon xanthan gum, (omit if your blend already contains it)
- ¼ cup (36 g) cornstarch
- ½ teaspoon baking soda
- ¾ teaspoon kosher salt
- 8 tablespoons (112 g) unsalted butter, chopped
- ⅝ cup (125 g) granulated sugar
- ⅝ cup (136 g) packed light brown sugar
- 2 (100 g (weighed out of shell)) eggs, at room temperature
- 1 (25 g) egg yolk, at room temperature
- ¾ teaspoon pure vanilla extract
- 6 ounces semi-sweet chocolate chips
Instructions
- Preheat your oven to 325°F. Line an 8-inch square baking pan with nonstick aluminum foil, or regular heavy-duty aluminum foil and spray it with nonstick cooking spray. Set the pan aside.
- In a small bowl, place the flour, xanthan gum, cornstarch, baking soda, and salt, and whisk to combine well. Set the bowl aside.
- In a medium-size, heavy-bottom saucepan, place the chopped butter, granulated sugar, and light brown sugar.
- Place the saucepan over medium-low heat and, stirring occasionally to prevent burning, melt the butter and sugar and bring to a gentle simmer. Remove the pan from the heat and set it aside to cool until no longer hot to the touch.
- In a large bowl, place the eggs, egg yolk, and vanilla, and beat with a handheld mixer until foamy and lighter in color (about a minute).
- Add the cooled butter and sugar mixture, and beat very well until the mixture falls off the beaters in ribbons (about 3 minutes).
- Add the flour mixture to the bowl, and mix until the streaks of flour disappear, scraping the sides of the bowl frequently. The mixture will be thickly pourable and very sticky.
- Add 5 ounces of the chocolate chips, reserving the final ounce to go on top. Mix by hand until the chips are evenly distributed throughout the cookie dough.
- Transfer the cookie dough to the prepared baking pan, and use a moistened offset spatula or knife to spread it into an even layer in the pan.
- Scatter the remaining chocolate chips evenly over the top and bang the pan on the counter a few times so the chips stick and sink down a bit.
- Bake in the center of the preheated oven for about 40 minutes, or until the top is lightly golden brown all over, and no longer glistens or jiggles at all when the pan is moved gently.
- Allow the bars to cool in the pan at room temperature for at least 10 minutes before placing them, still in the pan, in the refrigerator to chill until firm to the touch, about 30 minutes.
- Remove the cooled bars from the pan by holding onto the foil. Slice into 9 equal pieces, and serve.
Video
Notes
Nutrition
Nutrition information is automatically calculated, so should only be used as an approximation.














Wow, Nicole! You have another winner here. I have yet to make one of your recipes that hasn’t been out of this world! I took your advice and started weighing all of the ingredients in your recipes and I was amazed at how much variance there is, especially with eggs.
Thank you for making and sharing your wonderful creations with us! You are awesome!
So true, Diane, there is a ton of variation in pretty much everything. Weighing ingredients is pretty much the only way to ensure success and remove the all-to-human element! Thank you so much for the kind words.
Hi Nicole. Love your site. Was wondering if it would work if I used parchment paper to line the pan? I don’t like baking/cooking with aluminum foil anymore. Thanks
Hi, Anita, the foil is the very best way to get the liner into the corners of the pan in a way that it will keep its shape, which is particularly important with a looser batter. You can use unbleached parchment paper, but it may curve over and fall onto the bars as they’re baking. Up to you!
To quote The Kool Aid man, “Oooooooh, yeah!”
These bars are delicious, with a caramel-like interior. My dough was very runny and I thought a disaster was on the horizon. But nay, my GF Captain, Nicole never leads me astray! My non-GF Hubs was left swooning and drooling after just one bar.
Looking back, perhaps the caramel-y flavor may have been due to the Heath toffee crunch bits I added. And I would do it again!
Thanks a
For a lovely recipe, Nicole.
Ooooh, Heath bits sound decadent and perfect, Carie!! It’s definitely not a typical cookie dough at all, more like a batter. Glad you trusted the process! ?
Amazing cookies. Just like regular
What is the purpose of the aluminum foil in the pan? We try not to use aluminum in our house.
Hi, Denise, it’s the easiest way to mold the pan lining to the shape of the pan without interfering with the bars.
If you have time to clarify: In the post, you mention making the bars thinner by using a jelly roll pan and you differentiate that pan from a quarter sheet pan – as if this is what you used to make these bars. However, the instructions call for an 8 inch square pan… I realize it should be okay either way, but I am interested in trying them as pictured (because these pictures are so tempting!). Thank you!
Hi, Ellen, I think you understood and explained it just right! As pictured and described in the recipe, you make the bars in an 8-inch square baking pan. If you’d like to make them thinner, you can use a jelly roll pan and watch the baking time.
I think I might just have to try these out on my team at work some time soon!
Wonderful recipe Nicole!
These turned out yummy, moist & chewy. ?
That’s great to hear, Ria. Thank you for letting me know!
Hi there! I’m the Marketing Manager here at Melt Organic, and wa wondering if we could use your image/recipe for the Thick & Chewy Gluten Free Chocolate Chip Cookie Bars! I cooked some the other night for a little/big snack, and they were fab!
I would also love to add the link to this pr whatever page you’d like in turn.
Please let me know what you think! Thank you :)
Hi, Brittney, feel free to use any of the images that you like, but I’m afraid you can’t reproduce the recipe. A link back would work, though! Thanks.
Gluten free chocolate chip cookies