There are two broad options to travel from Delhi to Hampi : Flight and Train.
Hampi is about 2000 km (over 1200 miles) south of New Delhi.
Well, there are no direct flight or train to Hampi. In both the cases you'll need to aim for the nearest cities for further connections.
Karnataka Express (Train No : 12628) connects New Delhi with Bangalore. This train travels via Guntakal Jn (GTL) from where you can get another train to Hospet Jn (HPT), the nearest railway station for Hampi. From Hospet take a local bus/auto rickshaw/taxi to Hampi (about 13 km).
Karnataka Express scheduled arrival at Guntakal is 6.40 AM, after two nights and a day's travel from Delhi.
There are many connections from Guntakal to Hospet. The ideal connection train would be the Kolhapur bound Hyderabad-Kolhapur Express ( Train No:11303) . The scheduled departure of this train from Guntakal is 7.50 am. There is a 50 minute gap between the arrival of Karnataka Express and the Kolhapur Express.
Also keep in mind if the delay in arrival of Karnataka Express is more than 50 min, you would miss this connection. There are other trains too to Hospet in the afternoon from Guntakal to Hospet.
If everything goes well on schedule, you'll leave New Delhi in the night by Karnataka Express. Arrives at Guntakal on the 2nd day morning and at Hampi by noon. Now you've a good deal of the afternoon to explore a bit of relaxed evening sights at Hampi (like the sunset view, walk along the Ghat, Visit Virupaksha Temple and the Hampi Bazaar environs ) or may take rest for a full fledged exploration next day. That's about the Karnataka Express+Kolhapur Express combo to travel to Hampi from Delhi.
Other than Karnataka Express there are host of weekly and biweekly trains towards Bangalore from Delhi. But all do not follow the same route of Karnataka Express.
Another alternative is to fly directly to Bangalore or Hyderabad from Delhi (there are over 20 daily flights).From Bangalore travel to Hampi by Hampi Express or even by bus. It's 3 hours flight between Bangalore and Delhi, and overnight journey by train to Hampi (Hospet) from Bangalore.
By the way if you arrive at Hospet by one the odd hours train (late in the night), you may want to check in at a Hospet hotel than traveling to Hampi in the midnight. You have the option to keep the base at Haspet for the rest of you stay, or move base to one of the Hampi's hotels, next day morning.
From Hospet explore the train options based on your onward itinerary. Hospet Jn sits in the middle of the Hubli-Guntakal route with many long distance trains passing through it. See also how to travel in and out of Hampi from other cities around this part of India.
There are over 30 daily flights between New Delhi (DEL) and Bangalore/Bengaluru (BLR). From Bangalore catch the overnight Hampi Express to Hospet Junction (HPT).
Hampi Express leaves Bangalore City Jn (SBC) at 10pm towards Hospet. The train also stops at Bangalore Cantonment station (BNC) 10:12pm and Yelhanka Jn (YNK) 10:40pm.
Bangalore City Jn (SBC) & Bangalore Cantonment station (BNC) are about 32 km ( 1½ to 2 hours by taxi) from Bangalore Airport.
Yelhanka Jn (YNK) is a tiny station just 20km from the airport (30min drive). In case your flight schedule looks challenging ( to make it to city in time for boarding Hampi Express) , consider boarding from Yelahanka Jn.
Similarly on return from Hospet, Hampi Express arrives Yelhanka Jn abou 5 am and and hour later at Bangalore City Jn.
Delhi - Bangalore could be relatively easy to come by (though prices shoots up during peak seasons), but Hampi Express generally gets overbooked, especially during the weekends and longer vacation days. Plan early and book early!
If Delhi-Bangalore Flight + Hampi Express combo is not working out, explore Delhi- Hyderabad Flight + Kolhapur Express is a suitable option for you.
Delhi to Hampi Train and Flight routes. There are no direct connections to Hampi from Delhi. Travel to one of the nearby cities and get a train connection to Hospet.
Hyderabad to Hampi by Train
The most convenient train is the Hyderabad-Kolhapur Express (Train No:11303) or the Hyderabad - Vasco/Hubli Express (Train No:17603). On Thursdays you have one more train for Hampi, the Goa bound Hyderabad Vasco Da Gama express (Train No. 17021).
Bangalore to Hampi By Road
This is for the folks from Bangalore, still chewing over the idea if to take car or bike all the way to Hampi !