Break off a corner of these chocolate chip cookie bars and you get chewy golden edges, a soft buttery center, and little pockets of chocolate in every bite. The whole kitchen smells like brown sugar and vanilla as they bake. I love a pinch of flaky salt on top—it makes the chocolate taste even richer.

Why You'll Love These Chocolate Chip Cookie Bars
These bars give you everything I love about a good chocolate chip cookie, but with extra chewy edges and a soft center. They're easy enough for a weekday craving and sturdy enough to pack up and share.
- Soft centers and chewy edges. The brown sugar and extra egg yolk help give the bars that rich, chewy texture.
- Chocolate in every bite. I especially love using chopped chocolate so you get little pockets of melted chocolate throughout.
- Just enough salt. A sprinkle of flaky sea salt on top balances the sweetness and makes the chocolate taste even richer.
- One pan, no scooping. Press the dough into an 8-inch square pan, bake, and slice. There's no need to portion or chill individual cookies.

Ingredient Overview
The ingredients are similar to my favorite chocolate chip cookies, with a few details that help these bars bake up especially soft and chewy. You'll find the full measurements in the recipe card below.
- All-purpose flour: Too much flour can make cookie bars dry instead of chewy. I recommend using a kitchen scale for accurate measurements, or fluff, spoon, and level the flour if you use cups.
- Baking soda and cornstarch: Baking soda helps the bars rise, while a little cornstarch contributes to their tender texture. I recommend following the flour and cornstarch amounts as written for this recipe.
- Unsalted butter: Use softened butter, not melted, as directed in the recipe. If yours is still cold, here's my guide to softening butter quickly.
- Brown and granulated sugar: Brown sugar brings moisture and chewiness, while granulated sugar balances the texture. I use both rather than swapping one entirely for the other. If you're out of brown sugar, you can make your own.
- One whole egg plus an extra yolk: That additional yolk adds richness and helps make the bars soft and chewy. Use both as written for the best result.
- Vanilla extract: Good vanilla makes a difference in a simple cookie dough like this. I recommend using pure vanilla extract rather than imitation.
- Chocolate: Chocolate chips, chunks, or chopped chocolate all work. Chopped chocolate is my favorite because it creates those irresistible pockets of chocolate throughout the bars.
- Sea salt: There's salt in the dough to balance the sweetness. A little flaky salt sprinkled over the baked bars is optional, but I love the sweet-salty contrast.

How to Make Chocolate Chip Cookie Bars
You get all the flavor of chocolate chip cookies without chilling or scooping the dough. Just mix, press into one pan, and bake. Here are the steps to get those chewy edges and soft centers.
- Prepare the pan. Preheat the oven to 350°F and line an 8-inch square baking pan with parchment paper, leaving enough overhang to lift the bars out later.
- Combine the dry ingredients. Whisk together the flour, baking soda, salt, and cornstarch in a bowl.
- Mix the butter, sugars, and eggs. Beat the softened butter with the brown and granulated sugars until combined, then beat in the whole egg, extra egg yolk, and vanilla.
- Finish the dough. Add the dry ingredients and mix just until no streaks of flour remain. Fold in the chopped chocolate.
- Fill the pan. Press the dough evenly into the prepared pan so the bars bake at the same rate.
- Bake and cool. Bake for about 25–30 minutes, until the top is puffy and golden and the edges have just started pulling away from the pan. Sprinkle with flaky sea salt while warm if you like. Let the bars cool completely before lifting them out and cutting into squares.
Chocolate Chip Cookie Bar Variations
I love these bars with chopped chocolate and flaky salt, but they're easy to change up depending on what you're craving. Keep in mind that changing the mix-ins or butter may also change the texture slightly. For a peanut butter and oatmeal version loaded with candy, try my monster cookie bars. If you want a frosted, sprinkle-filled bar for sharing, try my sugar cookie bars.
- Brown butter: For a deeper, nutty flavor, try using cooled brown butter. Since browning removes some moisture, the texture may differ from the original.
- Chopped nuts: Replace some of the chocolate with chopped walnuts or pecans for a little crunch.
- Espresso or warm spices: Add a little instant espresso powder to bring out the chocolate flavor, or try a pinch of cinnamon.
- Peanut butter or caramel: Try a small swirl of peanut butter or fold in a few chopped caramel candies. These additions can change how the bars set, so watch the center as they bake.
How Long to Bake Chocolate Chip Cookie Bars
For an 8-inch square pan at 350°F, start checking the bars at about 25 minutes; they usually take 25–30 minutes. The top should look puffy and golden brown, and the edges should begin to pull slightly away from the sides of the pan.
I prefer looking at the bars rather than relying on a clean toothpick, which may pick up melted chocolate. The center should still look a little soft but not wet or raw. If the edges are browning before the center looks set, loosely tent the pan with foil for the last few minutes of baking. The bars continue to set as they cool, giving you that chewy texture without falling apart when sliced.

