Place the eggs in a medium saucepan and cover with cold water by about 1 inch.
Bring the water to a rolling boil over medium-high heat. Once boiling, remove the pan from the heat, cover with a lid, and let the eggs stand for 10 minutes.
Transfer the eggs to a bowl of ice water and let them cool for 5 minutes.
Peel the eggs under cool running water, pat dry, and chop them into small pieces. Place the chopped eggs in a mixing bowl.
In a separate bowl, whisk together the mayonnaise, Dijon mustard, lemon juice, salt, and black pepper until smooth.
Pour the dressing over the chopped eggs. Add the red onion and fresh herbs, if using, and gently fold everything together until evenly coated.
Cover and refrigerate for 15–30 minutes before serving for the best flavor.
Serve chilled on toasted bread, croissants, crackers, lettuce wraps, or over a fresh green salad.