Chocolate Chunk Cookie Bars
Chocolate chunk cookie bars have golden edges, soft middles and pockets of melted chocolate. The dough goes into one pan, which makes these a good choice when you want the flavor of a chocolate chip cookie without scooping batch after batch. A pinch of flaky sea salt over the warm bars brings out the chocolate and balances the sweetness.
The recipe uses melted butter and comes together with a bowl, a whisk and a spatula. It makes 16 squares from an 8-inch pan, with chewy edge pieces and softer squares from the middle. Serve them slightly warm if you like soft chocolate, or let the pan cool completely before slicing for a dessert tray.
Ingredients and what they do
Melted unsalted butter gives these bars a rich flavor and lets you mix the dough by hand. Let the butter cool slightly before whisking in the egg. Packed brown sugar brings moisture and a mild caramel flavor, while granulated sugar helps give the edges their golden finish. A whole egg holds the dough together, and the extra yolk adds richness. Vanilla rounds out the butter and chocolate flavors.
All-purpose flour gives the bars enough structure to slice. Spoon it into the measuring cup and level the top so you keep the dough from getting too dense. Baking soda gives it a little lift, and fine salt seasons the dough throughout. The flaky sea salt goes on top after baking, where each flake adds a small crunch.
Use chocolate you enjoy eating on its own. Chopped semisweet chocolate gives you an assortment of small flecks and bigger molten pockets. Chocolate chips are convenient and keep more of their shape. Reserve some of whichever chocolate you use for the top so every square has a few visible pieces.
How to make chocolate chunk cookie bars
Prepare the pan
Heat the oven to 350°F. Line an 8-by-8-inch baking pan with parchment, leaving an overhang on two sides so you can lift the cooled slab out. A metal pan works well for this recipe. If you use a larger pan, the dough will sit in a thinner layer, so begin checking earlier in the baking window.
Mix the butter, sugars and eggs
Whisk the melted butter with the brown sugar and granulated sugar until the mixture looks smooth and thick. Add the egg, extra yolk and vanilla, then whisk until everything is evenly mixed. Scrape around the bottom of the bowl with a spatula if any sugar collects there.

Add the dry ingredients and chocolate
Stir in the flour, baking soda and fine salt. As soon as the last dry streaks disappear, fold in most of the chocolate. A flexible spatula makes it easy to scoop up any flour at the bottom without working the dough more than necessary. Keep a handful of chunks aside for the surface.
Press the dough into the pan
Transfer the dough to the lined pan and spread it to the corners. Level it gently with the spatula so the center and edges are close to the same thickness. Scatter the reserved chocolate over the top. If the dough feels unusually sticky after mixing, a short chill of about 15 minutes can make it easier to press into place.

Bake, salt and cool
Bake for 22 to 25 minutes. Start checking at 22 minutes and look for golden edges and a center that is just set. A shiny patch may be melted chocolate, so look at the dough between the chunks when judging doneness. Sprinkle flaky sea salt over the bars as soon as you take the pan out of the oven.
Let the bars cool in the pan for at least 20 minutes before slicing. For cleaner edges, wait until they’re completely cool, lift the slab out with the parchment and cut it into four rows of four. Wipe the knife between cuts if chocolate sticks to the blade.
Variations and storage
Try a mix of semisweet and dark chocolate for a less sweet finish, or use milk chocolate for a sweeter bar. Chopped pecans or walnuts can replace some of the chocolate if you want a crunch. You can also swirl a tablespoon of peanut butter across the top before baking.
Cool the bars completely before putting them into an airtight container. Keep them at room temperature for up to three days, separating layers with parchment if needed. To freeze, wrap the squares individually and place them in a freezer-safe container for up to two months. Thaw at room temperature, or warm a thawed square in the microwave in short intervals to soften the chocolate again.
Frequently asked questions
Why are my cookie bars dry?
Too much flour and overbaking are common causes. Level the flour when measuring and check the pan at the low end of the baking range. The bars continue to firm up as they cool, so take them out once the edges are golden and the center is set.
Can I use chocolate chips instead of chunks?
Yes. Use the same amount of chips, and save some for the surface. Chips usually stay more defined after baking, while pieces of a chopped bar tend to make wider pools of chocolate.
Printable recipe
Ingredients
Method
- Preheat the oven to 350°F. Line an 8-by-8-inch baking pan with parchment.
- Whisk the melted butter with both sugars until smooth and thick. Whisk in the egg, yolk and vanilla.
- Stir in the flour, baking soda and salt until just combined. Fold in most of the chocolate.
- Press the dough into an even layer in the pan. Scatter the reserved chocolate on top.
- Bake for 22–25 minutes, until the edges are golden and the center is just set.
- Sprinkle with flaky sea salt immediately after baking.
- Cool in the pan for at least 20 minutes before slicing into 16 squares.