Amanda's Expert Baking Tips
The difference between a wonderfully chewy cookie bar and one that's dry or difficult to slice often comes down to a few small details. Here's what I watch for.
- Measure the flour accurately. Scooping flour directly from the bag can pack too much into a measuring cup, giving you dry, dense, or cakey bars. Weigh the flour when possible, or fluff it, spoon it into the cup, and level it off.
- Don't overmix the dough. Once the flour is added, stir just until combined and fold the chocolate in with a spatula. Too much mixing can develop gluten and make the bars tougher.
- Press the dough evenly into the pan. Make sure the corners aren't noticeably thinner than the center so everything bakes at about the same rate.
- Use the visual cues. You want a puffy, golden top and edges just beginning to pull away from the pan. A soft center is good; a wet, raw-looking center needs more time.
- Cool completely before slicing. I know it's tempting to cut them warm, but allowing the bars to set gives you neat squares instead of a gooey mess.
- Choose your pan carefully. I recommend a light-colored metal 8-inch square pan lined with parchment, leaving an overhang to lift out the bars. Dark metal can brown the edges faster, while glass may change the baking time, so watch the visual cues rather than the clock alone.
- Scale by the thickness of the dough, not just the pan size. I've doubled this recipe in a 9-by-12-inch pan. Two batches of dough in that size pan make a thicker layer than one batch in an 8-inch square pan, so expect a longer bake. The pan size changes how quickly heat reaches the center; use the golden edges, set top, and soft-but-not-raw middle to judge doneness instead of borrowing the baking time from another recipe.
Storing and Making Ahead
These bars stay delicious after baking, which makes them useful for cookie boxes, bake sales, or making dessert ahead of a busy week. Let them cool completely before packing them away.
- Make-ahead cookie dough: Mix the dough up to two days ahead and keep it covered in the refrigerator. You can press it into the parchment-lined pan before chilling, or let chilled dough soften briefly so it is easier to spread. Bake when ready, allowing a little extra time if the dough is still cold and judging doneness by the appearance of the bars.
- Room temperature: Keep the bars in an airtight container for up to one week.
- Refrigerator: Store in an airtight container for up to two weeks. Let them come to room temperature before serving if you prefer a softer bite.
- Freezer: Freeze the completely cooled bars in an airtight container for up to six weeks. Separate layers with parchment if you're stacking them, and thaw in the refrigerator for a few hours before serving.
If you love a warm, melty chocolate center, microwave an individual bar for about 10–15 seconds just before eating.

Recipe FAQs
If your bars aren't baking evenly or you need a bigger batch, these are the questions that come up most often. A few small changes in measuring, pan size, or timing can make a big difference to the finished texture.
You can try a cup-for-cup gluten-free baking flour blend, such as one made by King Arthur Baking or Bob's Red Mill. The texture may differ slightly from bars made with all-purpose flour, so follow the baking cues rather than relying on time alone.
The center should look soft, but not shiny and wet like raw dough. Bake until the top is puffy and golden and the edges begin to pull away from the pan. If the middle still looks raw, keep baking in short intervals and loosely tent the pan with foil if the edges are getting too dark. Let the bars cool completely in the pan so they can finish setting.
I use an 8-by-8-inch square pan for a single batch and have doubled the recipe in a 9-by-12-inch pan. A doubled batch in a larger pan makes a deeper layer of dough than the original, so it generally takes longer to bake. A 9-by-13-inch pan can give you slightly thinner bars than the 9-by-12-inch pan; use the appearance of the edges and center to determine doneness rather than copying the original baking time.
Too much flour, overmixing after adding the flour, or baking too long can make the bars dry or tough. Weigh or carefully spoon and level the flour, mix the dough just until combined, and remove the bars once the edges are golden and the center is set but still soft. Let them cool before deciding they need more baking.
Yes. Cover and refrigerate the dough for up to two days, either in a bowl or already pressed into your parchment-lined baking pan. If chilled in a bowl, let it soften briefly so it spreads evenly. Dough that goes into the oven cold may need a little longer to bake, so check for the usual visual doneness cues.
Recipes you may like
If you're more in the mood for individual cookies, my brown butter chocolate chip cookies are one of my favorites. Browning the butter adds an incredible nutty flavor! And if you are as into cookies as I am, you'll want to try out some of these other cookie recipes. These s'mores stuffed cookies are hugely popular, so are these brownie stuffed chocolate chip cookies, coconut chocolate chip cookies, and Nutella-stuffed red velvet cookies. If you're into cookie dough, you'll need to try these edible chocolate chip cookie dough, edible brownie batter, and edible sugar cookie dough. These 3-ingredient peanut butter cookies, milano cookies, and giant double chocolate cookies are also worth trying!
Recipe Card

