Preheat oven to 350°F (180°C) so it’s hot when the batter is ready. Line your baking pan with parchment or foil for easy removal. Leave some overhang so you can lift brownies out cleanly later.
Melt chocolate and butter together until smooth and glossy. Stir in sugar, espresso powder if using, eggs, vanilla, and salt. Mix gently until fully combined without overmixing.
Add flour slowly and stir until just combined. Fold in chocolate chips and M&Ms so they distribute evenly. Avoid overmixing to keep brownies soft and fudgy.
Spread batter into prepared pan and sprinkle extra M&Ms on top. Bake for about 25–30 minutes until edges set and center remains slightly soft. Let brownies cool completely before cutting.
Lift brownies from pan once fully cooled. Use heart cookie cutters to press shapes from the slab. Clean cutter edges between cuts for neat shapes.