The journey from Toyko to Nikko by train takes one hour. 
Nikko is best reached from Tokyo by train (by the Japan Railways Shinkansen line from Tokyo or Ueno stations, with a transfer at Utsunomiya, or by the private Tobu Line Limited Express from Asakusa).