Chocolate Chip Cookie Bars
Ingredients
- 2 ¼ cups all-purpose flour
- 1 teaspoon baking soda
- 1 teaspoon sea salt
- 1 teaspoon corn starch
- ¾ cup unsalted butter room temperature
- 1 cup brown sugar firmly packed
- ¾ cup granulated sugar
- 1 large egg room temperature
- 1 egg yolk room temperature
- 2 ½ teaspoons vanilla extract
- 1 ½ cups chopped chocolate
Instructions
- Prepare the oven and baking pan. Preheat the oven to 350°F (175°C). Line an 8 × 8-inch square baking pan with parchment paper, leaving enough overhang on two sides to lift the finished bars out of the pan. I recommend a light-colored metal pan for more even baking.
- Combine the dry ingredients. Add the all-purpose flour, baking soda, sea salt, and cornstarch to a medium bowl. Whisk until evenly combined and set aside.
- Beat the butter and sugars. Add the softened unsalted butter, firmly packed brown sugar, and granulated sugar to a large mixing bowl. Beat until thoroughly combined.
- Add the eggs and vanilla. Beat in the room-temperature whole egg and additional egg yolk, followed by the vanilla extract. Mix until fully incorporated, scraping the bowl as needed.
- Mix in the dry ingredients. Add the flour mixture and stir just until there are no streaks of flour remaining. Avoid overmixing the dough, which can make the bars tough.
- Fold in the chocolate. Add the chopped chocolate and gently fold it into the dough until evenly distributed.
- Fill the baking pan. Transfer the cookie dough to the prepared pan. Press and spread it into an even layer, making sure the corners aren't thinner than the center so the bars bake evenly.
- Bake the cookie bars. Bake for approximately 25–30 minutes, beginning to check around 25 minutes. The top should be puffy and golden brown, and the edges should just begin pulling slightly away from the pan. The center should still look soft but not shiny, wet, or raw. Don't rely on a completely clean toothpick because it may hit melted chocolate. If the edges brown before the center is set, loosely tent the pan with foil and continue baking in short intervals.
- Add flaky sea salt if desired. Remove the pan from the oven and sprinkle the warm bars with flaky sea salt, if using.
- Cool the bars completely. Allow the bars to cool completely in the pan. They'll continue setting as they cool, giving them a chewy texture without falling apart when sliced.
- Cut and serve. Once the bars have cooled, lift them out using the parchment overhang and cut into squares of your preferred size.
Video
Notes
-
Use the correct pan. I recommend a light-colored metal 8 × 8-inch baking pan. Dark metal may brown the edges more quickly, while glass can affect the baking time.
-
Use softened butter. The butter should be softened, not melted, for the intended texture.
-
Measure the flour carefully. Too much flour can make the bars dry or cakey. I recommend weighing the flour or fluffing, spooning, and leveling it when measuring by volume.
-
Keep the cornstarch. The recipe includes 1 teaspoon of cornstarch to help produce tender bars. If you have a corn allergy, you can omit it or substitute arrowroot starch, as discussed in the original recipe comments.
-
Use one whole egg and one extra yolk. The additional yolk contributes richness and helps keep the center soft and chewy.
-
Don't overmix. Stop mixing once the dry ingredients are incorporated, then gently fold in the chocolate.
-
Spread the dough evenly. Make sure the corners and center have similar thicknesses so the bars bake uniformly.
-
Watch for visual doneness cues. The top should be puffy and golden, with edges just beginning to pull away from the pan. The center should be soft but not wet or raw. Melted chocolate can make the toothpick test misleading.
-
Cool completely before cutting. The bars continue setting as they cool. Cutting them too early can make them difficult to handle.
-
Scaling: I've doubled this recipe in a 9 × 12-inch pan. A larger batch produces a thicker layer of dough and will generally need a longer baking time. Judge doneness by appearance rather than using the single-batch baking time.
-
Make-ahead dough: Store covered dough in the refrigerator for up to 2 days. You can refrigerate it in a bowl or already pressed into the prepared pan. Cold dough may take slightly longer to bake.
-
Storage: Keep baked bars in an airtight container at room temperature for up to 1 week, or refrigerate for up to 2 weeks. Freeze completely cooled bars for up to 6 weeks, separating layers with parchment paper.



















Melissa says
Can I leave out the cornstarch? There is a family member with a corn allergy. Or maybe there is a substitute? Thanks!
Amanda Powell says
Hi! You can leave it out or use arrowroot starch!
txgirl says
Rarely do I post a comment on something I haven't made but these...omg...the pictures alone make this cookie queen want to make these like yesterday. Bravo!
Amanda Powell says
I am so glad you like the photos, I've really been trying to up my photography game, so that means so much to me!!