Around two years old is the rough average, but age is a poor guide on its own. Readiness matters far more than the calendar.
The signs worth watching for are physical and communicative: staying dry for a couple of hours at a stretch, waking from naps dry, being able to pull clothing up and down, and — most usefully — telling you that a nappy is dirty or that they are going. A child who can say "I need to go" before it happens is ready to try. A child who cannot yet connect the sensation to the outcome will not be, regardless of how many months old they are.
Starting too early tends to prolong the process rather than shorten it. Many children are closer to three before night-time dryness settles, and that is entirely normal.
Pick a calm stretch of a few weeks with no big disruptions, expect accidents, and treat the whole thing as unremarkable. Pressure is the one ingredient that reliably makes it harder.