Upvote:1
You do need a visa as you are transiting for more than 12 hours:
Passengers transiting at an airport in the Kingdom with a view to catching a scheduled connecting flight within 12 hours of their arrival without the intention of clearing immigration procedure, do not require a visa. They must however be inspected by the competent authorities upon arrival and must stay only in designated areas of the airport until their departure. All passengers transiting at an airport in the Kingdom for more than 12 hours must obtain a transit visa prior to their arrival.
(Source)
You can read details of the Thai Embassy in Kathmandu, Nepal here.