Prep the pan: Line an 8x8-inch baking pan with parchment, leaving overhang for easy lifting.
Lightly grease the parchment if you want super-clean edges.
Crush the candy canes: Place candy canes in a zip-top bag and crush with a rolling pin. Aim for small bits and some fine dust—this gives both crunch and peppermint flavor throughout.
Melt base ingredients: In a medium, heavy-bottomed saucepan over low heat, add white chocolate, sweetened condensed milk, and butter. Stir constantly with a silicone spatula until almost fully melted.
Keep the heat low to avoid scorching.
Finish melting off heat: Remove from the burner and continue stirring until smooth. The residual heat will melt any remaining bits without overheating the chocolate.
Flavor it: Stir in peppermint extract, vanilla (if using), and a pinch of salt. Start with 1/2 teaspoon peppermint extract, taste a tiny dab, and add more if you want a stronger mint note.
Fold in peppermint: Mix in about half of the crushed candy canes.
This puts crunchy bits inside, while saving the rest for a pretty topping.
Spread and top: Pour the mixture into the prepared pan and smooth the surface. Sprinkle the remaining crushed candy canes on top and gently press so they adhere.
Chill to set: Refrigerate uncovered for 2–3 hours, or until firm enough to cut. For faster setting, place in the coldest part of your fridge.
Cut and serve: Lift the fudge from the pan with the parchment.
Warm a knife under hot water, dry it, and slice into 1-inch squares. Wipe and rewarm the knife as needed for clean edges.
Enjoy or gift: Serve immediately, or pack in tins with parchment between layers. Keep chilled until sharing to maintain a neat shape and snap.