Place the eggs in a single layer in a medium saucepan. Add the salt if using, then pour in the cold water until it covers the eggs by about 1 inch.
Set the pan over high heat and bring the water to a full, rolling boil, uncovered. While it heats, fill a large bowl halfway with ice cubes and add cold water to cover.
As soon as the water reaches a full boil, turn off the heat and cover the pan with a tight-fitting lid. Leave the eggs in the covered pan for 12 minutes.
Lift the eggs out with a slotted spoon and transfer them straight into the ice bath. Leave them there for 10 minutes.
Tap each egg gently on the counter to crack the shell, roll it under your palm so the shell cracks all over, then peel from the wide end, under the thin membrane. Peel under running water if the shell resists.