Wash and rub chestnuts in cold water, discard any chestnuts with signs of spoilage.
Rest each chestnut flat side down on a cutting board. Cut one long slit across the rounded side, through the shell and inner skin but barely into the nut.
Soak the scored chestnuts in a bowl of cold water for 1 to 2 hours (or overnight, up to 2 days in the fridge).
Roast chestnuts
Preheat the oven to 400°F (200°C), static setting (fan off). Fan-only oven: 350°F (180°C).
Drain the chestnuts and spread them in a single layer on a baking sheet, cut side up. Sprinkle with salt, if using.
Roast for 25 to 40 minutes (fan oven: start checking at 15 minutes). Taste one at 25 minutes: it's done when the shell has opened along the cut and the nut is soft to bite.
Wrap the hot chestnuts in a slightly damp kitchen towel and rest for 10 to 15 minutes. Peel while warm by pressing both ends of the cut.
Video
Notes
Even cooking: roast similar-sized chestnuts together, or pull small ones out early.
Charred shells: broil (grill) for the last 2 to 3 minutes, watching closely.
No time to soak: boil the scored chestnuts for a few minutes, drain and roast. They'll peel well but come out a little drier.
Make ahead: score and soak the night before, then roast just before serving.