Preheat your oven to 350°F (175°C). Line a cupcake pan with cupcake liners.
In a mixing bowl, whisk together the all-purpose flour, baking powder, baking soda, and salt.
In a separate bowl, beat the softened butter and sugar until light and fluffy using an electric mixer or whisk.
Add the eggs one at a time, mixing well after each addition.
Stir in the finely chopped dill pickles and pickle juice until combined.
Gradually add the dry ingredients to the wet mixture, mixing gently until just combined. Then, fold in the dill weed.
Divide the batter evenly among the cupcake liners, filling each about ⅔ full.
Bake in the preheated oven for 20-25 minutes or until a toothpick inserted into the center comes out clean.
Remove from the oven and allow to cool in the pan for 5 minutes, then transfer cupcakes to a cooling rack to cool completely.
While the cupcakes are cooling, prepare the frosting. In a bowl, mix the softened cream cheese and butter until creamy.
Gradually add the powdered sugar, mixing until smooth. Stir in the dill pickle juice until well combined.
Once the cupcakes are completely cool, frost them generously with the dill pickle frosting using a spatula or piping bag.
Garnish with dill sprigs if desired.