Sleeping in socks is generally safe. If your feet get cold at night, a clean, dry pair can keep them warm. The concern is trapped sweat: fungi thrive when skin stays warm and damp.
Choose socks that keep your feet dry
Start with a fresh pair at bedtime rather than the socks you wore all day. If your feet are damp, dry them first, including the skin between your toes.
A thick pair may feel comfortable when you first get into bed but leave your feet sweaty once you warm up under the covers. If that happens, take the socks off rather than keeping damp fabric against your skin.
If your feet sweat easily, try a lighter, breathable pair. You can also leave your feet bare if socks make an existing rash itch or feel uncomfortable.
Check the fit, especially at the cuff
Moisture matters for skin health, but fit is a separate issue. An ordinary sock should stay in place without its elastic digging into your ankle. If you feel pressure or tingling, remove it.
Take particular care with the fit if you have diabetes, poor circulation or a condition affecting your leg veins. A tight cuff can put unwanted pressure on your foot or ankle.
Compression socks differ from ordinary bed socks because they deliberately apply pressure. If a clinician prescribed them, follow their advice about when to wear them. Otherwise, choose a loose-fitting pair for warmth at night.

